HIGH Introduced in 5.0
i3c MasterDev UAF
CVE-2026-93200
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: i3c: master: Fix use-after-free of master->this sysfs attribute callbacks for the master controller device dereference master->this. However, master->this is freed in i3c_master_detach_free_devs() before the master device itself is released. As a result, sysfs accesses can dereference a freed master->this pointer, leading to a use-after-free. Keep master->this alive until i3c_masterdev_release(), which is called after the master device and its sysfs state are being torn down. Do not free master->this as part of the normal device detach path. On the error path in i3c_master_set_info(), reset master->this and bus.cur_master to NULL before freeing the allocated device.
02KernelScan AI Analysis
Risk summary
A local unprivileged user can trigger a use-after-free by reading I3C master controller sysfs attributes while the controller is being torn down. The freed memory access can lead to kernel memory corruption, information disclosure, or a system crash. Products with I3C hardware and interactive local user access are at highest risk.
Vulnerability analysis
The I3C master controller exposes sysfs attributes whose callback functions dereference a pointer to the master's own device descriptor. During controller teardown, that descriptor is freed before the master device and its sysfs interface are fully removed, creating a window where a concurrent sysfs read accesses already-freed memory. The fix moves the descriptor free into the master device release function, which runs only after sysfs teardown is complete, and skips freeing it in the normal device detach path. The error path during controller setup also now clears the pointer before freeing the allocated object to prevent stale references. A local user with read access to the I3C controller's sysfs attributes can trigger this race during device removal, requiring no special privileges for the read itself but depending on the controller teardown occurring concurrently.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 5.0 | 5.10.273 | a9b9cae0bd88 |
| 5.15 | 5.0 | 5.15.224 | 94af669037d1 |
| 6.1 | 5.0 | 6.1.191 | e766605a0490 |
| 6.12 | 5.0 | 6.12.112 | 23a1c4288a60 |
| 6.18 | 5.0 | 6.18.52 | 4f3145db05fe |
| 6.6 | 5.0 | 6.6.160 | 027679d613ea |
| 7.2 | 5.0 | 7.2.6 | 50034d8d0f79 |
| mainline | 5.0 | 7.3 | feb0ed76601f |
| cip/6.12 | 5.0 | 6.12.112-cip33 | 23a1c4288a60 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |