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]
[
{
"deprecated": false,
"id": "CVE-2025-38142-44264085",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6bf529ce84dccc0074dbc704e70aee4aa545057e",
"digest": {
"function_hash": "191304971850085047846662279438510503479",
"length": 246.0
},
"target": {
"function": "asus_ec_hwmon_read_string",
"file": "drivers/hwmon/asus-ec-sensors.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"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"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2025-38142-976a64ea",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e9e45746b861ebd54c03ef301da2cb8fc990536",
"digest": {
"function_hash": "191304971850085047846662279438510503479",
"length": 246.0
},
"target": {
"function": "asus_ec_hwmon_read_string",
"file": "drivers/hwmon/asus-ec-sensors.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2025-38142-9934c95e",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@19bd9cde38dd4ca1771aed7afba623e7f4247c8e",
"digest": {
"function_hash": "191304971850085047846662279438510503479",
"length": 246.0
},
"target": {
"function": "asus_ec_hwmon_read_string",
"file": "drivers/hwmon/asus-ec-sensors.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2025-38142-e136f0c2",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e9e45746b861ebd54c03ef301da2cb8fc990536",
"digest": {
"line_hashes": [
"189267681992405750486356212706897961439",
"45240265812193188621850117224415917224",
"189756478964338329673698762804148963272",
"311747747950620401189029611691634487916"
],
"threshold": 0.9
},
"target": {
"file": "drivers/hwmon/asus-ec-sensors.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2025-38142-f2db892c",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6bf529ce84dccc0074dbc704e70aee4aa545057e",
"digest": {
"line_hashes": [
"189267681992405750486356212706897961439",
"45240265812193188621850117224415917224",
"189756478964338329673698762804148963272",
"311747747950620401189029611691634487916"
],
"threshold": 0.9
},
"target": {
"file": "drivers/hwmon/asus-ec-sensors.c"
},
"signature_type": "Line",
"signature_version": "v1"
}
]