Linux
fs/ntfs3: validate dirty page table on log replay
In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: validate dirty page table on log replay Each DIR_PAGE_ENTRY ends in a page_lcns[] array whose length is the on-disk lcns_follow field. check_rstbl() validates the table bookkeeping but never checks that this array fits in the entry, so a crafted lcns_follow lets the v0->v1 conversion memmove and later replay passes run off the entry. Add check_dp_table() to reject, right after check_rstbl(), any entry larger than its size claims via struct_size() (the same expression used to allocate these entries, so the check is overflow-safe by construction). All consumers can then trust lcns_follow as the real capacity. This covers every page_lcns[] access whose index is bounded by the entry itself (the conversion memmove, the HotFix store via find_dp(), and the self-bounded scan loops). Accesses whose index comes from the log record need a separate bound and are handled in a follow-up patch.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 0e07ea2fc45a7b4757ef7bf1f692cc0180a08323
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 1e90b1703ee1a04cd3e9e399353fc536f5f3ba10
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < d23155634a4bc1183e761d5eb2c043b2e693cc98
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 1200c2779c43b62656ccbb67df9468a7a9af2484
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 2d94ffc9d7b5bb3517b129fe63b52d84bcd4ae56
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 0908da07c23be4f94b99dfd9a94765525f0fe4bd
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 006cb7713dec10368e699abc4367e5faa334c9a5
Fixed in 0e07ea2fc45a7b4757ef7bf1f692cc0180a08323, 1e90b1703ee1a04cd3e9e399353fc536f5f3ba10, d23155634a4bc1183e761d5eb2c043b2e693cc98, 1200c2779c43b62656ccbb67df9468a7a9af2484, 2d94ffc9d7b5bb3517b129fe63b52d84bcd4ae56, 0908da07c23be4f94b99dfd9a94765525f0fe4bd, 006cb7713dec10368e699abc4367e5faa334c9a5
- 5.15
Fixed in 0, 5.15.221, 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 0e07ea2fc45a7b4757ef7bf1f692cc0180a08323 or 1e90b1703ee1a04cd3e9e399353fc536f5f3ba10 or d23155634a4bc1183e761d5eb2c043b2e693cc98 or 1200c2779c43b62656ccbb67df9468a7a9af2484 or 2d94ffc9d7b5bb3517b129fe63b52d84bcd4ae56 or 0908da07c23be4f94b99dfd9a94765525f0fe4bd or 006cb7713dec10368e699abc4367e5faa334c9a5 or later.
Upgrade Linux to 0 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.109 or 6.18.50 or 7.2.4 or 7.3 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.