CVE-2025-21656
Last modified
CVE-2025-21656 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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]. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
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]
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.6, < 6.6.72 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.10 | — |
| Linux | Linux Kernel | 6.13 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-21656?
How severe is CVE-2025-21656?
How do I fix CVE-2025-21656?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-21650In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-21651In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-21652In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-21653In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21654In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21655In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-21657In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21658In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21659In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-2166The CM FAQ – Simplify support with an intuitive FAQ managem…6.1
- CVE-2025-21660In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-21661In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-21656?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
