VDB

CVE-2025-40198

CVE-2025-40198 PUBLISHED CVSS 7.8 HIGH

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

Reported by linux · Published November 12, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-libbpf-develAmazon Linux1:6.12.55-74.119.amzn2023
kernel-develAmazon Linux1:6.1.158-178.288.amzn2023
kernel-livepatch-6.1.158-178.288Amazon Linux1:1.0-0.amzn2023
bpftoolAmazon Linux1:6.1.158-178.288.amzn2023

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux8b67f04ab9de5d8f3a71aef72bf02c995a506db5, 8b67f04ab9de5d8f3a71aef72bf02c995a506db5, 8b67f04ab9de5d8f3a71aef72bf02c995a506db5
LinuxLinux2.6.36, 0, 5.4.301
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel-devel0
amazon:2023kernel-livepatch-6.1.158-178.2880
amazon:2023bpftool0
linuxlinux_kernel2.6.36, 2.6.36, 2.6.36
amazon:2023bpftool6.120
amazon:2023kernel-headers0
amazon:2023kernel6.12-tools-devel0
amazon:2023python3-perf6.120
amazon:2023kernel-tools0
amazon:2023kernel-libbpf0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-tools0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-modules-extra0

…and 12 more

Timeline

  • Nov 10, 2025 CVE Published
  • Nov 12, 2025 Coalition ESS Score (4 in total, the first dated here)
  • Nov 13, 2025 EPSS Score (30 in total, the first dated here)
  • Dec 15, 2025 Security Advisory (118 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (102 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-40198
vulnetix vdb fixes CVE-2025-40198

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40198/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›