CVE-2025-21656

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21656
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21656.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-21656
Downstream
Related
Published
2025-01-21T13:15:09Z
Modified
2025-09-26T16:21:34Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

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

scsiexecutecmd() function can return both negative (linux codes) and positive (scsi_cmnd result field) error codes.

Currently the driver just passes error codes of scsiexecutecmd() 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 scsiexecutecmd() output and returns -EIO if it's error code is positive.

[groeck: Avoid inline variable declaration for portability]

References

Affected packages