Wiz Agents & Workflows are here

CVE-2024-50216
Linux Kernel vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Mitigation and workarounds

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

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23395CRITICAL9.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel-matched
NoYesMar 25, 2026
CVE-2026-23399MEDIUM6.5
  • Linux KernelLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesMar 28, 2026
CVE-2026-23398MEDIUM6.5
  • Linux KernelLinux Kernel
  • kernel-64k-debug
NoYesMar 26, 2026
CVE-2026-23397MEDIUM4.4
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules-core
NoYesMar 26, 2026
CVE-2026-31788N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-fde
NoYesMar 25, 2026

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