In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: Fix slab-out-of-bounds in r_page
When PAGESIZE is 64K, if readlogpage is called by logreadrst for the first time, the size of *buffer would be equal to DefaultLogPageSize(4K).But for *buffer operations like memcpy, if the memory area size(n) which being assigned to buffer is larger than 4K (log->pagesize(64K) or bytes(64K-pageoff)), it will cause an out of boundary error. Call trace: [...] kasanreport+0x44/0x130 checkmemoryregion+0xf8/0x1a0 memcpy+0xc8/0x100 ntfsreadrunnb+0x20c/0x460 readlogpage+0xd0/0x1f4 logreadrst+0x110/0x75c logreplay+0x1e8/0x4aa0 ntfsloadlogandreplay+0x290/0x2d0 ntfsfillsuper+0x508/0xec0 gettree_bdev+0x1fc/0x34c [...]
Fix this by setting variable rpage to NULL in logread_rst.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50869.json"
}