media: rc: Add missing locking for keymap
- CVE-2026-139078
- GHSA-25h9-f59p-3rv6
- EUVD-2026-138830
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.
Text from the CVE.org record.
Recommendation
Linux
- If you run 6.18.xupdate to 6.18.66 or laterPatch update: breaking changes are unlikely
- If you run 6.12.xupdate to 6.12.120 or laterPatch update: breaking changes are unlikely
- If you run a version from 6.6.143 to before 6.7update to 6.7 or laterMinor version change: check the release notes
Some affected versions have no stated fix.
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Linux
Affected versions Fixed in from 6.18.35 to before 6.18.66 6.18.66 from 6.12.93 to before 6.12.120 6.12.120 from 6.6.143 to before 6.7 6.7 7.1 none stated before 7.1: not affected none stated from 6.12.120 up to 6.12.*: not affected none stated from 6.18.66 up to 6.18.*: not affected none stated from 7.3.4 up to 7.3.*: not affected none stated and 1 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.