iio: proximity: pulsedlight: fix iio_device left registered on PM setup failure (Linux Linux)

CVE-2026-98657
Not available

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: iio: proximity: pulsedlight: fix iio_device left registered on PM setup failure pm_runtime_set_active() failing in probe() jumps to error_unreg_buffer, which only calls iio_triggered_buffer_cleanup() -- it does not undo the iio_device_register() that already succeeded a few lines above. probe() then returns the error, the devm-managed indio_dev is freed, but the iio core still has it registered: the sysfs/chardev nodes stay live and point at freed memory. Add an error_unreg_dev label that unregisters the iio device before falling through to the existing buffer cleanup, mirroring the teardown order already used in lidar_remove().

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 4ac4e086fd8c59e6b69089e6f7605500b63a6d17 < 93ecee9ff3af4c2b482fdd4ec98c3308e8dd23a6 ; affected 4ac4e086fd8c59e6b69089e6f7605500b63a6d17 < 58e68e5272a319fff4a704df1ac41e9e3c69587c ; affected 4ac4e086fd8c59e6b69089e6f7605500b63a6d17 < 4a564e39cb99234e8c5b0a39aa30edcc8cf4cf1b ; affected 4ac4e086fd8c59e6b69089e6f7605500b63a6d17 < 2c8211eef98929c5188f8c2224e83b9a63b41bd1 ; affected 4ac4e086fd8c59e6b69089e6f7605500b63a6d17 < 06fa13c53442257b94ea1519555ceddaaea57e0d ; affected 4ac4e086fd8c59e6b69089e6f7605500b63a6d17 < 20ebd7f4e35c0a737f011bc83aeb0cdd37507648
Linux · Linuxaffected 4.5 ; unaffected 0 < 4.5 ; unaffected 5.10.273 ≤ 5.10.* ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.*

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