CVE-2025-71197
Last modified
CVE-2025-71197 is a vulnerability of currently unknown severity. 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. EPSS estimates a 0.19% chance of exploitation in the next 30 days.
Description
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.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= e2c94d6f572079511945e64537eb1218643f2e68, < 49ff9b4b9deacbefa6654a0a2bcaf910c9de7e95; >= e2c94d6f572079511945e64537eb1218643f2e68, < 060b08d72a38b158a7f850d4b83c17c2969e0f6b; >= e2c94d6f572079511945e64537eb1218643f2e68, < b3fc3e1f04dcc7c41787bbf08a6e0d2728e022cf; >= e2c94d6f572079511945e64537eb1218643f2e68, < 6a5820ecfa5a76c3d3e154802c8c15f391ef442e; >= e2c94d6f572079511945e64537eb1218643f2e68, < 6fd6d2a8e41b7f544a4d26cbd60bedf9c67893a0; >= e2c94d6f572079511945e64537eb1218643f2e68, < e6b2609af21b5cccc9559339591b8a2cbf884169; >= e2c94d6f572079511945e64537eb1218643f2e68, < 761fcf46a1bd797bd32d23f3ea0141ffd437668a |
| Linux | Linux | 5.8 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-71197?
How severe is CVE-2025-71197?
How do I fix CVE-2025-71197?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-71191In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-71192In the Linux kernel, the following vulnerability has been re…7
- CVE-2025-71193In the Linux kernel, the following vulnerability has been re…
- CVE-2025-71194In the Linux kernel, the following vulnerability has been re…
- CVE-2025-71195In the Linux kernel, the following vulnerability has been re…
- CVE-2025-71196In the Linux kernel, the following vulnerability has been re…
- CVE-2025-71198In the Linux kernel, the following vulnerability has been re…
- CVE-2025-71199In the Linux kernel, the following vulnerability has been re…
- CVE-2025-7120A vulnerability was found in Campcodes Complaint Management …9.8
- CVE-2025-71200In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-71201In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-71202In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2025-71197?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
