media: ipu-bridge: Fix use-after-free in IVSC error path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d1df2ec20a6ddac6ae553b34b39472a20c5de9c6, Kernel 2af4892580167181c3181b2f0b6ffab1be0096c9, Kernel 3d42d1c82717f0853379b516a7fab54b636e09cc and 4 more.
In the Linux kernel, the following vulnerability has been resolved: media: ipu-bridge: Fix use-after-free in IVSC error path ipu_bridge_get_ivsc_acpi_dev() returns an ACPI device with a reference held. If no matching CSI device is found, ipu_bridge_check_ivsc_dev() drops that reference before passing the device to dev_err(). Concurrent CSI device and ACPI namespace removal can drop the other references, making this the final put. dev_err() then reads the freed struct acpi_device and its kobject name. This was reproduced without kprobes by racing normal CSI platform-device unregistration and ACPI configfs table removal against the production ipu_bridge_init() entry. KASAN reported the final free through device_release(), followed by invalid reads through _dev_err(). Emit the error message while the lookup reference is still held, then drop the reference as before. Source reproducers and vulnerable/fixed serial logs, with only the build hostname redacted, are available at: https://github.com/kimaiden1984-boop/linux-ipu-bridge-acpi-uaf-reproducer The fixed target builds with W=1 on x86-64. This was not tested on physical IPU hardware. The tests establish runtime reachability but do not measure occurrence frequency on shipping systems or establish exploitability.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=c66821f381aed2c7c754d6ac8920a8665a3a01f7 <d1df2ec20a6ddac6ae553b34b39472a20c5de9c6, >=c66821f381aed2c7c754d6ac8920a8665a3a01f7 <2af4892580167181c3181b2f0b6ffab1be0096c9, >=c66821f381aed2c7c754d6ac8920a8665a3a01f7 <3d42d1c82717f0853379b516a7fab54b636e09cc, >=c66821f381aed2c7c754d6ac8920a8665a3a01f7 <adf422b7587bff1c9069406ce7a6c5a1f0e70193, =6.6 | d1df2ec20a6ddac6ae553b34b39472a20c5de9c6, 2af4892580167181c3181b2f0b6ffab1be0096c9, 3d42d1c82717f0853379b516a7fab54b636e09cc, adf422b7587bff1c9069406ce7a6c5a1f0e70193 |
| linux-kernel: Kernel | >=6.19.0 <7.3.2, >=6.6.0 <6.12.117, >=6.13.0 <6.18.61 | 7.3.2, 6.12.117, 6.18.61 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket