In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: Fix OOB read in indxinsertinto_buffer
Syzbot reported a OOB read bug:
BUG: KASAN: slab-out-of-bounds in indxinsertinto_buffer+0xaa3/0x13b0 fs/ntfs3/index.c:1755 Read of size 17168 at addr ffff8880255e06c0 by task syz-executor308/3630
Call Trace: <TASK> memmove+0x25/0x60 mm/kasan/shadow.c:54 indxinsertintobuffer+0xaa3/0x13b0 fs/ntfs3/index.c:1755 indxinsertentry+0x446/0x6b0 fs/ntfs3/index.c:1863 ntfscreateinode+0x1d3f/0x35c0 fs/ntfs3/inode.c:1548 ntfscreate+0x3e/0x60 fs/ntfs3/namei.c:100 lookup_open fs/namei.c:3413 [inline]
If the member struct INDEXBUFFER *index of struct indxnode is incorrect, that is, the value of __le32 used is greater than the value of __le32 total in struct INDEXHDR. Therefore, OOB read occurs when memmove is called in indxinsertintobuffer(). Fix this by adding a check in hdrfinde().
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54063.json"
}