CVE-2026-139078

media: rc: Add missing locking for keymap

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

media: rc: Add missing locking for keymap

When the rc_map for an rc_dev gets updated, locking is required but is
missing in places. A concurrent scancode lookup and a call to
rc_{register,unregistered}_device() could result in a use-after-free;
this could happen if IR is decoded during those function calls.

Add lockdep assertions where locks are required.

ir_free_table() should only be called for non-TX devices else we will
use a spinlock without iniitializing it.

Analysis

AI-generated

Technical impact

The Linux kernel contains a flaw where missing synchronization while updating the rc_map for an rc_dev can trigger a use‑after‑free. This occurs during concurrent scancode lookups or when rc_register_device or rc_unregister_device are called, allowing memory that has been freed to be accessed. Such kernel memory corruption can enable arbitrary code execution or privilege escalation in the affected system.

Affected Systems

All Linux kernel releases that include the media rc subsystem and have not applied the patch introducing the missing locking are impacted. The vulnerability affects both text and graphical kernel configurations that expose the rc driver.

Risk and Exploitability

The flaw is a use‑after‑free in kernel code, which is high severity. No EPSS score is available and the issue is not listed in the CISA KEV catalog. Exploitation likely requires an attacker who can trigger IR input while the rc_device is being registered or unregistered, a scenario that is usually local or via a connected IR device. Based on the description, it is inferred that the attack may involve local or remote control of an IR device. While no public exploit is known, the potential for memory corruption makes the risk significant for environments that expose IR drivers.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the missing locking fix for the rc subsystem, which adds lockdep assertions and corrects ir_free_table usage.
  • Reboot the system after patching to ensure the updated kernel code is active.
  • If an updated kernel is not yet available, restrict the use of rc_register_device and rc_unregister_device functions or disable the media rc subsystem until the fix is applied.

Generated by OpenCVE AI on November 30, 2026 at 19:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: rc: Add missing locking for keymap When the rc_map for an rc_dev gets updated, locking is required but is missing in places. A concurrent scancode lookup and a call to rc_{register,unregistered}_device() could result in a use-after-free; this could happen if IR is decoded during those function calls. Add lockdep assertions where locks are required. ir_free_table() should only be called for non-TX devices else we will use a spinlock without iniitializing it.
Title media: rc: Add missing locking for keymap
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:27 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM