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.
findecsensorindex() may return a negative value (e.g. -ENOENT), but its result was used without checking, which could lead to undefined behavior when passed to getsensor_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 findecsensor_index]
[
{
"id": "CVE-2025-38142-7a087163",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7eeb3df6f07a886bdfd52757ede127a59a8784dc",
"digest": {
"line_hashes": [
"189267681992405750486356212706897961439",
"45240265812193188621850117224415917224",
"189756478964338329673698762804148963272",
"311747747950620401189029611691634487916"
],
"threshold": 0.9
},
"target": {
"file": "drivers/hwmon/asus-ec-sensors.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2025-38142-8a889aed",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@19bd9cde38dd4ca1771aed7afba623e7f4247c8e",
"digest": {
"line_hashes": [
"189267681992405750486356212706897961439",
"45240265812193188621850117224415917224",
"189756478964338329673698762804148963272",
"311747747950620401189029611691634487916"
],
"threshold": 0.9
},
"target": {
"file": "drivers/hwmon/asus-ec-sensors.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2025-38142-9934c95e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@19bd9cde38dd4ca1771aed7afba623e7f4247c8e",
"digest": {
"length": 246.0,
"function_hash": "191304971850085047846662279438510503479"
},
"target": {
"file": "drivers/hwmon/asus-ec-sensors.c",
"function": "asus_ec_hwmon_read_string"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2025-38142-e86711ce",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7eeb3df6f07a886bdfd52757ede127a59a8784dc",
"digest": {
"length": 246.0,
"function_hash": "191304971850085047846662279438510503479"
},
"target": {
"file": "drivers/hwmon/asus-ec-sensors.c",
"function": "asus_ec_hwmon_read_string"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
]