CVE-2024-50216

xfs: fix finding a last resort AG in xfs_filestream_pick_ag

State
Published
Severity
Not scored
Published
Nov 9, 2024
Updated
May 11, 2026
Reserved
Oct 21, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6 to before 77ddc732416b017180893cbb2356e9f0a414c575Affected
  • f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6 to before a023408925acd64db5c8980373fcb3e28ec6fd29Affected
  • f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6 to before dc60992ce76fbc2f71c2674f435ff6bde2108028Affected
LinuxLinux
  • 6.3Affected
  • before 6.3Not affected
  • 6.6.60 through 6.6.*Not affected
  • 6.11.7 through 6.11.*Not affected
  • 6.12 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.