Skip to contentSkip to conversation

CVE-2026-99508: media: ipu-bridge: Fix use-after-free in IVSC error path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-99508 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.6 with commit c66821f381aed2c7c754d6ac8920a8665a3a01f7 and fixed in 6.12.117 with commit 2af4892580167181c3181b2f0b6ffab1be0096c9
	Issue introduced in 6.6 with commit c66821f381aed2c7c754d6ac8920a8665a3a01f7 and fixed in 6.18.61 with commit d1df2ec20a6ddac6ae553b34b39472a20c5de9c6
	Issue introduced in 6.6 with commit c66821f381aed2c7c754d6ac8920a8665a3a01f7 and fixed in 7.3.2 with commit adf422b7587bff1c9069406ce7a6c5a1f0e70193
	Issue introduced in 6.6 with commit c66821f381aed2c7c754d6ac8920a8665a3a01f7 and fixed in 7.4-rc1 with commit 3d42d1c82717f0853379b516a7fab54b636e09cc

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99508

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/media/pci/intel/ipu-bridge.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/2af4892580167181c3181b2f0b6ffab1be0096c9
	https://git.kernel.org/stable/c/d1df2ec20a6ddac6ae553b34b39472a20c5de9c6
	https://git.kernel.org/stable/c/adf422b7587bff1c9069406ce7a6c5a1f0e70193
	https://git.kernel.org/stable/c/3d42d1c82717f0853379b516a7fab54b636e09cc