In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: Fix NULL dereference in niwriteinode Syzbot reports a NULL dereference in niwriteinode. When creating a new inode, if allocation fails in miinit function (called in miformatnew function), mi->mrec is set to NULL. In the error path of this inode creation, mi->mrec is later dereferenced in niwrite_inode. Add a NULL check to prevent NULL dereference.