CVE-2025-40313
ntfs3: pretend $Extend records as regular files
Check your servers for CVE-2025-40313
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40313 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
ntfs3: pretend $Extend records as regular files
Since commit af153bb63a33 ("vfs: catch invalid modes in may_open()") requires any inode be one of S_IFDIR/S_IFLNK/S_IFREG/S_IFCHR/S_IFBLK/ S_IFIFO/S_IFSOCK type, use S_IFREG for $Extend records.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, before 63eb6730ce0604d3eacf036c2f68ea70b068317c affected from 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, before 78d46f5276ed3589aaaa435580068c5b62efc921 affected from 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, before 17249b2a65274f73ed68bcd1604e08a60fd8a278 affected from 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, before 37f65e68ba9852dc51c78dbb54a9881c3f0fe4f7 affected from 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, before 57534db1bbc4ca772393bb7d92e69d5e7b9051cf affected from 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, before 4e8011ffec79717e5fdac43a7e79faf811a384b7
Other versions: unaffected
|
| Linux |
affected 5.15 unaffected before 5.15 unaffected from 5.15.197 up to and including 5.15.* unaffected from 6.1.159 up to and including 6.1.* unaffected from 6.6.117 up to and including 6.6.* unaffected from 6.12.58 up to and including 6.12.* unaffected from 6.17.8 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40313 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40313
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40313
trivy image --scanners vuln IMAGE | grep CVE-2025-40313
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/63eb6730ce0604d3eacf036c2f68ea70b068317c git.kernel.org
- https://git.kernel.org/stable/c/78d46f5276ed3589aaaa435580068c5b62efc921 git.kernel.org
- https://git.kernel.org/stable/c/17249b2a65274f73ed68bcd1604e08a60fd8a278 git.kernel.org
- https://git.kernel.org/stable/c/37f65e68ba9852dc51c78dbb54a9881c3f0fe4f7 git.kernel.org
- https://git.kernel.org/stable/c/57534db1bbc4ca772393bb7d92e69d5e7b9051cf git.kernel.org
- https://git.kernel.org/stable/c/4e8011ffec79717e5fdac43a7e79faf811a384b7 git.kernel.org
Source: the record CVE-2025-40313 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse