Skip to main content
← All vulnerabilities
CVE-2025-40198

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.301, 5.10.246, 6.1.158, 6.6.114, 6.12.54, and 1 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Linux Linux

    From 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 · fixed in 7bf46ff83a0ef11836e38ebd72cdc5107209342d; From 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 · fixed in b2bac84fde28fb6a88817b8b761abda17a1d300b; From 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 · fixed in e651294218d2684302ee5ed95ccf381646f3e5b4; From 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 · fixed in 01829af7656b56d83682b3491265d583d502e502; From 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 · fixed in 2a0cf438320cdb783e0378570744c0ef0d83e934; From 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 · fixed in a6e94557cd05adc82fae0400f6e17745563e5412; From 8b67f04ab9de5d8f3a71aef72bf02c995a506db5 · fixed in 8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8

  • Linux Linux

    2.6.36

  • KernelLinux

    From 2.6.36 · fixed in 5.4.301; From 5.5.0 · fixed in 5.10.246; From 5.11.0 · fixed in 6.1.158; From 6.2.0 · fixed in 6.6.114; From 6.7.0 · fixed in 6.12.54; From 6.13.0 · fixed in 6.17.4

References 7

git.kernel.org