CVE-2026-99438: media: rc: mce_kbd: Fix inconsistent locking of keylock
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: rc: mce_kbd: Fix inconsistent locking of keylock
data->keylock is taken with spin_lock() in ir_mce_kbd_decode(), which runs in the raw IR decode kthread with local interrupts enabled, but with spin_lock_irqsave() in mce_kbd_rx_timeout(), the rx_timeout timer callback, which runs in softirq context.
If the decode kthread is holding keylock via spin_lock() when a timer interrupt fires on the same CPU and the softirq runs mce_kbd_rx_timeout(), the softirq spins forever waiting for a lock that only the now-preempted kthread can release, while the kthread cannot run again until the softirq gives up the CPU. This deadlocks the CPU.
The Linux kernel CVE team has assigned CVE-2026-99438 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.18 with commit 53a62800efb2f0ebc1972cab242461ae8c57bfd4 and fixed in 6.12.117 with commit 15c53a8b50a9595fbd14befe8eb0455616e648a5 Issue introduced in 4.18 with commit 53a62800efb2f0ebc1972cab242461ae8c57bfd4 and fixed in 6.18.61 with commit 0e18282783cc426207127c1214b40967a18ef939 Issue introduced in 4.18 with commit 53a62800efb2f0ebc1972cab242461ae8c57bfd4 and fixed in 7.3.2 with commit 7df669eab2abcb141f43cab1e558c401a1093b37 Issue introduced in 4.18 with commit 53a62800efb2f0ebc1972cab242461ae8c57bfd4 and fixed in 7.4-rc1 with commit 29ee25fa9beb3232808e6d0b3e8ebfb0427cb820
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-99438
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/ir-mce_kbd-decoder.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/15c53a8b50a9595fbd14befe8eb0455616e648a5 https://git.kernel.org/stable/c/0e18282783cc426207127c1214b40967a18ef939 https://git.kernel.org/stable/c/7df669eab2abcb141f43cab1e558c401a1093b37 https://git.kernel.org/stable/c/29ee25fa9beb3232808e6d0b3e8ebfb0427cb820