CVE-2024-50216

xfs: fix finding a last resort AG in xfs_filestream_pick_ag

MEDIUM
5.5
CVSS Score
Published: November 9, 2024 at 10:14 AM UTC
Updated: June 17, 2026 at 08:03 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.3 ≤ v < 6.11.76.3 ≤ v < 6.126.3 ≤ v < 6.6.606.7 ≤ v < 6.11.76.12 rc16.12 rc26.12 rc36.12 rc46.12 rc56.3f8f1ed1ab3babad46b25e2dbe8de43b33fe7aaa6
Vendor states this is fixed in 77ddc732416b017180893cbb2356e9f0a414c575 (fixed)
Vendor states this is fixed in a023408925acd64db5c8980373fcb3e28ec6fd29 (fixed)
Vendor states this is fixed in dc60992ce76fbc2f71c2674f435ff6bde2108028 (fixed)
Vendor states this is fixed in 6.11.7 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.3 (unaffected)
Vendor states this is fixed in 6.6.60 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/77ddc732416b017180893cbb2356e9f0a414c575
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a023408925acd64db5c8980373fcb3e28ec6fd29
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dc60992ce76fbc2f71c2674f435ff6bde2108028

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card