Skip to contentSkip to conversation

CVE-2026-99435: media: rc: Fix use after free in bpf progs

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: rc: Fix use after free in bpf progs

Since commit dccc0c3ddf8f ("media: rc: fix race between unregister and urb/irq callbacks"), rcdev->raw is no longer set to NULL after device unregister. raw->progs could point to stale data.

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

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

	Issue introduced in 6.12.93 with commit 75977f5f5c4974c72bbedefbf09ad33ebbaa36f1 and fixed in 6.12.117 with commit 52efde6424420e0cf33df2ba23a8495cc141581f
	Issue introduced in 6.18.35 with commit e250b672d40a9e0d97a8895cbb301248bea0fce6 and fixed in 6.18.61 with commit 4528f92222e7b90b2ea634338657888f63887d7a
	Issue introduced in 7.1 with commit dccc0c3ddf8f16071736f98a7d6dd46a2d43e037 and fixed in 7.3.2 with commit 341e2ba83d23b169808b8ccf29d41aee899148fd
	Issue introduced in 7.1 with commit dccc0c3ddf8f16071736f98a7d6dd46a2d43e037 and fixed in 7.4-rc1 with commit f95a9f8472f97c30106513fc7494b7abad243949
	Issue introduced in 6.6.143 with commit a7becb58f6b8a3a3efe5d3acfd52e2c107de6772

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

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/rc/bpf-lirc.c
drivers/media/rc/rc-ir-raw.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/52efde6424420e0cf33df2ba23a8495cc141581f
	https://git.kernel.org/stable/c/4528f92222e7b90b2ea634338657888f63887d7a
	https://git.kernel.org/stable/c/341e2ba83d23b169808b8ccf29d41aee899148fd
	https://git.kernel.org/stable/c/f95a9f8472f97c30106513fc7494b7abad243949