CVE-2025-38142
Last modified
CVE-2025-38142 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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]. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
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]
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.18, < 6.1.142 |
| Linux | Linux Kernel | >= 6.2, < 6.6.94 |
| Linux | Linux Kernel | >= 6.7, < 6.12.34 |
| Linux | Linux Kernel | >= 6.13, < 6.15.3 |
| Debian | Debian Linux | 11.0 |
References
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-38142?
How severe is CVE-2025-38142?
How do I fix CVE-2025-38142?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-38137In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38138In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38139In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-3814The Tax Switch for WooCommerce plugin for WordPress is vulne…6.4
- CVE-2025-38140In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38141In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38143In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38144In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38145In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38146In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38147In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38148In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-38142?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
