CVE-2022-49831 btrfs: zoned: initialize device's zone info for seeding
A local attacker can cause a denial of service by mounting a seeded zoned Btrfs filesystem, triggering a NULL pointer dereference in the Linux kernel.
- 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-2022-49831?
CVE-2022-49831 is a medium-severity vulnerability in Linux kernel, published on 1 May 2025. 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:
btrfs: zoned: initialize device's zone info for seeding
When performing seeding on a zoned filesystem it is necessary to initialize each zoned device's btrfs_zoned_device_info structure, otherwise mounting the filesystem will cause a NULL pointer dereference.
This was uncovered by fstests' testcase btrfs/163.
Weakness: CWE-476
Which versions are affected by CVE-2022-49831?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-49831?
Apply the vendor's patch.
Is CVE-2022-49831 being exploited?
There is no known exploitation of CVE-2022-49831 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-49831, GHSA-4vff-8c4j-m2j6, ROOT-OS-DEBIAN-11-CVE-2022-49831, UBUNTU-CVE-2022-49831.