CVE-2025-71197
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.
Affected versions
Linux kernel versions
5.8
and later are affected. Fixed in
5.10.249,
5.15.199,
6.1.162,
6.6.122,
6.12.68,
6.18.8,
6.19
and their respective stable series.
References
The following references provide additional information about CVE-2025-71197 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/060b08d72a38b158a7f850d4b83c17c2969e0f6b
-
PatchKernel patch commithttps://git.kernel.org/stable/c/49ff9b4b9deacbefa6654a0a2bcaf910c9de7e95
-
PatchKernel patch commithttps://git.kernel.org/stable/c/6a5820ecfa5a76c3d3e154802c8c15f391ef442e
Frequently asked questions
-
What is CVE-2025-71197?
CVE-2025-71197 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 5.8 onward and has been patched in 5.10.249, 5.15.199, 6.1.162 and others. CVE-2025-71197 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2025-71197?
Yes — CVE-2025-71197 has been patched. Fixed versions include 5.10.249, 5.15.199, 6.1.162 and others. If you are running Linux kernel 5.8 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-71197 actively exploited?
No — CVE-2025-71197 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.