Skip to contentSkip to conversation

CVE-2026-46235: media: saa7164: add ioremap return checks and cleanups

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

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: saa7164: add ioremap return checks and cleanups

Add checks for ioremap return values in saa7164_dev_setup(). If ioremap for BAR0 or BAR2 fails, release the already allocated PCI memory regions, remove the device from the global list, decrement the device count, and return -ENODEV.

This prevents potential null pointer dereferences and ensures proper cleanup on memory mapping failures.

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

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

	Issue introduced in 2.6.32 with commit 443c1228d50518f3c550e1fef490a2c9d9246ce7 and fixed in 6.6.140 with commit 3ce8f3057c51bb0a66aa3fab0862be74e9f88684
	Issue introduced in 2.6.32 with commit 443c1228d50518f3c550e1fef490a2c9d9246ce7 and fixed in 6.12.90 with commit a9b83f46e52cf1239d780920d1a7a3e415f7b5d9
	Issue introduced in 2.6.32 with commit 443c1228d50518f3c550e1fef490a2c9d9246ce7 and fixed in 6.18.32 with commit 6047dc542fa404b5c187cc2c7906aaaaec6d11ed
	Issue introduced in 2.6.32 with commit 443c1228d50518f3c550e1fef490a2c9d9246ce7 and fixed in 7.0.9 with commit 6c22a6d8e4c1507bba504aeebe80476144a373eb
	Issue introduced in 2.6.32 with commit 443c1228d50518f3c550e1fef490a2c9d9246ce7 and fixed in 7.1-rc1 with commit d51c60a498e83c9a79884c8e420f97e3885c9583

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-46235

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/saa7164/saa7164-core.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/3ce8f3057c51bb0a66aa3fab0862be74e9f88684
	https://git.kernel.org/stable/c/a9b83f46e52cf1239d780920d1a7a3e415f7b5d9
	https://git.kernel.org/stable/c/6047dc542fa404b5c187cc2c7906aaaaec6d11ed
	https://git.kernel.org/stable/c/6c22a6d8e4c1507bba504aeebe80476144a373eb
	https://git.kernel.org/stable/c/d51c60a498e83c9a79884c8e420f97e3885c9583