В ядре Linux устранена следующая уязвимость:
fs/ntfs3: исправлено разыменование NULL в ni_write_inode. Syzbot сообщает о разыменовании NULL в ni_write_inode. При создании нового индексного дескриптора, если в функции mi_init произошел сбой выделения
(вызывается в функции mi_format_new), mi->mrec имеет значение NULL.
В пути ошибки создания этого индексного дескриптора mi->mrec находится позже.
разыменован в ni_write_inode. Добавьте проверку NULL, чтобы предотвратить разыменование NULL.
Показать оригинальное описание (EN)
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.