hwmon: (drivetemp) Fix driver producing garbage data when SCSI errors occur (Linux Linux)

CVE-2025-21656
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.20 % · centile 10 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: hwmon: (drivetemp) Fix driver producing garbage data when SCSI errors occur scsi_execute_cmd() function can return both negative (linux codes) and positive (scsi_cmnd result field) error codes. Currently the driver just passes error codes of scsi_execute_cmd() to hwmon core, which is incorrect because hwmon only checks for negative error codes. This leads to hwmon reporting uninitialized data to userspace in case of SCSI errors (for example if the disk drive was disconnected). This patch checks scsi_execute_cmd() output and returns -EIO if it's error code is positive. [groeck: Avoid inline variable declaration for portability]

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 5b46903d8bf372e563bf2150d46b87fff197a109 < babdf2a11329d30dc5086eb7a938a360aa490282 ; affected 5b46903d8bf372e563bf2150d46b87fff197a109 < 0435d35f9d511fa5ddba49c9f68f947e395c93f9 ; affected 5b46903d8bf372e563bf2150d46b87fff197a109 < f9723fd2770ef5563ff1685f72bcc1c411219c29 ; affected 5b46903d8bf372e563bf2150d46b87fff197a109 < 53e25b10a28edaf8c2a1d3916fd8929501a50dfc ; affected 5b46903d8bf372e563bf2150d46b87fff197a109 < 42268d885e44af875a6474f7bba519cc6cea6a9d ; affected 5b46903d8bf372e563bf2150d46b87fff197a109 < 82163d63ae7a4c36142cd252388737205bb7e4b9
Linux · Linuxaffected 5.6 ; unaffected 0 < 5.6 ; unaffected 5.10.273 ≤ 5.10.* ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.72 ≤ 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