CVE-2025-38142

Medium

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]

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedJul 3, 2025
First seenJul 3, 2025

How to fix

Update
  • linux linux_kernel6.1.142, 6.6.94, 6.12.34, 6.15.3 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel5.18 ≤ v < 6.1.142, 6.2 ≤ v < 6.6.94, 6.7 ≤ v < 6.12.34, 6.13 ≤ v < 6.15.36.1.142, 6.6.94, 6.12.34, 6.15.3
debian debian_linux11.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.