{"id":"CVE-2026-99438","state":"PUBLISHED","title":"media: rc: mce_kbd: Fix inconsistent locking of keylock","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: rc: mce_kbd: Fix inconsistent locking of keylock\n\ndata->keylock is taken with spin_lock() in ir_mce_kbd_decode(), which\nruns in the raw IR decode kthread with local interrupts enabled, but\nwith spin_lock_irqsave() in mce_kbd_rx_timeout(), the rx_timeout timer\ncallback, which runs in softirq context.\n\nIf the decode kthread is holding keylock via spin_lock() when a timer\ninterrupt fires on the same CPU and the softirq runs\nmce_kbd_rx_timeout(), the softirq spins forever waiting for a lock\nthat only the now-preempted kthread can release, while the kthread\ncannot run again until the softirq gives up the CPU. This deadlocks\nthe CPU.","publishedAt":"2026-11-19T14:41:18.065Z","updatedAt":"2026-11-19T14:41:18.065Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"53a62800efb2f0ebc1972cab242461ae8c57bfd4","status":"affected","lessThan":"15c53a8b50a9595fbd14befe8eb0455616e648a5","versionType":"git"},{"version":"53a62800efb2f0ebc1972cab242461ae8c57bfd4","status":"affected","lessThan":"0e18282783cc426207127c1214b40967a18ef939","versionType":"git"},{"version":"53a62800efb2f0ebc1972cab242461ae8c57bfd4","status":"affected","lessThan":"7df669eab2abcb141f43cab1e558c401a1093b37","versionType":"git"},{"version":"53a62800efb2f0ebc1972cab242461ae8c57bfd4","status":"affected","lessThan":"29ee25fa9beb3232808e6d0b3e8ebfb0427cb820","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/rc/ir-mce_kbd-decoder.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.18","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/rc/ir-mce_kbd-decoder.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-11-19T14:48:06.147Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99438.json","commit":"783f6d4140a34eaf92c5bfee971cfe497fa6394e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99438","state":"PUBLISHED","datePublished":"2026-11-19T14:41:18.065Z","dateUpdated":"2026-11-19T14:41:18.065Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.415Z"},"containers":{"cna":{"title":"media: rc: mce_kbd: Fix inconsistent locking of keylock","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: rc: mce_kbd: Fix inconsistent locking of keylock\n\ndata->keylock is taken with spin_lock() in ir_mce_kbd_decode(), which\nruns in the raw IR decode kthread with local interrupts enabled, but\nwith spin_lock_irqsave() in mce_kbd_rx_timeout(), the rx_timeout timer\ncallback, which runs in softirq context.\n\nIf the decode kthread is holding keylock via spin_lock() when a timer\ninterrupt fires on the same CPU and the softirq runs\nmce_kbd_rx_timeout(), the softirq spins forever waiting for a lock\nthat only the now-preempted kthread can release, while the kthread\ncannot run again until the softirq gives up the CPU. This deadlocks\nthe CPU."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"53a62800efb2f0ebc1972cab242461ae8c57bfd4","status":"affected","lessThan":"15c53a8b50a9595fbd14befe8eb0455616e648a5","versionType":"git"},{"version":"53a62800efb2f0ebc1972cab242461ae8c57bfd4","status":"affected","lessThan":"0e18282783cc426207127c1214b40967a18ef939","versionType":"git"},{"version":"53a62800efb2f0ebc1972cab242461ae8c57bfd4","status":"affected","lessThan":"7df669eab2abcb141f43cab1e558c401a1093b37","versionType":"git"},{"version":"53a62800efb2f0ebc1972cab242461ae8c57bfd4","status":"affected","lessThan":"29ee25fa9beb3232808e6d0b3e8ebfb0427cb820","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/rc/ir-mce_kbd-decoder.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.18","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/rc/ir-mce_kbd-decoder.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/15c53a8b50a9595fbd14befe8eb0455616e648a5"},{"url":"https://git.kernel.org/stable/c/0e18282783cc426207127c1214b40967a18ef939"},{"url":"https://git.kernel.org/stable/c/7df669eab2abcb141f43cab1e558c401a1093b37"},{"url":"https://git.kernel.org/stable/c/29ee25fa9beb3232808e6d0b3e8ebfb0427cb820"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:41:18.065Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}