
Cloud Vulnerability DB
A community-led vulnerabilities database
In the Linux kernel, a vulnerability (CVE-2022-49174) was discovered in the ext4 filesystem's block bitmap handling with flex_bg feature enabled. The issue occurs in ext4_mb_mark_bb() function where it only reads the buffer_head of block bitmap once for the starting block group but fails to read it again when the extent length boundary overflows to another block group, resulting in memory access beyond the block group bitmap buffer_head (Kernel Git).
The vulnerability exists in the ext4_mb_mark_bb() function when handling block bitmaps across group boundaries. When the flex_bg feature (enabled by default) is used, extents for any inode might span across blocks from two different block groups. The function only reads the buffer_head once and fails to update it when crossing group boundaries, leading to an out-of-bounds memory access in the loop that checks mb_test_bit(). This results in a data abort on Power platforms (Kernel Git).
The vulnerability can lead to data access abort and system crashes when mounting or performing operations on ext4 filesystems with the flex_bg feature enabled. This was demonstrated through a reproducible crash on Power architecture platforms (Kernel Git).
The issue can be triggered during normal filesystem operations when extents span across block group boundaries. It was easily reproducible on Power platforms, particularly during filesystem mounting operations (Kernel Git).
The vulnerability has been fixed by adding functionality to check block group boundaries in ext4_mb_mark_bb() and updating the buffer_head(bitmap_bh) for every different block group. The fix involves modifying the function to properly handle cases where blocks span across group boundaries (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."