# CVE-2026-23221: bus: fsl-mc: fix use-after-free in driver_override_show()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-02-18T14:53:24.391Z
- Modified: 2026-06-17T10:21:07.717Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

bus: fsl-mc: fix use-after-free in driver_override_show()

The driver_override_show() function reads the driver_override string
without holding the device_lock. However, driver_override_store() uses
driver_set_override(), which modifies and frees the string while holding
the device_lock.

This can result in a concurrent use-after-free if the string is freed
by the store function while being read by the show function.

Fix this by holding the device_lock around the read operation.

(As written by CVE List.)

## Affected

- Linux Linux: from 1f86a00c1159fd77e66b1bd6ff1a183f4d46f34d before c71dfb7833db7af652ee8f65011f14c97c47405d; from 1f86a00c1159fd77e66b1bd6ff1a183f4d46f34d before c424e72cfa67e7e1477035058a8a659f2c0ea637; from 1f86a00c1159fd77e66b1bd6ff1a183f4d46f34d before b1983840287303e0dfb401b1b6cecc5ea7471e90; from 1f86a00c1159fd77e66b1bd6ff1a183f4d46f34d before dd8ba8c0c3f3916d4ee1e3a09da9cd5caff5d227; from 1f86a00c1159fd77e66b1bd6ff1a183f4d46f34d before 1d6bd6183e723a7b256ff34bbb5b498b5f4f2ec0; from 1f86a00c1159fd77e66b1bd6ff1a183f4d46f34d before a2ae33e1c6361e960a4d00f7cf75d880b54f9528; from 1f86a00c1159fd77e66b1bd6ff1a183f4d46f34d before 148891e95014b5dc5878acefa57f1940c281c431; 5.10 (not affected: before 5.10; from 5.15.201 up to 5.15.*; from 6.1.164 up to 6.1.*; from 6.6.127 up to 6.6.*; from 6.12.74 up to 6.12.*; from 6.18.11 up to 6.18.*; from 6.19.1 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.10 before 5.15.201; from 5.16 before 6.1.164; from 6.2 before 6.6.127; from 6.7 before 6.12.74; from 6.13 before 6.18.11; from 6.19 before 6.19.1

## References

- <https://git.kernel.org/stable/c/c71dfb7833db7af652ee8f65011f14c97c47405d> (patch)
- <https://git.kernel.org/stable/c/c424e72cfa67e7e1477035058a8a659f2c0ea637> (patch)
- <https://git.kernel.org/stable/c/b1983840287303e0dfb401b1b6cecc5ea7471e90> (patch)
- <https://git.kernel.org/stable/c/dd8ba8c0c3f3916d4ee1e3a09da9cd5caff5d227> (patch)
- <https://git.kernel.org/stable/c/1d6bd6183e723a7b256ff34bbb5b498b5f4f2ec0> (patch)
- <https://git.kernel.org/stable/c/a2ae33e1c6361e960a4d00f7cf75d880b54f9528> (patch)
- <https://git.kernel.org/stable/c/148891e95014b5dc5878acefa57f1940c281c431> (patch)

## Sources

- CVE List: [CVE-2026-23221](https://www.cve.org/CVERecord?id=CVE-2026-23221), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-23221](https://nvd.nist.gov/vuln/detail/CVE-2026-23221), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23221 · Whole record: https://cve.day/CVE-2026-23221.json · Rebuilt by cve.day 2026-11-25T22:59:13.995Z
