# CVE-2025-40198: ext4: avoid potential buffer over-read in parse_apply_sb_mount_options()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/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.25%, higher than 10% of CVEs (2026-11-30)
- Published: 2025-11-12T21:56:33.220Z
- Modified: 2026-10-19T21:10:00.160Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

ext4: avoid potential buffer over-read in parse_apply_sb_mount_options()

Unlike other strings in the ext4 superblock, we rely on tune2fs to
make sure s_mount_opts is NUL terminated.  Harden
parse_apply_sb_mount_options() by treating s_mount_opts as a potential
__nonstring.

(As written by CVE List.)

## Affected

- Linux Linux: from 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 before 7bf46ff83a0ef11836e38ebd72cdc5107209342d; from 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 before b2bac84fde28fb6a88817b8b761abda17a1d300b; from 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 before e651294218d2684302ee5ed95ccf381646f3e5b4; from 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 before 01829af7656b56d83682b3491265d583d502e502; from 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 before 2a0cf438320cdb783e0378570744c0ef0d83e934; from 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 before a6e94557cd05adc82fae0400f6e17745563e5412; from 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 before 8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8; 2.6.36 (not affected: before 2.6.36; from 5.4.301 up to 5.4.*; from 5.10.246 up to 5.10.*; from 6.1.158 up to 6.1.*; from 6.6.114 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/7bf46ff83a0ef11836e38ebd72cdc5107209342d>
- <https://git.kernel.org/stable/c/b2bac84fde28fb6a88817b8b761abda17a1d300b>
- <https://git.kernel.org/stable/c/e651294218d2684302ee5ed95ccf381646f3e5b4>
- <https://git.kernel.org/stable/c/01829af7656b56d83682b3491265d583d502e502>
- <https://git.kernel.org/stable/c/2a0cf438320cdb783e0378570744c0ef0d83e934>
- <https://git.kernel.org/stable/c/a6e94557cd05adc82fae0400f6e17745563e5412>
- <https://git.kernel.org/stable/c/8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8>

## Sources

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

---

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