cbcvebase.
CVE-2025-38142
published 2025-07-03

CVE-2025-38142: In the Linux kernel, the following vulnerability has been resolved: hwmon: (asus-ec-sensors) check sensor index in read_string() Prevent a potential invalid…

medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
In the Linux kernel, the following vulnerability has been resolved: hwmon: (asus-ec-sensors) check sensor index in read_string() Prevent a potential invalid memory access when the requested sensor is not found. find_ec_sensor_index() may return a negative value (e.g. -ENOENT), but its result was used without checking, which could lead to undefined behavior when passed to get_sensor_info(). Add a proper check to return -EINVAL if sensor_index is negative. Found by Linux Verification Center (linuxtesting.org) with SVACE. [groeck: Return error code returned from find_ec_sensor_index]

Affected

27 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debianlinux< linux 6.1.147-1 (bookworm)linux 6.1.147-1 (bookworm)
debianlinux-6.1< linux 6.1.147-1 (bookworm)linux 6.1.147-1 (bookworm)
linuxlinux
linuxlinux>= d0ddfd241e5719d696bc0b081e260db69d368668 < 6bf529ce84dccc0074dbc704e70aee4aa545057e6bf529ce84dccc0074dbc704e70aee4aa545057e
linuxlinux>= d0ddfd241e5719d696bc0b081e260db69d368668 < 4e9e45746b861ebd54c03ef301da2cb8fc9905364e9e45746b861ebd54c03ef301da2cb8fc990536
linuxlinux>= d0ddfd241e5719d696bc0b081e260db69d368668 < 19bd9cde38dd4ca1771aed7afba623e7f4247c8e19bd9cde38dd4ca1771aed7afba623e7f4247c8e
linuxlinux>= d0ddfd241e5719d696bc0b081e260db69d368668 < 7eeb3df6f07a886bdfd52757ede127a59a8784dc7eeb3df6f07a886bdfd52757ede127a59a8784dc
linuxlinux>= d0ddfd241e5719d696bc0b081e260db69d368668 < 25be318324563c63cbd9cb53186203a08d2f83a125be318324563c63cbd9cb53186203a08d2f83a1
linuxlinux_kernel>= 0 < 6.1.147-16.1.147-1
linuxlinux_kernel>= 0 < 6.12.35-16.12.35-1
linuxlinux_kernel>= 0 < 6.12.35-16.12.35-1
linuxlinux_kernel>= 0 < 6.8.0-100.1006.8.0-100.100
linuxlinux_kernel>= 5.18 < 6.1.1426.1.142
linuxlinux_kernel>= 6.13 < 6.15.36.15.3
linuxlinux_kernel>= 6.2 < 6.6.946.6.94
linuxlinux_kernel>= 6.7 < 6.12.346.12.34
msrcazl3_kernel_6.6.92.2-2_on_azure_linux_3.0
ubuntulinux-aws
ubuntulinux-aws-6.8
ubuntulinux-gkeop
ubuntulinux-nvidia
ubuntulinux-nvidia-6.8
ubuntulinux-oracle
ubuntulinux-oracle-6.8

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM