iio: light: gp2ap002: fix runtime PM leak on read error (Linux Linux)

CVE-2026-64494
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.18 % · centile 7 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: iio: light: gp2ap002: fix runtime PM leak on read error gp2ap002_read_raw() calls pm_runtime_get_sync() before reading the lux value, but if gp2ap002_get_lux() fails, it returns directly. This skips the pm_runtime_put_autosuspend() call at the "out" label, permanently leaking a runtime PM reference and preventing the device from autosuspending. Replace the direct return with a "goto out" to ensure the reference is properly dropped on the error path.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected f6dbf83c17cb223ceabd7c42d441414f3e0e8a86 < 62e0d74821a02f0e0c5c79b99ae64dc83a9a90f5 ; affected f6dbf83c17cb223ceabd7c42d441414f3e0e8a86 < 7110201c6b21455240c63388f30113f3baafacfc ; affected f6dbf83c17cb223ceabd7c42d441414f3e0e8a86 < 2593f0c6ea37df168975694a3b17e7086f11453e ; affected f6dbf83c17cb223ceabd7c42d441414f3e0e8a86 < f350883989ced96d6da7f582f9a6f9c6ffc94e34 ; affected f6dbf83c17cb223ceabd7c42d441414f3e0e8a86 < 29137052c4485c74bc2d1b0717f69ca4de14274f ; affected f6dbf83c17cb223ceabd7c42d441414f3e0e8a86 < 0c655d067ac69ee24e2e9d706c54179ea58a43db
Linux · Linuxaffected 5.8 ; unaffected 0 < 5.8 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 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