ext4: replace BUG_ON with proper error handling in ext4_read_inline_folio
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 46c7f254543dedcf134ad05091ed2b935a9a597d · < 823849a26af089ffc5dfdd2ae4b9d446b46a0cda| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ext4: replace BUG_ON with proper error handling in ext4_read_inline_folio
Replace BUG_ON() with proper error handling when inline data size exceeds PAGE_SIZE. This prevents kernel panic and allows the system to continue running while properly reporting the filesystem corruption.
The error is logged via ext4_error_inode(), the buffer head is released to prevent memory leak, and -EFSCORRUPTED is returned to indicate filesystem corruption.
From the CVE record · Linux
The Linux kernel's ext4_read_inline_folio can panic when inline data exceeds PAGE_SIZE because it uses BUG_ON() instead of returning an error. The input does not specify whether an attacker can trigger this condition or whether access or user interaction is required.
Engineers running Linux systems that use ext4 should check their kernel versions; affected versions are not specified.