CVE-2025-21656
MEDIUMLinux Kernel 5.6-6.6.71, 6.7-6.12.9 - Uninitialized Data Exposure via SCSI Error Handling
Title source: llmDescription
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]
References (3)
Core 3
Scores
CVSS v3
5.5
EPSS
0.0020
EPSS Percentile
9.9%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
Status
published
Products (12)
linux/Kernel
5.6.0 - 6.6.72linux
linux/Kernel
6.7.0 - 6.12.10linux
Linux/Linux
< 5.6
Linux/Linux
5.6
Linux/Linux
5b46903d8bf372e563bf2150d46b87fff197a109 - 42268d885e44af875a6474f7bba519cc6cea6a9d
Linux/Linux
5b46903d8bf372e563bf2150d46b87fff197a109 - 53e25b10a28edaf8c2a1d3916fd8929501a50dfc
Linux/Linux
5b46903d8bf372e563bf2150d46b87fff197a109 - 82163d63ae7a4c36142cd252388737205bb7e4b9
Linux/Linux
6.12.10 - 6.12.*
Linux/Linux
6.13
Linux/Linux
6.6.72 - 6.6.*
... and 2 more
Published
Jan 21, 2025
Tracked Since
Feb 18, 2026