media: rc: Ensure registered is cleared in error path
- CVE-2026-99439
- GHSA-6v37-974f-vh38
- EUVD-2026-130105
Description
In the Linux kernel, the following vulnerability has been resolved: media: rc: Ensure registered is cleared in error path If rc_register_device() fails, ensure that registered is not set to true. If lirc_register() succeeded, then userspace could have an open file descriptor open. This leads to a use-after-free. lirc_unregister() must be called with registered = false, else there is a possibility that an fd is open and polling, which would never return POLLERR unless registered is false. Note that registered must be changed under dev->lock, many functions read registered under lock (e.g. lirc_ioctl).
Text from the CVE.org record.
Recommendation
Linux
- If you run 6.18.xupdate to 6.18.61 or laterPatch update: breaking changes are unlikely
- If you run 6.12.xupdate to 6.12.117 or laterPatch update: breaking changes are unlikely
- If you run 6.6.xupdate to 6.6.163 or laterPatch update: breaking changes are unlikely
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.61 6.18.61 from 6.12.93 to before 6.12.117 6.12.117 from 6.6.143 to before 6.6.163 6.6.163 7.1 none stated before 7.1: not affected none stated from 6.6.163 up to 6.6.*: not affected none stated from 6.12.117 up to 6.12.*: not affected none stated from 6.18.61 up to 6.18.*: not affected none stated and 2 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.