# CVE-2025-40193: xtensa: simdisk: add input size check in proc_write_simdisk

- Severity: not scored yet
- 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.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2025-11-12T21:56:31.751Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

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

xtensa: simdisk: add input size check in proc_write_simdisk

A malicious user could pass an arbitrarily bad value
to memdup_user_nul(), potentially causing kernel crash.

This follows the same pattern as commit ee76746387f6
("netdevsim: prevent bad user input in nsim_dev_health_break_write()")

(As written by CVE List.)

## Affected

- Linux Linux: from b6c7e873daf765e41233b9752083b66442703b7a before f40405ccfb87b71175f2d5d004c0b8a0aebcc2cf; from b6c7e873daf765e41233b9752083b66442703b7a before 151bd88859474cdaccc1e4c8b21fbf72dbba2ab4; from b6c7e873daf765e41233b9752083b66442703b7a before d381de7fd4cdc928ede96987dc64b133e6480dd6; from b6c7e873daf765e41233b9752083b66442703b7a before a0c2c36d864ef3676b05cfd8c58b72ee3214cb1a; from b6c7e873daf765e41233b9752083b66442703b7a before 5d5f08fd0cd970184376bee07d59f635c8403f63; 3.9 (not affected: before 3.9; from 6.1.157 up to 6.1.*; from 6.6.113 up to 6.6.*; from 6.12.54 up to 6.12.*; from 6.17.4 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/f40405ccfb87b71175f2d5d004c0b8a0aebcc2cf>
- <https://git.kernel.org/stable/c/151bd88859474cdaccc1e4c8b21fbf72dbba2ab4>
- <https://git.kernel.org/stable/c/d381de7fd4cdc928ede96987dc64b133e6480dd6>
- <https://git.kernel.org/stable/c/a0c2c36d864ef3676b05cfd8c58b72ee3214cb1a>
- <https://git.kernel.org/stable/c/5d5f08fd0cd970184376bee07d59f635c8403f63>

## Sources

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

---

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