Linux Kernel SCSI Error Handling Vulnerability in hwmon Drive Temperature Driver

Vulnerability

A vulnerability in the Linux kernel's hwmon (drivetemp) driver has been addressed. The issue arose because the driver incorrectly handled error codes from the 'scsi_execute_cmd()' function, which can return both negative Linux error codes and positive SCSI command result codes. The driver passed these positive error codes directly to the hwmon core, which only interprets negative codes as errors. This mismanagement led to hwmon displaying uninitialized data to userspace when SCSI errors occurred, such as when a disk drive was disconnected. The patch now correctly interprets positive error codes as SCSI errors and returns a negative error code, ensuring proper data handling.

Impact

The vulnerability could cause the hwmon driver to report incorrect data to userspace, potentially leading to misinformed decisions based on faulty temperature readings.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.0
exploitability
4.0
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.