fs/ntfs3: Fix NULL dereference in ni_write_inode
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: Fix NULL dereference in ni_write_inode
Syzbot reports a NULL dereference in ni_write_inode. When creating a new inode, if allocation fails in mi_init function (called in mi_format_new function), mi->mrec is set to NULL. In the error path of this inode creation, mi->mrec is later dereferenced in ni_write_inode.
Add a NULL check to prevent NULL dereference.
From the CVE record · Linux
The Linux kernel's NTFS3 filesystem can dereference a NULL pointer while writing a newly created inode if allocation fails during inode initialization. The input does not specify how an attacker could trigger this condition, whether authentication or user interaction is needed, or its impact beyond the NULL dereference.
Engineers running Linux kernels with the NTFS3 filesystem should check their versions; affected versions are not specified.