{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38142","id":"CVE-2025-38142","title":"hwmon: (asus-ec-sensors) check sensor index in read_string()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (asus-ec-sensors) check sensor index in read_string()\n\nPrevent a potential invalid memory access when the requested sensor\nis not found.\n\nfind_ec_sensor_index() may return a negative value (e.g. -ENOENT),\nbut its result was used without checking, which could lead to\nundefined behavior when passed to get_sensor_info().\n\nAdd","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (asus-ec-sensors) check sensor index in read_string()\n\nPrevent a potential invalid memory access when the requested sensor\nis not found.\n\nfind_ec_sensor_index() may return a negative value (e.g. -ENOENT),\nbut its result was used without checking, which could lead to\nundefined behavior when passed to get_sensor_info().\n\nAdd a proper check to return -EINVAL if sensor_index is negative.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.\n\n[groeck: Return error code returned from find_ec_sensor_index]","published":"2025-07-03T08:35:43.521Z","updated":"2026-10-28T02:30:28.249827507Z","reserved":"2025-04-16T04:51:23.987Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d0ddfd241e5719d696bc0b081e260db69d368668","lessThan":"6bf529ce84dccc0074dbc704e70aee4aa545057e","status":"affected","versionType":"git"},{"version":"d0ddfd241e5719d696bc0b081e260db69d368668","lessThan":"4e9e45746b861ebd54c03ef301da2cb8fc990536","status":"affected","versionType":"git"},{"version":"d0ddfd241e5719d696bc0b081e260db69d368668","lessThan":"19bd9cde38dd4ca1771aed7afba623e7f4247c8e","status":"affected","versionType":"git"},{"version":"d0ddfd241e5719d696bc0b081e260db69d368668","lessThan":"7eeb3df6f07a886bdfd52757ede127a59a8784dc","status":"affected","versionType":"git"},{"version":"d0ddfd241e5719d696bc0b081e260db69d368668","lessThan":"25be318324563c63cbd9cb53186203a08d2f83a1","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.18","status":"affected"},{"version":"0","lessThan":"5.18","status":"unaffected","versionType":"semver"},{"version":"6.1.142","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.94","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.34","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.3","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/6bf529ce84dccc0074dbc704e70aee4aa545057e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4e9e45746b861ebd54c03ef301da2cb8fc990536","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/19bd9cde38dd4ca1771aed7afba623e7f4247c8e","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7eeb3df6f07a886bdfd52757ede127a59a8784dc","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/25be318324563c63cbd9cb53186203a08d2f83a1","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38142.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38142","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00195,"epssPercentile":0.09353,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38142","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38142","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38142","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38142","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}