# CVE-2022-50485: ext4: add EXT4\_IGET\_BAD flag to prevent unexpected bad inode

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2025-10-04T15:16:43.093Z
- **Modified:** 2026-06-17T05:23:38.967Z

## Who should check

- Anyone running Linux \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 2142dfa1de61e25b83198af0308ec7689cca25d3; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< c0a738875c2e9c8c3366d792f8bf7fe508d5e5a5; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< f7e6b5548f915d7aa435d0764d41eacfb49c6e09; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< f725b290ed79ad61e4f721fee95a287892d8b1ad; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 488a5c2bf7543c3cd3f07a025f2e62be91599430; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023
- Anyone running Linux 3.10

## 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)

## Affected and fixed versions

- Linux: \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 2142dfa1de61e25b83198af0308ec7689cca25d3; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< c0a738875c2e9c8c3366d792f8bf7fe508d5e5a5; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< f7e6b5548f915d7aa435d0764d41eacfb49c6e09; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< f725b290ed79ad61e4f721fee95a287892d8b1ad; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 488a5c2bf7543c3cd3f07a025f2e62be91599430; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023 (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

- Upgrade Linux to 63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50485. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50485.md
Affected: Linux >= 393d1d1d76933886d5e1ce603214c9987589c6d5, < 2142dfa1de61e25b83198af0308ec7689cca25d3; >= 393d1d1d76933886d5e1ce603214c9987589c6d5, < c0a738875c2e9c8c3366d792f8bf7fe508d5e5a5; >= 393d1d1d76933886d5e1ce603214c9987589c6d5, < f7e6b5548f915d7aa435d0764d41eacfb49c6e09; >= 393d1d1d76933886d5e1ce6…
Fixed in: Linux 2142dfa1de61e25b83198af0308ec7689cca25d3, Linux 488a5c2bf7543c3cd3f07a025f2e62be91599430, Linux 63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50485 being exploited?

There is no confirmed exploitation: CVE-2022-50485 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50485?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50485?

Linux \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 2142dfa1de61e25b83198af0308ec7689cca25d3; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< c0a738875c2e9c8c3366d792f8bf7fe508d5e5a5; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< f7e6b5548f915d7aa435d0764d41eacfb49c6e09; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< f725b290ed79ad61e4f721fee95a287892d8b1ad; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 488a5c2bf7543c3cd3f07a025f2e62be91599430; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023; Linux 3.10.

### Is there a fix for CVE-2022-50485?

Yes. Fixed in Linux 2142dfa1de61e25b83198af0308ec7689cca25d3, Linux 488a5c2bf7543c3cd3f07a025f2e62be91599430, Linux 63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023. Upgrade Linux to 63b1e9bccb71fe7d7e3ddc9877dbdc85e5d2d023 or later.

### How do I check if I'm affected by CVE-2022-50485?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50485>

HTML: <https://flawdb.com/CVE-2022-50485> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50485>
