CVE-2022-49174
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability (CVE-2022-49174) was discovered in the ext4 filesystem's block bitmap handling with flexbg feature enabled. The issue occurs in ext4mbmarkbb() function where it only reads the bufferhead 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 bufferhead (Kernel Git).

Technical details

The vulnerability exists in the ext4mbmarkbb() function when handling block bitmaps across group boundaries. When the flexbg feature (enabled by default) is used, extents for any inode might span across blocks from two different block groups. The function only reads the bufferhead once and fails to update it when crossing group boundaries, leading to an out-of-bounds memory access in the loop that checks mbtest_bit(). This results in a data abort on Power platforms (Kernel Git).

Impact

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).

Mitigation and workarounds

The vulnerability has been fixed by adding functionality to check block group boundaries in ext4mbmarkbb() and updating the bufferhead(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).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management