# CVE-2025-40313: ntfs3: pretend $Extend records as regular files

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-08T00:46:39.444Z
- **Modified:** 2026-10-14T22:10:00.210Z

## Who should check

- Anyone running Linux \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 63eb6730ce0604d3eacf036c2f68ea70b068317c; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 78d46f5276ed3589aaaa435580068c5b62efc921; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 17249b2a65274f73ed68bcd1604e08a60fd8a278; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 37f65e68ba9852dc51c78dbb54a9881c3f0fe4f7; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 57534db1bbc4ca772393bb7d92e69d5e7b9051cf; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 4e8011ffec79717e5fdac43a7e79faf811a384b7
- Anyone running Linux 5.15

## 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.

## Affected and fixed versions

- Linux: \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 63eb6730ce0604d3eacf036c2f68ea70b068317c; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 78d46f5276ed3589aaaa435580068c5b62efc921; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 17249b2a65274f73ed68bcd1604e08a60fd8a278; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 37f65e68ba9852dc51c78dbb54a9881c3f0fe4f7; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 57534db1bbc4ca772393bb7d92e69d5e7b9051cf; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 4e8011ffec79717e5fdac43a7e79faf811a384b7 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 4e8011ffec79717e5fdac43a7e79faf811a384b7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40313. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40313.md
Affected: Linux >= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, < 63eb6730ce0604d3eacf036c2f68ea70b068317c; >= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, < 78d46f5276ed3589aaaa435580068c5b62efc921; >= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, < 17249b2a65274f73ed68bcd1604e08a60fd8a278; >= 4534a70b7056fd4b9a1c6db…
Fixed in: Linux 63eb6730ce0604d3eacf036c2f68ea70b068317c, Linux 78d46f5276ed3589aaaa435580068c5b62efc921, Linux 17249b2a65274f73ed68bcd1604e08a60fd8a278, Linux 37f65e68ba9852dc51c78dbb54a9881c3f0fe4f7, Linux 57534db1bbc4ca772393bb7d92e69d5e7b9051cf, Linux 4e8011ffec79717e5fdac43a7e79faf811a384b7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40313 being exploited?

There is no confirmed exploitation: CVE-2025-40313 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40313?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40313?

Linux \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 63eb6730ce0604d3eacf036c2f68ea70b068317c; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 78d46f5276ed3589aaaa435580068c5b62efc921; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 17249b2a65274f73ed68bcd1604e08a60fd8a278; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 37f65e68ba9852dc51c78dbb54a9881c3f0fe4f7; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 57534db1bbc4ca772393bb7d92e69d5e7b9051cf; \>= 4534a70b7056fd4b9a1c6db5a4ce3c98546b291e, \< 4e8011ffec79717e5fdac43a7e79faf811a384b7; Linux 5.15.

### Is there a fix for CVE-2025-40313?

Yes. Fixed in Linux 63eb6730ce0604d3eacf036c2f68ea70b068317c, Linux 78d46f5276ed3589aaaa435580068c5b62efc921, Linux 17249b2a65274f73ed68bcd1604e08a60fd8a278, Linux 37f65e68ba9852dc51c78dbb54a9881c3f0fe4f7, Linux 57534db1bbc4ca772393bb7d92e69d5e7b9051cf, Linux 4e8011ffec79717e5fdac43a7e79faf811a384b7. Upgrade Linux to 4e8011ffec79717e5fdac43a7e79faf811a384b7 or later.

### How do I check if I'm affected by CVE-2025-40313?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/63eb6730ce0604d3eacf036c2f68ea70b068317c>
- other: <https://git.kernel.org/stable/c/78d46f5276ed3589aaaa435580068c5b62efc921>
- other: <https://git.kernel.org/stable/c/17249b2a65274f73ed68bcd1604e08a60fd8a278>
- other: <https://git.kernel.org/stable/c/37f65e68ba9852dc51c78dbb54a9881c3f0fe4f7>
- other: <https://git.kernel.org/stable/c/57534db1bbc4ca772393bb7d92e69d5e7b9051cf>
- other: <https://git.kernel.org/stable/c/4e8011ffec79717e5fdac43a7e79faf811a384b7>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40313>

HTML: <https://flawdb.com/CVE-2025-40313> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40313>
