CVE Catalog

CVE-2025-71197

Low risk· EPSS 9%
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

9th percentile - higher than 9% of all known CVEs

Summary

A vulnerability was found in the Linux kernel's w1 thermometer driver (w1: therm) due to an off-by-one buffer overflow in the alarms_store function. The sysfs buffer is allocated with 'size + 1' bytes, but the function allocates only 'size' bytes and then uses strcpy(), causing a write one byte past the allocated buffer. The fix parses the 'buf' parameter directly using simple_strtoll() without memory allocation.

Risk Assessment

This vulnerability could lead to a kernel buffer overflow, potentially allowing a local attacker to escalate privileges or cause a denial of service (DoS) by writing to a sysfs file.

Recommendation

Immediately update the Linux kernel to a version containing the fix (commit resolving the off-by-one in w1: therm). Monitor official security advisories from your distribution.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: w1: therm: Fix off-by-one buffer overflow in alarms_store The sysfs buffer passed to alarms_store() is allocated with 'size + 1' bytes and a NUL terminator is appended. However, the 'size' argument does not account for this extra byte. The original code then allocated 'size' bytes and used strcpy() to copy 'buf', which always writes one byte past the allocated buffer since strcpy() copies until the NUL terminator at index 'size'. Fix this by parsing the 'buf' parameter directly using simple_strtoll() without allocating any intermediate memory or string copying. This removes the overflow while simplifying the code.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS