CVE-2026-31716
fs/ntfs3: validate rec->used in journal-replay file record check
Reported by linux · Published May 1, 2026
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.
EPSS 0.13% · 2.5th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-gcp-6.18 | Chainguard | 6.18.31-r0 |
| python3-perf6.18 | Amazon Linux | 1:6.18.25-55.108.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| linux-aws-6.18 | Chainguard | 6.18.31-r0 |
| kernel6.12-tools | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.25-55.108.amzn2023 |
| kernel-livepatch-6.1.175-219.357 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.88-119.157.amzn2023 |
| linux_kernel | linux | 7.0.2, 6.18.25, 6.12.84, 6.6.136 |
| Linux | Linux | 8e64d33198b5a0fb14a452708bad844f94f03b2c, 5.15, 0ca0485e4b2e837ebb6cbd4f2451aba665a03e4b |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b46acd6a6a627d876898e1c84d3f84902264b445, b46acd6a6a627d876898e1c84d3f84902264b445, b46acd6a6a627d876898e1c84d3f84902264b445 |
| Linux | Linux | 5.15, 0, 6.6.136 |
| Linux | Linux | 6.18.25, 0, 6.6.136 |
| linux | linux_kernel | 5.15, 5.15, 5.15 |
Timeline
- May 1, 2026 CVE Published
- May 18, 2026 EPSS Score (25 in total, the first dated here)
- Jun 2, 2026 Security Advisory (120 in total, the first dated here)
- Jul 28, 2026 Coalition ESS Score
- Aug 5, 2026 CVE Updated
- Aug 11, 2026 Distribution Patch (114 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-31716
vulnetix vdb fixes CVE-2026-31716
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-2026-31716/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart