Re: [PATCH] ext4: xattr: fix null pointer deref in ext4_raw_inode()

From: Theodore Ts'o
Date: Mon Nov 17 2025 - 14:15:57 EST



On Wed, 22 Oct 2025 12:32:53 +0300, Karina Yankevich wrote:
> If ext4_get_inode_loc() fails (e.g. if it returns -EFSCORRUPTED),
> iloc.bh will remain set to NULL. Since ext4_xattr_inode_dec_ref_all()
> lacks error checking, this will lead to a null pointer dereference
> in ext4_raw_inode(), called right after ext4_get_inode_loc().
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> [...]

Applied, thanks!

[1/1] ext4: xattr: fix null pointer deref in ext4_raw_inode()
commit: b97cb7d6a051aa6ebd57906df0e26e9e36c26d14

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>