CVE-2025-38142

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

published July 3, 2025

CVSS
—
EPSS
0%
Percentile
8.1
In the wild
Unconfirmed
What it is

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]

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00189 · 8.1th percentile
Published
2025-07-03T08:35Z
EPSS history
Timeline
  • 03 JUL 08:35Z
    hwmon: (asus-ec-sensors) check sensor index in read_string()
    cvelistv5