aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/ntfs3/inode.c
diff options
context:
space:
mode:
authorAbdun Nihaal <abdun.nihaal@gmail.com>2022-10-30 12:32:51 +0530
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2023-03-27 16:59:11 +0400
commit8dae4f6341e335a09575be60b4fdf697c732a470 (patch)
treeab6c10d01d8fc58832a82f0b9f2c29de9ac1e323 /fs/ntfs3/inode.c
parentfs/ntfs3: Enhance the attribute size check (diff)
downloadwireguard-linux-8dae4f6341e335a09575be60b4fdf697c732a470.tar.xz
wireguard-linux-8dae4f6341e335a09575be60b4fdf697c732a470.zip
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. Link: https://syzkaller.appspot.com/bug?extid=f45957555ed4a808cc7a Reported-and-tested-by: syzbot+f45957555ed4a808cc7a@syzkaller.appspotmail.com Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/inode.c')
0 files changed, 0 insertions, 0 deletions