We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-38142

hwmon: (asus-ec-sensors) check sensor index in read_string()



Description

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]

Reserved 2025-04-16 | Published 2025-07-03 | Updated 2025-07-03 | Assigner Linux

Product status

Default status
unaffected

d0ddfd241e5719d696bc0b081e260db69d368668 before 6bf529ce84dccc0074dbc704e70aee4aa545057e
affected

d0ddfd241e5719d696bc0b081e260db69d368668 before 4e9e45746b861ebd54c03ef301da2cb8fc990536
affected

d0ddfd241e5719d696bc0b081e260db69d368668 before 19bd9cde38dd4ca1771aed7afba623e7f4247c8e
affected

d0ddfd241e5719d696bc0b081e260db69d368668 before 7eeb3df6f07a886bdfd52757ede127a59a8784dc
affected

d0ddfd241e5719d696bc0b081e260db69d368668 before 25be318324563c63cbd9cb53186203a08d2f83a1
affected

Default status
affected

5.18
affected

Any version before 5.18
unaffected

6.1.142
unaffected

6.6.94
unaffected

6.12.34
unaffected

6.15.3
unaffected

6.16-rc1
unaffected

References

git.kernel.org/...c/6bf529ce84dccc0074dbc704e70aee4aa545057e

git.kernel.org/...c/4e9e45746b861ebd54c03ef301da2cb8fc990536

git.kernel.org/...c/19bd9cde38dd4ca1771aed7afba623e7f4247c8e

git.kernel.org/...c/7eeb3df6f07a886bdfd52757ede127a59a8784dc

git.kernel.org/...c/25be318324563c63cbd9cb53186203a08d2f83a1

cve.org (CVE-2025-38142)

nvd.nist.gov (CVE-2025-38142)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-38142

Support options

Helpdesk Chat, Email, Knowledgebase