CVE-2022-50815 ext2: Add sanity checks for group and filesystem size
A local attacker can cause a denial of service by mounting a crafted ext2 filesystem with invalid size parameters.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-50815?
CVE-2022-50815 is a denial of service vulnerability in Linux, published on 30 Dec 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ext2: Add sanity checks for group and filesystem size
Add sanity check that filesystem size does not exceed the underlying device size and that group size is big enough so that metadata can fit into it. This avoid trying to mount some crafted filesystems with extremely large group counts.
Which versions are affected by CVE-2022-50815?
How do I fix CVE-2022-50815?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-50815 being exploited?
There is no known exploitation of CVE-2022-50815 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-50815, GHSA-8xqr-g5fm-p394, ROOT-OS-DEBIAN-11-CVE-2022-50815, ROOT-OS-UBUNTU-2204-CVE-2022-50815, UBUNTU-CVE-2022-50815.