CVE-2026-98157 PUBLISHED

EDAC/device_sysfs: Use kstrtouint() for poll_msec to prevent truncation

Assigner: Linux
Reserved: 25.09.2026 Published: 25.09.2026 Updated: 25.09.2026

In the Linux kernel, the following vulnerability has been resolved:

EDAC/device_sysfs: Use kstrtouint() for poll_msec to prevent truncation

The poll_msec sysfs store file uses simple_strtoul() which accepts an unsigned long, but the target field (poll_msec) is unsigned int. On 64-bit systems, a value > UINT_MAX is silently truncated when stored.

Fix the mismatch by using kstrtouint() instead. This rejects values larger than UINT_MAX at parse time, making truncation impossible. Also add a check for value < 1 to reject the 0-delay case, which would cause the poll work to spin without delay and consume 100% CPU.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from e27e3dac651771fe3250f6305dee277bce29fc5d to ea01c061d839b520f385f112908de1c6e3391327 (excl.)
  • affected from e27e3dac651771fe3250f6305dee277bce29fc5d to 528052af901d6e6bbfa0e52362a70a58a5dd1e43 (excl.)
  • affected from e27e3dac651771fe3250f6305dee277bce29fc5d to 0e022ee4f8e0dc843ba4c80bb75408a7704279af (excl.)
  • affected from e27e3dac651771fe3250f6305dee277bce29fc5d to 66cc9dec919dd63d8e4b3d386f7aed3ae684e645 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.23 is affected
  • unaffected from 0 to 2.6.23 (excl.)
  • unaffected from 6.12.111 to 6.12.* (incl.)
  • unaffected from 6.18.53 to 6.18.* (incl.)
  • unaffected from 7.2.7 to 7.2.* (incl.)
  • unaffected from 7.3-rc2 to * (incl.)

References