media: rc: Ensure registered is cleared in error path (Linux Linux)

CVE-2026-99439
Not available

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
Affected products
Linux · Linux
NVD status
Received

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).

References

European references

CERT-FR advisories

Affected products

ProductAffected versions
Linux · Linux
affected : ≥ a7becb58f6b8a3a3efe5d3acfd52e2c107de6772 < eda129862b995154d19eb7af7c9024c2fe0115f6
affected : ≥ 75977f5f5c4974c72bbedefbf09ad33ebbaa36f1 < 4c94661218f2accf309372cac59ebe9e21853349
affected : ≥ e250b672d40a9e0d97a8895cbb301248bea0fce6 < 63644a8b70dab7e67a8a6f563b7df9647324a41f
affected : ≥ dccc0c3ddf8f16071736f98a7d6dd46a2d43e037 < 7a6e8c9726dfd1cb284708f7b179a6bc9bcd6e0e
affected : ≥ dccc0c3ddf8f16071736f98a7d6dd46a2d43e037 < 37efd09ba2c62e46e3a3a793025c186f8cd1a417
affected : ≥ 6.6.143 < 6.6.163
affected : ≥ 6.12.93 < 6.12.117
affected : ≥ 6.18.35 < 6.18.61
Other versions : unaffected
Linux · Linux
affected : 7.1
unaffected : ≥ 0 < 7.1
unaffected : ≥ 6.6.163 ≤ 6.6.*
unaffected : ≥ 6.12.117 ≤ 6.12.*
unaffected : ≥ 6.18.61 ≤ 6.18.*
unaffected : ≥ 7.3.2 ≤ 7.3.*
unaffected : ≥ 7.4-rc1 ≤ *
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD