Linux
fs/ntfs3: Fix slab-out-of-bounds read in DeleteIndexEntryRoot
In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: Fix slab-out-of-bounds read in DeleteIndexEntryRoot In the 'DeleteIndexEntryRoot' case of the 'do_action' function, the entry size ('esize') is retrieved from the log record without adequate bounds checking. Specifically, the code calculates the end of the entry ('e2') using: e2 = Add2Ptr(e1, esize); It then calculates the size for memmove using 'PtrOffset(e2, ...)', which subtracts the end pointer from the buffer limit. If 'esize' is maliciously large, 'e2' exceeds the used buffer size. This results in a negative offset which, when cast to size_t for memmove, interprets as a massive unsigned integer, leading to a heap buffer overflow. This commit adds a check to ensure that the entry size ('esize') strictly fits within the remaining used space of the index header before performing memory operations.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 36c03f7f177b34d51f1cf1d2304b1074607bf4b0
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < b271c9cb85927210b1b799e55ee7f702d12b4336
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < a584b9d1059b29e97e17c919274e9adfb846f2a0
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < c065541b71b79874c83d418a9acd18ad5826339b
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < 78942172d5bff4d4afed8674abc09cc560ce44a0
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < f3b437a4c3e022a1449658ae9f3dd34859894513
- >= b46acd6a6a627d876898e1c84d3f84902264b445, < b2bc7c44ed1779fc9eaab9a186db0f0d01439622
Fixed in 36c03f7f177b34d51f1cf1d2304b1074607bf4b0, b271c9cb85927210b1b799e55ee7f702d12b4336, a584b9d1059b29e97e17c919274e9adfb846f2a0, c065541b71b79874c83d418a9acd18ad5826339b, 78942172d5bff4d4afed8674abc09cc560ce44a0, f3b437a4c3e022a1449658ae9f3dd34859894513, b2bc7c44ed1779fc9eaab9a186db0f0d01439622
- 5.15
Fixed in 0, 5.15.202, 6.1.165, 6.6.128, 6.12.75, 6.18.14, 6.19.4, 7.0
Mitigation
Upgrade Linux to 36c03f7f177b34d51f1cf1d2304b1074607bf4b0 or b271c9cb85927210b1b799e55ee7f702d12b4336 or a584b9d1059b29e97e17c919274e9adfb846f2a0 or c065541b71b79874c83d418a9acd18ad5826339b or 78942172d5bff4d4afed8674abc09cc560ce44a0 or f3b437a4c3e022a1449658ae9f3dd34859894513 or b2bc7c44ed1779fc9eaab9a186db0f0d01439622 or later.
Upgrade Linux to 0 or 5.15.202 or 6.1.165 or 6.6.128 or 6.12.75 or 6.18.14 or 6.19.4 or 7.0 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.