ntfs3: add buffer boundary checks to run_unpack()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 41aadf5cb482793a24e05aa136224e179a778586, Kernel 425de2aba0d061b3e715d51a3b1992c112ed5b99, Kernel b62567bca47408e6739dee75f02a2113548af875 and 4 more.
In the Linux kernel, the following vulnerability has been resolved: ntfs3: add buffer boundary checks to run_unpack() run_unpack() checks `run_buf < run_last` at the top of the while loop but then reads size_size and offset_size bytes via run_unpack_s64() without verifying they fit within the remaining buffer. A crafted NTFS image with truncated run data in an MFT attribute triggers an OOB heap read of up to 15 bytes when the filesystem is mounted. Add boundary checks before each run_unpack_s64() call to ensure the declared field size does not exceed the remaining buffer. Found by fuzzing with a source-patched harness (LibAFL + QEMU).
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.15, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <41aadf5cb482793a24e05aa136224e179a778586, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <425de2aba0d061b3e715d51a3b1992c112ed5b99, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <b62567bca47408e6739dee75f02a2113548af875, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <bbad75336870b51b81979b97613746237fcb02fe, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <bf7ac4a1d3bfc6e56e54635c3d331a68170d37c9, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <d3012690a7065d9ca86521a525ad11e8af491d45, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <e64f7dfcaff79e7dfff9121a382dd77f9b462f62 | 41aadf5cb482793a24e05aa136224e179a778586, 425de2aba0d061b3e715d51a3b1992c112ed5b99, b62567bca47408e6739dee75f02a2113548af875, bbad75336870b51b81979b97613746237fcb02fe, bf7ac4a1d3bfc6e56e54635c3d331a68170d37c9, d3012690a7065d9ca86521a525ad11e8af491d45, e64f7dfcaff79e7dfff9121a382dd77f9b462f62 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket