CVE-2024-50216 xfs: fix finding a last resort AG in xfs_filestream_pick_ag
A null pointer dereference in the Linux kernel XFS file system can cause a system crash when selecting an allocation group.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-50216?
CVE-2024-50216 is a medium-severity vulnerability in Linux kernel, published on 9 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-50216?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50216?
Apply the vendor's patch.
Is CVE-2024-50216 being exploited?
There is no known exploitation of CVE-2024-50216 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-50216, DEBIAN-CVE-2024-50216, GHSA-hjq2-6cr9-pgcj, UBUNTU-CVE-2024-50216.