# CVE-2026-98157: EDAC/device_sysfs: Use kstrtouint() for poll_msec to prevent truncation

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-09-25T10:36:27.009Z
- Modified: 2026-10-20T17:30:40.097Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from e27e3dac651771fe3250f6305dee277bce29fc5d before a60794ee3f453516ab3ed212ba0295ecf890bc8c; from e27e3dac651771fe3250f6305dee277bce29fc5d before f856511058c8cb470d6c6c7ce908870adcdc7dc6; from e27e3dac651771fe3250f6305dee277bce29fc5d before 656e2fe98ac452db4e5b8147d1f33b8c35b4ec4b; from e27e3dac651771fe3250f6305dee277bce29fc5d before 541fc6f733b32463cf23277637bb07e2aaa00b53; from e27e3dac651771fe3250f6305dee277bce29fc5d before ea01c061d839b520f385f112908de1c6e3391327; from e27e3dac651771fe3250f6305dee277bce29fc5d before 528052af901d6e6bbfa0e52362a70a58a5dd1e43; from e27e3dac651771fe3250f6305dee277bce29fc5d before 0e022ee4f8e0dc843ba4c80bb75408a7704279af; from e27e3dac651771fe3250f6305dee277bce29fc5d before 66cc9dec919dd63d8e4b3d386f7aed3ae684e645; 2.6.23 (not affected: before 2.6.23; from 5.10.271 up to 5.10.*; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 2.6.23 before 5.10.271; from 5.15 before 5.15.222; from 6.1 before 6.1.189; from 6.6 before 6.6.158; from 6.12 before 6.12.111; from 6.13 before 6.18.53; from 6.19 before 7.2.7; 7.3

## References

- <https://git.kernel.org/stable/c/a60794ee3f453516ab3ed212ba0295ecf890bc8c> (patch)
- <https://git.kernel.org/stable/c/f856511058c8cb470d6c6c7ce908870adcdc7dc6> (patch)
- <https://git.kernel.org/stable/c/656e2fe98ac452db4e5b8147d1f33b8c35b4ec4b> (patch)
- <https://git.kernel.org/stable/c/541fc6f733b32463cf23277637bb07e2aaa00b53> (patch)
- <https://git.kernel.org/stable/c/ea01c061d839b520f385f112908de1c6e3391327> (patch)
- <https://git.kernel.org/stable/c/528052af901d6e6bbfa0e52362a70a58a5dd1e43> (patch)
- <https://git.kernel.org/stable/c/0e022ee4f8e0dc843ba4c80bb75408a7704279af> (patch)
- <https://git.kernel.org/stable/c/66cc9dec919dd63d8e4b3d386f7aed3ae684e645> (patch)

## Sources

- CVE List: [CVE-2026-98157](https://www.cve.org/CVERecord?id=CVE-2026-98157), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98157](https://nvd.nist.gov/vuln/detail/CVE-2026-98157), Public domain, modified 2026-10-20

---

Page: https://cve.day/CVE-2026-98157 · Whole record: https://cve.day/CVE-2026-98157.json · Rebuilt by cve.day 2026-11-25T22:59:41.084Z
