ext4: xattr: fix null pointer deref in ext4_raw_inode()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c8e008b60492cf6fd31ef127aea6d02fd3d314cd · < ce5f54c065a4a7cbb92787f4f140917112350142| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ext4: xattr: fix null pointer deref in ext4_raw_inode()
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.
From the CVE record · Linux
The Linux kernel’s ext4 extended-attribute code can dereference a null pointer when ext4_get_inode_loc() fails and subsequent code does not check the error. The input does not specify whether an attacker can trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel with ext4 should check their kernel versions against the vendor advisory; affected versions are not specified.