What’s Vulnerable › Vulnerabilities
CVE-2024-50216: xfs: fix finding a last resort AG in xfs_filestream_pick_ag
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-11-09 · updated 2026-06-17
Description
In the Linux kernel, the following vulnerability has been resolved: xfs: fix finding a last resort AG in xfs_filestream_pick_ag When the main loop in xfs_filestream_pick_ag fails to find a suitable AG it tries to just pick the online AG. But the loop for that uses args->pag as loop iterator while the later code expects pag to be set. Fix this by reusing the max_pag case for this last resort, and also add a check for impossible case of no AG just to make sure that the uninitialized pag doesn't even escape in theory.
Affected products
- Linux kernel: from 6.3 before 6.6.60; from 6.7 before 6.11.7; 6.12-rc1, 6.12-rc2, 6.12-rc3, 6.12-rc4, 6.12-rc5 — fixed in 6.11.7, 6.6.60
How to fix
Upgrade to a fixed version: Linux kernel 6.11.7, 6.6.60. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/77ddc732416b017180893cbb2356e9f0a414c575
- https://git.kernel.org/stable/c/a023408925acd64db5c8980373fcb3e28ec6fd29
- https://git.kernel.org/stable/c/dc60992ce76fbc2f71c2674f435ff6bde2108028
Get alerted when CVE-2024-50216 or the next vulnerability affects your stack