Junglewise Threat Intelligence

CVE-2025-71197: Linux Kernel w1_therm off-by-one buffer overflow in alarms_store

CVE-2025-71197 · Severity: info · CVSS 0 · Published 2026-02-04

Technologies: Linux Kernel, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP. Vendors: Linux, Siemens.

Executive brief

A vulnerability was identified in the Linux kernel's 1-Wire thermal sensor driver that could lead to a buffer overflow. This component is responsible for managing communication with digital thermometers used in various industrial and embedded systems. An exploit could potentially allow a local user to crash the system or execute unauthorized code, impacting the reliability and security of devices like Siemens SIMATIC industrial controllers.

Technical details

An off-by-one buffer overflow exists in the 'alarms_store' function within 'drivers/w1/slaves/w1_therm.c'. The vulnerability is caused by the use of 'strcpy()' to copy a sysfs buffer into a destination allocated with 'size' bytes, failing to account for the NUL terminator appended at 'size + 1'. A local attacker with permissions to write to the 'alarms' sysfs attribute can trigger this overflow. The fix replaces the manual allocation and string copying with direct parsing using 'simple_strtoll()'. The issue affects Linux kernel versions starting from 5.8 and has been backported to various stable branches.

Affected products

  • Linux Linux Kernel 5.8 to 6.13.x
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.6 and later

Timeline

  • 2025-12-16: disclosed: Initial patch submission
  • 2026-02-04: advisory: CVE published
  • 2026-02-06: patched: Patch committed to stable branches

References

Related threats