ext4: do not BUG when INLINE_DATA_FL lacks system.data xattr
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 67cf5b09a46f72e048501b84996f2f77bc42e947 · < 81e7e2e7ba07e7c8cdce43ccad2f91adbc5a919c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ext4: do not BUG when INLINE_DATA_FL lacks system.data xattr
A syzbot fuzzed image triggered a BUG_ON in ext4_update_inline_data() when an inode had the INLINE_DATA_FL flag set but was missing the system.data extended attribute.
Since this can happen due to a maiciouly fuzzed file system, we shouldn't BUG, but rather, report it as a corrupted file system.
Add similar replacements of BUG_ON with EXT4_ERROR_INODE() ii ext4_create_inline_data() and ext4_inline_data_truncate().
From the CVE record · Linux
The Linux kernel’s ext4 code can trigger a BUG_ON when an inode has the INLINE_DATA_FL flag but lacks the system.data extended attribute. A maliciously crafted filesystem image can trigger this condition when ext4 processes it; the input does not specify authentication or user-interaction requirements.
Engineers running the Linux kernel with ext4 support should check their versions; affected versions were not provided.