Linux
fs/ntfs3: validate Dirty Page Table capacity in log_replay copy_lcns
In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: validate Dirty Page Table capacity in log_replay copy_lcns In the analysis pass of $LogFile journal replay, log_replay() copies LCNs from each action log record into an existing Dirty Page Table (DPT) entry without bounding the destination index. A crafted NTFS image with DPT entry lcns_follow=1 and an action log record with lcns_follow=2 produces a kernel slab out-of-bounds write at mount time: BUG: KASAN: slab-out-of-bounds in log_replay+0x654c/0xdb60 Write of size 8 at addr ffff8880095e1040 by task mount Two attacker-controlled fields can drive j+i past the allocated page_lcns[] array: 1. dp->lcns_follow (capacity) can be smaller than lrh->lcns_follow. 2. lrh->target_vcn may be smaller than dp->vcn, making the u64 subtraction wrap to a huge size_t. Validate target VCN delta and per-record LCN count against the DPT entry capacity, bail via the existing out: cleanup label with -EINVAL. This mirrors the bounds-check pattern added in commit b2bc7c44ed17 ("fs/ntfs3: Fix slab-out-of-bounds read in DeleteIndexEntryRoot") and commit 0ca0485e4b2e ("fs/ntfs3: validate rec->used in journal-replay file record check").
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 964c3fae1dfc49dde5468eace940f199cda234e9
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 3aa96956ca2200674e2a8f9c23ec6ecd45e5010f
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 946046841013ebac8492ef49651c53638d7a9a6a
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < c6f9e804f73ef809529865fbc7256dd189ff8c33
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < cf28fc1658463d768657cf1c27a83980d4ba7ef2
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < f433acc85b86f327d03ba8b03a33c105c51053de
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 57382ec6ac63b63dce2789e835fded28b698ae79
Fixed in 964c3fae1dfc49dde5468eace940f199cda234e9, 3aa96956ca2200674e2a8f9c23ec6ecd45e5010f, 946046841013ebac8492ef49651c53638d7a9a6a, c6f9e804f73ef809529865fbc7256dd189ff8c33, cf28fc1658463d768657cf1c27a83980d4ba7ef2, f433acc85b86f327d03ba8b03a33c105c51053de, 57382ec6ac63b63dce2789e835fded28b698ae79
- 5.15
Fixed in 0, 5.15.212, 6.1.178, 6.6.145, 6.12.96, 6.18.39, 7.1.4, 7.2
Mitigation
Upgrade Linux to 964c3fae1dfc49dde5468eace940f199cda234e9 or 3aa96956ca2200674e2a8f9c23ec6ecd45e5010f or 946046841013ebac8492ef49651c53638d7a9a6a or c6f9e804f73ef809529865fbc7256dd189ff8c33 or cf28fc1658463d768657cf1c27a83980d4ba7ef2 or f433acc85b86f327d03ba8b03a33c105c51053de or 57382ec6ac63b63dce2789e835fded28b698ae79 or later.
Upgrade Linux to 0 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.96 or 6.18.39 or 7.1.4 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.