
Cloud Vulnerability DB
A community-led vulnerabilities database
In the Linux kernel, a vulnerability (CVE-2024-50216) was discovered in the XFS filesystem's filestream allocation mechanism. The issue specifically affects the xfs_filestream_pick_ag function, where a bug exists in the handling of last resort allocation group (AG) selection. The vulnerability was discovered and reported through the syzkaller automated testing system (Kernel Git).
The vulnerability occurs when the main loop in xfs_filestream_pick_ag fails to find a suitable allocation group (AG). The function attempts to select an online AG as a last resort, but incorrectly uses args->pag as a loop iterator while the subsequent code expects pag to be properly set. This could potentially lead to an uninitialized pag value being used. The issue stems from a regression introduced by commit f8f1ed1ab3baba which implemented the return of referenced perag from filestreams allocator (Kernel Git).
The vulnerability could potentially lead to system instability or crashes when the XFS filesystem attempts to allocate space using the filestream allocation mechanism. This particularly affects systems actively using XFS filesystem with filestream allocation enabled (Kernel Git).
The issue has been fixed by modifying the code to reuse the max_pag case for the last resort allocation and adding a check for the impossible case of no AG being available. The fix ensures that uninitialized pag values cannot escape even in theory. The patch has been tested and verified by syzkaller (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."