Skip to contentSkip to conversation

CVE-2026-99437: media: rc: Use after free in ir_raw_event_handle()

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: Use after free in ir_raw_event_handle()

If rc_unregister_device() is called while IR is being processed, then ir_raw_event_handle() could call wake_up_process(dev->raw->thread) after kthread_stop(dev->raw->thread). Avoid use after free by using get_task_struct().

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

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

	Issue introduced in 6.12.93 with commit 75977f5f5c4974c72bbedefbf09ad33ebbaa36f1 and fixed in 6.12.117 with commit 31d5d26130bf4b53684e662e3c3add03662b69d3
	Issue introduced in 6.18.35 with commit e250b672d40a9e0d97a8895cbb301248bea0fce6 and fixed in 6.18.61 with commit 6d1be288650bb590aa3894bb060f8a5497c27bab
	Issue introduced in 7.1 with commit dccc0c3ddf8f16071736f98a7d6dd46a2d43e037 and fixed in 7.3.2 with commit ba90c13e3347d6765d00544280cff0401027d22a
	Issue introduced in 7.1 with commit dccc0c3ddf8f16071736f98a7d6dd46a2d43e037 and fixed in 7.4-rc1 with commit 3ae19773168104fa57d2a2ec57731e89df54175f
	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-99437

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/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/31d5d26130bf4b53684e662e3c3add03662b69d3
	https://git.kernel.org/stable/c/6d1be288650bb590aa3894bb060f8a5497c27bab
	https://git.kernel.org/stable/c/ba90c13e3347d6765d00544280cff0401027d22a
	https://git.kernel.org/stable/c/3ae19773168104fa57d2a2ec57731e89df54175f