PT-2026-5997 · Linux+2 · Linux Kernel+2
Published
2025-01-01
·
Updated
2026-06-04
·
CVE-2025-71197
None
No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
A flaw exists in the Linux kernel related to a buffer overflow in the
alarms store function within the w1 therm module. The sysfs buffer passed to this function is allocated with 'size + 1' bytes, including a null terminator. However, the size argument does not account for the extra byte. The original code allocated 'size' bytes and used strcpy() to copy buf, resulting in a one-byte write past the allocated buffer due to strcpy() copying until the null terminator. The issue is addressed by parsing the buf parameter directly using simple strtoll() without allocating intermediate memory or using string copying, thereby removing the overflow and simplifying the code.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Linuxmint
Linux Kernel
Ubuntu