VDB

CVE-2026-31716

CVE-2026-31716 PUBLISHED

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.

PackageEcosystemFixed in
linux-gcp-6.18Chainguard6.18.31-r0
python3-perf6.18Amazon Linux1:6.18.25-55.108.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.88-119.157.amzn2023
linux-aws-6.18Chainguard6.18.31-r0
kernel6.12-toolsAmazon Linux1:6.12.88-119.157.amzn2023
kernel6.18-tools-develAmazon Linux1:6.18.25-55.108.amzn2023
kernel-livepatch-6.1.175-219.357Amazon Linux1:1.0-0.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.88-119.157.amzn2023
kernel6.12-develAmazon Linux1:6.12.88-119.157.amzn2023
linux_kernellinux7.0.2, 6.18.25, 6.12.84, 6.6.136
LinuxLinux8e64d33198b5a0fb14a452708bad844f94f03b2c, 5.15, 0ca0485e4b2e837ebb6cbd4f2451aba665a03e4b

Risk scores

EPSS Score
0.13%
2.5th percentile

Affected products

VendorProductVersions
LinuxLinuxb46acd6a6a627d876898e1c84d3f84902264b445, b46acd6a6a627d876898e1c84d3f84902264b445, b46acd6a6a627d876898e1c84d3f84902264b445
LinuxLinux5.15, 0, 6.6.136
LinuxLinux6.18.25, 0, 6.6.136
linuxlinux_kernel5.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

References

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