CVE-2025-38142hwmon: (asus-ec-sensors) check sensor index in read_string()
- 5.5MediumCVSS base score
- 0.19%Exploitation in 30 daysEPSS · top 91% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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]
Timeline
ID reserved
By Linux
- 3 months later
· 3 months later
Published
- 10 months later
· 10 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.19% · top 91% of all CVEs (14 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected d0ddfd241e5719d696bc0b081e260db69d368668 – < 6bf529ce84dccc0074dbc704e70aee4aa545057e
- affected d0ddfd241e5719d696bc0b081e260db69d368668 – < 4e9e45746b861ebd54c03ef301da2cb8fc990536
- affected d0ddfd241e5719d696bc0b081e260db69d368668 – < 19bd9cde38dd4ca1771aed7afba623e7f4247c8e
- affected d0ddfd241e5719d696bc0b081e260db69d368668 – < 7eeb3df6f07a886bdfd52757ede127a59a8784dc
- affected d0ddfd241e5719d696bc0b081e260db69d368668 – < 25be318324563c63cbd9cb53186203a08d2f83a1
- affected 5.18
- unaffected < 5.18
- unaffected 6.1.142 – ≤ 6.1.*
- unaffected 6.6.94 – ≤ 6.6.*
- unaffected 6.12.34 – ≤ 6.12.*
- unaffected 6.15.3 – ≤ 6.15.*
- unaffected 6.16 – ≤ *
References
References6
- https://git.kernel.org/stable/c/6bf529ce84dccc0074dbc704e70aee4aa545057e (opens in a new tab)
- https://git.kernel.org/stable/c/4e9e45746b861ebd54c03ef301da2cb8fc990536 (opens in a new tab)
- https://git.kernel.org/stable/c/19bd9cde38dd4ca1771aed7afba623e7f4247c8e (opens in a new tab)
- https://git.kernel.org/stable/c/7eeb3df6f07a886bdfd52757ede127a59a8784dc (opens in a new tab)
- https://git.kernel.org/stable/c/25be318324563c63cbd9cb53186203a08d2f83a1 (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-19801 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-38142)Record last updated .