CVE-2025-21656hwmon: (drivetemp) Fix driver producing garbage data when SCSI errors occur
- 5.5MediumCVSS base score
- 0.21%Exploitation in 30 daysEPSS · top 89% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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]
Timeline
ID reserved
By Linux
- 23 days later
· 23 days later
Published
- 22 months later
· 22 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.21% · top 89% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected 5b46903d8bf372e563bf2150d46b87fff197a109 – < babdf2a11329d30dc5086eb7a938a360aa490282
- affected 5b46903d8bf372e563bf2150d46b87fff197a109 – < 0435d35f9d511fa5ddba49c9f68f947e395c93f9
- affected 5b46903d8bf372e563bf2150d46b87fff197a109 – < f9723fd2770ef5563ff1685f72bcc1c411219c29
- affected 5b46903d8bf372e563bf2150d46b87fff197a109 – < 53e25b10a28edaf8c2a1d3916fd8929501a50dfc
- affected 5b46903d8bf372e563bf2150d46b87fff197a109 – < 42268d885e44af875a6474f7bba519cc6cea6a9d
- affected 5b46903d8bf372e563bf2150d46b87fff197a109 – < 82163d63ae7a4c36142cd252388737205bb7e4b9
- affected 5.6
- unaffected < 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.*
- unaffected 6.12.10 – ≤ 6.12.*
- unaffected 6.13 – ≤ *
References
References6
- https://git.kernel.org/stable/c/babdf2a11329d30dc5086eb7a938a360aa490282 (opens in a new tab)
- https://git.kernel.org/stable/c/0435d35f9d511fa5ddba49c9f68f947e395c93f9 (opens in a new tab)
- https://git.kernel.org/stable/c/f9723fd2770ef5563ff1685f72bcc1c411219c29 (opens in a new tab)
- https://git.kernel.org/stable/c/53e25b10a28edaf8c2a1d3916fd8929501a50dfc (opens in a new tab)
- https://git.kernel.org/stable/c/42268d885e44af875a6474f7bba519cc6cea6a9d (opens in a new tab)
- https://git.kernel.org/stable/c/82163d63ae7a4c36142cd252388737205bb7e4b9 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-2605 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-21656)Record last updated .