CVE-2025-21656: hwmon: (drivetemp) Fix driver producing garbage data when SCSI errors occur
Vulnerability summary
CVE-2025-21656 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 10.6% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 28 · Related 28Timeline
- 21-01-2025PublishedVulnerability first disclosed.
- 30-10-2026Last modifiedVulnerability information updated.
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]
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
11%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.20% on 21-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu125 products
- linuxAll versions (No fix recorded) | < 5.15.0-203.213 | < 6.8.0-60.63
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1120.127 | < 6.8.0-1029.31
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < babdf2a11329d30dc5086eb7a938a360aa490282 | ≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < 0435d35f9d511fa5ddba49c9f68f947e395c93f9 | ≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < f9723fd2770ef5563ff1685f72bcc1c411219c29 | ≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < 53e25b10a28edaf8c2a1d3916fd8929501a50dfc | ≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < 42268d885e44af875a6474f7bba519cc6cea6a9d | ≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < 82163d63ae7a4c36142cd252388737205bb7e4b9 | 5.6
- linux_kernel≥ 5.6, < 6.6.72 | ≥ 6.7, < 6.12.10 | 6.13:rc1 | 6.13:rc2 | 6.13:rc3 | 6.13:rc4 | 6.13:rc5 | 6.13:rc6
Debian1 product
- linuxAll versions (No fix recorded) | < 6.1.192-1 | < 6.12.10-1
3 vendors · 128 products