{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71197","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-01-31T11:36:51.192Z","datePublished":"2026-02-04T16:07:32.198Z","dateUpdated":"2026-05-11T21:56:32.299Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T21:56:32.299Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nw1: therm: Fix off-by-one buffer overflow in alarms_store\n\nThe sysfs buffer passed to alarms_store() is allocated with 'size + 1'\nbytes and a NUL terminator is appended. However, the 'size' argument\ndoes not account for this extra byte. The original code then allocated\n'size' bytes and used strcpy() to copy 'buf', which always writes one\nbyte past the allocated buffer since strcpy() copies until the NUL\nterminator at index 'size'.\n\nFix this by parsing the 'buf' parameter directly using simple_strtoll()\nwithout allocating any intermediate memory or string copying. This\nremoves the overflow while simplifying the code."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/w1/slaves/w1_therm.c"],"versions":[{"version":"e2c94d6f572079511945e64537eb1218643f2e68","lessThan":"49ff9b4b9deacbefa6654a0a2bcaf910c9de7e95","status":"affected","versionType":"git"},{"version":"e2c94d6f572079511945e64537eb1218643f2e68","lessThan":"060b08d72a38b158a7f850d4b83c17c2969e0f6b","status":"affected","versionType":"git"},{"version":"e2c94d6f572079511945e64537eb1218643f2e68","lessThan":"b3fc3e1f04dcc7c41787bbf08a6e0d2728e022cf","status":"affected","versionType":"git"},{"version":"e2c94d6f572079511945e64537eb1218643f2e68","lessThan":"6a5820ecfa5a76c3d3e154802c8c15f391ef442e","status":"affected","versionType":"git"},{"version":"e2c94d6f572079511945e64537eb1218643f2e68","lessThan":"6fd6d2a8e41b7f544a4d26cbd60bedf9c67893a0","status":"affected","versionType":"git"},{"version":"e2c94d6f572079511945e64537eb1218643f2e68","lessThan":"e6b2609af21b5cccc9559339591b8a2cbf884169","status":"affected","versionType":"git"},{"version":"e2c94d6f572079511945e64537eb1218643f2e68","lessThan":"761fcf46a1bd797bd32d23f3ea0141ffd437668a","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/w1/slaves/w1_therm.c"],"versions":[{"version":"5.8","status":"affected"},{"version":"0","lessThan":"5.8","status":"unaffected","versionType":"semver"},{"version":"5.10.249","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.199","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.162","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.122","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.68","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.8","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.10.249"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.199"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.1.162"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.6.122"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.68"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.19"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/49ff9b4b9deacbefa6654a0a2bcaf910c9de7e95"},{"url":"https://git.kernel.org/stable/c/060b08d72a38b158a7f850d4b83c17c2969e0f6b"},{"url":"https://git.kernel.org/stable/c/b3fc3e1f04dcc7c41787bbf08a6e0d2728e022cf"},{"url":"https://git.kernel.org/stable/c/6a5820ecfa5a76c3d3e154802c8c15f391ef442e"},{"url":"https://git.kernel.org/stable/c/6fd6d2a8e41b7f544a4d26cbd60bedf9c67893a0"},{"url":"https://git.kernel.org/stable/c/e6b2609af21b5cccc9559339591b8a2cbf884169"},{"url":"https://git.kernel.org/stable/c/761fcf46a1bd797bd32d23f3ea0141ffd437668a"}],"title":"w1: therm: Fix off-by-one buffer overflow in alarms_store","x_generator":{"engine":"bippy-1.2.0"}}}}