Skip to main content
Network Thinking Solutions Logo

CVE-2025-21656

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

All CVEs
CVE-2025-21656Published 1/21/2025

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

Vendor advisory
CVSS5.5Medium

Overview

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]

Published
1/21/2025
Last modified
10/30/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.6, < 6.6.72

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.10

Verify advisory

Source
linux kernel
linux
6.13

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < babdf2a11329d30dc5086eb7a938a360aa490282

Verify advisory

Source
Linux
Linux
≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < 0435d35f9d511fa5ddba49c9f68f947e395c93f9

Verify advisory

Source
Linux
Linux
≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < f9723fd2770ef5563ff1685f72bcc1c411219c29

Verify advisory

Source
Linux
Linux
≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < 53e25b10a28edaf8c2a1d3916fd8929501a50dfc

Verify advisory

Source
Linux
Linux
≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < 42268d885e44af875a6474f7bba519cc6cea6a9d

Verify advisory

Source
Linux
Linux
≥ 5b46903d8bf372e563bf2150d46b87fff197a109, < 82163d63ae7a4c36142cd252388737205bb7e4b9

Verify advisory

Source
Linux
Linux
5.6

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.