# CVE-2022-50205: ext2: Add more validity checks for inode counts

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-06-18T11:03:45.889Z
- Modified: 2026-06-17T05:22:58.403Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ext2: Add more validity checks for inode counts

Add checks verifying number of inodes stored in the superblock matches
the number computed from number of inodes per group. Also verify we have
at least one block worth of inodes per group. This prevents crashes on
corrupted filesystems.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0bcdc31094a12b4baf59e241feabc9787cf635fa; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 07303a9abe3a997d9864fb4315e34b5acfe8fc25; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before b3f423683818cfe15de14d5d9dff44148ff16bbf; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before d08bb199a406424a8ed0009efdf41710e6d849ee; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 96b18d3a1be0354ccce43f0ef61b5a3d7e432552; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7a48fdc88a3c35e046a6a0a38eba00f21c65b16e; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5e63c5fe9123fa76ffaeff26c211308736ec3a07; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fa78f336937240d1bc598db817d638086060e7e9; 2.6.12 (not affected: before 2.6.12; from 4.14.291 up to 4.14.*; from 4.19.256 up to 4.19.*; from 5.4.211 up to 5.4.*; from 5.10.137 up to 5.10.*; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: before 4.14.291; from 4.15 before 4.19.256; from 4.20 before 5.4.211; from 5.5 before 5.10.137; from 5.11 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/0bcdc31094a12b4baf59e241feabc9787cf635fa> (patch)
- <https://git.kernel.org/stable/c/07303a9abe3a997d9864fb4315e34b5acfe8fc25> (patch)
- <https://git.kernel.org/stable/c/b3f423683818cfe15de14d5d9dff44148ff16bbf> (patch)
- <https://git.kernel.org/stable/c/d08bb199a406424a8ed0009efdf41710e6d849ee> (patch)
- <https://git.kernel.org/stable/c/96b18d3a1be0354ccce43f0ef61b5a3d7e432552> (patch)
- <https://git.kernel.org/stable/c/7a48fdc88a3c35e046a6a0a38eba00f21c65b16e> (patch)
- <https://git.kernel.org/stable/c/5e63c5fe9123fa76ffaeff26c211308736ec3a07> (patch)
- <https://git.kernel.org/stable/c/fa78f336937240d1bc598db817d638086060e7e9> (patch)

## Sources

- CVE List: [CVE-2022-50205](https://www.cve.org/CVERecord?id=CVE-2022-50205), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50205](https://nvd.nist.gov/vuln/detail/CVE-2022-50205), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50205 · Whole record: https://cve.day/CVE-2022-50205.json · Rebuilt by cve.day 2026-11-25T22:58:21.103Z
