# CVE-2026-31716: fs/ntfs3: validate rec-\>used in journal-replay file record check

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-05-01T13:56:11.263Z
- **Modified:** 2026-11-11T21:10:00.200Z

## Who should check

- Anyone running Linux \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 8e64d33198b5a0fb14a452708bad844f94f03b2c; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 1393a467a9607e62123806de7d4c3a3e54e396a9; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< f90b8a1798b750755a9e9aee66678f0a1820bbaf; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 4b1613d7e2deda831a97e427d1ea586e50fe1be5; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 0112e6279420d4005b3d57af36fb45c01b8d0116; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< f79d0403ea20a81bc29105bba54fbcab54e8c403; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 0ca0485e4b2e837ebb6cbd4f2451aba665a03e4b
- Anyone running Linux 5.15

## Description

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

fs/ntfs3: validate rec-\>used in journal-replay file record check

check\_file\_record() validates rec-\>total against the record size but
never validates rec-\>used.  The do\_action() journal-replay handlers read
rec-\>used from disk and use it to compute memmove lengths:

  DeleteAttribute:    memmove(attr, ..., used - asize - roff)
  CreateAttribute:    memmove(..., attr, used - roff)
  change\_attr\_size:   memmove(..., used - PtrOffset(rec, next))

When rec-\>used is smaller than the offset of a validated attribute, or
larger than the record size, these subtractions can underflow allowing
us to copy huge amounts of memory in to a 4kb buffer, generally
considered a bad idea overall.

This requires a corrupted filesystem, which isn't a threat model the
kernel really needs to worry about, but checking for such an obvious
out-of-bounds value is good to keep things robust, especially on journal
replay

Fix this up by bounding rec-\>used correctly.

This is much like commit b2bc7c44ed17 ("fs/ntfs3: Fix slab-out-of-bounds
read in DeleteIndexEntryRoot") which checked different values in this
same switch statement.

## Affected and fixed versions

- Linux: \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 8e64d33198b5a0fb14a452708bad844f94f03b2c; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 1393a467a9607e62123806de7d4c3a3e54e396a9; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< f90b8a1798b750755a9e9aee66678f0a1820bbaf; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 4b1613d7e2deda831a97e427d1ea586e50fe1be5; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 0112e6279420d4005b3d57af36fb45c01b8d0116; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< f79d0403ea20a81bc29105bba54fbcab54e8c403; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 0ca0485e4b2e837ebb6cbd4f2451aba665a03e4b (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 0ca0485e4b2e837ebb6cbd4f2451aba665a03e4b or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-31716.md
Affected: Linux >= b46acd6a6a627d876898e1c84d3f84902264b445, < 8e64d33198b5a0fb14a452708bad844f94f03b2c; >= b46acd6a6a627d876898e1c84d3f84902264b445, < 1393a467a9607e62123806de7d4c3a3e54e396a9; >= b46acd6a6a627d876898e1c84d3f84902264b445, < f90b8a1798b750755a9e9aee66678f0a1820bbaf; >= b46acd6a6a627d876898e1c…
Fixed in: Linux 8e64d33198b5a0fb14a452708bad844f94f03b2c, Linux 1393a467a9607e62123806de7d4c3a3e54e396a9, Linux 4b1613d7e2deda831a97e427d1ea586e50fe1be5, Linux 0112e6279420d4005b3d57af36fb45c01b8d0116, Linux 0ca0485e4b2e837ebb6cbd4f2451aba665a03e4b

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-2026-31716 being exploited?

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

### How serious is CVE-2026-31716?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-31716?

Linux \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 8e64d33198b5a0fb14a452708bad844f94f03b2c; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 1393a467a9607e62123806de7d4c3a3e54e396a9; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< f90b8a1798b750755a9e9aee66678f0a1820bbaf; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 4b1613d7e2deda831a97e427d1ea586e50fe1be5; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 0112e6279420d4005b3d57af36fb45c01b8d0116; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< f79d0403ea20a81bc29105bba54fbcab54e8c403; \>= b46acd6a6a627d876898e1c84d3f84902264b445, \< 0ca0485e4b2e837ebb6cbd4f2451aba665a03e4b; Linux 5.15.

### Is there a fix for CVE-2026-31716?

Yes. Fixed in Linux 8e64d33198b5a0fb14a452708bad844f94f03b2c, Linux 1393a467a9607e62123806de7d4c3a3e54e396a9, Linux 4b1613d7e2deda831a97e427d1ea586e50fe1be5, Linux 0112e6279420d4005b3d57af36fb45c01b8d0116, Linux 0ca0485e4b2e837ebb6cbd4f2451aba665a03e4b. Upgrade Linux to 0ca0485e4b2e837ebb6cbd4f2451aba665a03e4b or later.

### How do I check if I'm affected by CVE-2026-31716?

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

- patch: <https://git.kernel.org/stable/c/f90b8a1798b750755a9e9aee66678f0a1820bbaf>
- patch: <https://git.kernel.org/stable/c/4b1613d7e2deda831a97e427d1ea586e50fe1be5>
- patch: <https://git.kernel.org/stable/c/0112e6279420d4005b3d57af36fb45c01b8d0116>
- patch: <https://git.kernel.org/stable/c/f79d0403ea20a81bc29105bba54fbcab54e8c403>
- patch: <https://git.kernel.org/stable/c/0ca0485e4b2e837ebb6cbd4f2451aba665a03e4b>
- other: <https://git.kernel.org/stable/c/8e64d33198b5a0fb14a452708bad844f94f03b2c>
- other: <https://git.kernel.org/stable/c/1393a467a9607e62123806de7d4c3a3e54e396a9>

## 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-2026-31716>

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