# CVE-2022-50485: ext4: add EXT4_IGET_BAD flag to prevent unexpected bad inode

- 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.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-10-04T15:16:43.093Z
- Modified: 2026-06-17T05:23:38.967Z
- Assigned by: Linux

## Description

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

ext4: add EXT4_IGET_BAD flag to prevent unexpected bad inode

There are many places that will get unhappy (and crash) when ext4_iget()
returns a bad inode. However, if iget the boot loader inode, allows a bad
inode to be returned, because the inode may not be initialized. This
mechanism can be used to bypass some checks and cause panic. To solve this
problem, we add a special iget flag EXT4_IGET_BAD. Only with this flag
we'd be returning bad inode from ext4_iget(), otherwise we always return
the error code if the inode is bad inode.(suggested by Jan Kara)

(As written by CVE List.)

## Affected

- Linux Linux: from 393d1d1d76933886d5e1ce603214c9987589c6d5 before 2142dfa1de61e25b83198af0308ec7689cca25d3; from 393d1d1d76933886d5e1ce603214c9987589c6d5 before c0a738875c2e9c8c3366d792f8bf7fe508d5e5a5; from 393d1d1d76933886d5e1ce603214c9987589c6d5 before f7e6b5548f915d7aa435d0764d41eacfb49c6e09; from 393d1d1d76933886d5e1ce603214c9987589c6d5 before f725b290ed79ad61e4f721fee95a287892d8b1ad; from 393d1d1d76933886d5e1ce603214c9987589c6d5 before 488a5c2bf7543c3cd3f07a025f2e62be91599430; from 393d1d1d76933886d5e1ce603214c9987589c6d5 before 63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023; 3.10 (not affected: before 3.10; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.87 up to 5.15.*; from 6.0.18 up to 6.0.*; from 6.1.4 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 3.10 before 5.4.229; from 5.5 before 5.10.163; from 5.11 before 5.15.87; from 5.16 before 6.0.18; from 6.1 before 6.1.4

## References

- <https://git.kernel.org/stable/c/2142dfa1de61e25b83198af0308ec7689cca25d3> (patch)
- <https://git.kernel.org/stable/c/c0a738875c2e9c8c3366d792f8bf7fe508d5e5a5> (patch)
- <https://git.kernel.org/stable/c/f7e6b5548f915d7aa435d0764d41eacfb49c6e09> (patch)
- <https://git.kernel.org/stable/c/f725b290ed79ad61e4f721fee95a287892d8b1ad> (patch)
- <https://git.kernel.org/stable/c/488a5c2bf7543c3cd3f07a025f2e62be91599430> (patch)
- <https://git.kernel.org/stable/c/63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023> (patch)

## Sources

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

---

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