VDB

CVE-2025-38142

CVE-2025-38142 PUBLISHED

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

Reported by linux · Published July 3, 2025

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]

Affected products

VendorProductVersions
LinuxLinuxd0ddfd241e5719d696bc0b081e260db69d368668, d0ddfd241e5719d696bc0b081e260db69d368668, d0ddfd241e5719d696bc0b081e260db69d368668
LinuxLinux5.18, 0, 6.1.142
LinuxLinux*, 6.12.34, 6.15.3
linuxlinux_kernel5.18, 5.18, 5.18

Timeline

  • Jul 2, 2025 CVE Published
  • Jul 3, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (11 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (224 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (238 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38142
vulnetix vdb fixes CVE-2025-38142

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38142/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›