# CVE-2022-50546: ext4: fix uninititialized value in 'ext4\_evict\_inode'

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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)
- **CWE:** CWE-908
- **Published:** 2025-10-07T15:21:09.963Z
- **Modified:** 2026-06-17T05:23:45.890Z

## Who should check

- Anyone running Linux \>= bb337d8dd1e1d6b7719872e45e36392f3ab14b4f, \< f0bffdcc7cb14598af2aa706f1e0f2a9054154ba; \>= a5f9bd4beae8553480d02b569d4aabee1b49345d, \< e431b4fb1fb8c2654b808086e9747a000adb9655; \>= 0e6fbc566fcc4c230bf80f76cf5df26b42142d8a, \< 091f85db4c3fb1734a6d7fb4777a2b2831da6631; \>= 0b885394fd009aa0b46d81b496a816ab11309f8a, \< 3c31d8d3ad95aef8cc17a4fcf317e46217148439; \>= 6bc0d63dad7f9f54d381925ee855b402f652fa39, \< 56491d60ddca9c697d885394cb0173675b9ab81f; \>= 6bc0d63dad7f9f54d381925ee855b402f652fa39, \< 9f966e021c20caae639dd0e404c8761e8281a2c4; \>= 6bc0d63dad7f9f54d381925ee855b402f652fa39, \< 7ea71af94eaaaf6d9aed24bc94a05b977a741cb9; 819d16f7feaca0f2ed3409be14fe953127fc51b6; 458aee4a6e5be7ad862ee27dfaf07ce552d84f32; \>= 5.10.163, \< 5.10.164; …
- Anyone running Linux 6.0

## Description

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

ext4: fix uninititialized value in 'ext4\_evict\_inode'

Syzbot found the following issue:
=====================================================
BUG: KMSAN: uninit-value in ext4\_evict\_inode+0xdd/0x26b0 fs/ext4/inode.c:180
 ext4\_evict\_inode+0xdd/0x26b0 fs/ext4/inode.c:180
 evict+0x365/0x9a0 fs/inode.c:664
 iput\_final fs/inode.c:1747 \[inline\]
 iput+0x985/0xdd0 fs/inode.c:1773
 \_\_ext4\_new\_inode+0xe54/0x7ec0 fs/ext4/ialloc.c:1361
 ext4\_mknod+0x376/0x840 fs/ext4/namei.c:2844
 vfs\_mknod+0x79d/0x830 fs/namei.c:3914
 do\_mknodat+0x47d/0xaa0
 \_\_do\_sys\_mknodat fs/namei.c:3992 \[inline\]
 \_\_se\_sys\_mknodat fs/namei.c:3989 \[inline\]
 \_\_ia32\_sys\_mknodat+0xeb/0x150 fs/namei.c:3989
 do\_syscall\_32\_irqs\_on arch/x86/entry/common.c:112 \[inline\]
 \_\_do\_fast\_syscall\_32+0xa2/0x100 arch/x86/entry/common.c:178
 do\_fast\_syscall\_32+0x33/0x70 arch/x86/entry/common.c:203
 do\_SYSENTER\_32+0x1b/0x20 arch/x86/entry/common.c:246
 entry\_SYSENTER\_compat\_after\_hwframe+0x70/0x82

Uninit was created at:
 \_\_alloc\_pages+0x9f1/0xe80 mm/page\_alloc.c:5578
 alloc\_pages+0xaae/0xd80 mm/mempolicy.c:2285
 alloc\_slab\_page mm/slub.c:1794 \[inline\]
 allocate\_slab+0x1b5/0x1010 mm/slub.c:1939
 new\_slab mm/slub.c:1992 \[inline\]
 \_\_\_slab\_alloc+0x10c3/0x2d60 mm/slub.c:3180
 \_\_slab\_alloc mm/slub.c:3279 \[inline\]
 slab\_alloc\_node mm/slub.c:3364 \[inline\]
 slab\_alloc mm/slub.c:3406 \[inline\]
 \_\_kmem\_cache\_alloc\_lru mm/slub.c:3413 \[inline\]
 kmem\_cache\_alloc\_lru+0x6f3/0xb30 mm/slub.c:3429
 alloc\_inode\_sb include/linux/fs.h:3117 \[inline\]
 ext4\_alloc\_inode+0x5f/0x860 fs/ext4/super.c:1321
 alloc\_inode+0x83/0x440 fs/inode.c:259
 new\_inode\_pseudo fs/inode.c:1018 \[inline\]
 new\_inode+0x3b/0x430 fs/inode.c:1046
 \_\_ext4\_new\_inode+0x2a7/0x7ec0 fs/ext4/ialloc.c:959
 ext4\_mkdir+0x4d5/0x1560 fs/ext4/namei.c:2992
 vfs\_mkdir+0x62a/0x870 fs/namei.c:4035
 do\_mkdirat+0x466/0x7b0 fs/namei.c:4060
 \_\_do\_sys\_mkdirat fs/namei.c:4075 \[inline\]
 \_\_se\_sys\_mkdirat fs/namei.c:4073 \[inline\]
 \_\_ia32\_sys\_mkdirat+0xc4/0x120 fs/namei.c:4073
 do\_syscall\_32\_irqs\_on arch/x86/entry/common.c:112 \[inline\]
 \_\_do\_fast\_syscall\_32+0xa2/0x100 arch/x86/entry/common.c:178
 do\_fast\_syscall\_32+0x33/0x70 arch/x86/entry/common.c:203
 do\_SYSENTER\_32+0x1b/0x20 arch/x86/entry/common.c:246
 entry\_SYSENTER\_compat\_after\_hwframe+0x70/0x82

CPU: 1 PID: 4625 Comm: syz-executor.2 Not tainted 6.1.0-rc4-syzkaller-62821-gcb231e2f67ec \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
=====================================================

Now, 'ext4\_alloc\_inode()' didn't init 'ei-\>i\_flags'. If new inode failed
before set 'ei-\>i\_flags' in '\_\_ext4\_new\_inode()', then do 'iput()'. As after
6bc0d63dad7f commit will access 'ei-\>i\_flags' in 'ext4\_evict\_inode()' which
will lead to access uninit-value.
To solve above issue just init 'ei-\>i\_flags' in 'ext4\_alloc\_inode()'.

## Affected and fixed versions

- Linux: \>= bb337d8dd1e1d6b7719872e45e36392f3ab14b4f, \< f0bffdcc7cb14598af2aa706f1e0f2a9054154ba; \>= a5f9bd4beae8553480d02b569d4aabee1b49345d, \< e431b4fb1fb8c2654b808086e9747a000adb9655; \>= 0e6fbc566fcc4c230bf80f76cf5df26b42142d8a, \< 091f85db4c3fb1734a6d7fb4777a2b2831da6631; \>= 0b885394fd009aa0b46d81b496a816ab11309f8a, \< 3c31d8d3ad95aef8cc17a4fcf317e46217148439; \>= 6bc0d63dad7f9f54d381925ee855b402f652fa39, \< 56491d60ddca9c697d885394cb0173675b9ab81f; \>= 6bc0d63dad7f9f54d381925ee855b402f652fa39, \< 9f966e021c20caae639dd0e404c8761e8281a2c4; \>= 6bc0d63dad7f9f54d381925ee855b402f652fa39, \< 7ea71af94eaaaf6d9aed24bc94a05b977a741cb9; 819d16f7feaca0f2ed3409be14fe953127fc51b6; 458aee4a6e5be7ad862ee27dfaf07ce552d84f32; \>= 5.10.163, \< 5.10.164; … (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50546.md
Affected: Linux >= bb337d8dd1e1d6b7719872e45e36392f3ab14b4f, < f0bffdcc7cb14598af2aa706f1e0f2a9054154ba; >= a5f9bd4beae8553480d02b569d4aabee1b49345d, < e431b4fb1fb8c2654b808086e9747a000adb9655; >= 0e6fbc566fcc4c230bf80f76cf5df26b42142d8a, < 091f85db4c3fb1734a6d7fb4777a2b2831da6631; >= 0b885394fd009aa0b46d81b…
Fixed in: Linux 091f85db4c3fb1734a6d7fb4777a2b2831da6631, Linux 3c31d8d3ad95aef8cc17a4fcf317e46217148439, Linux 56491d60ddca9c697d885394cb0173675b9ab81f, Linux 9f966e021c20caae639dd0e404c8761e8281a2c4, Linux 7ea71af94eaaaf6d9aed24bc94a05b977a741cb9, Linux 5.10.164

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-50546 being exploited?

There is no confirmed exploitation: CVE-2022-50546 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-50546?

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

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

Linux \>= bb337d8dd1e1d6b7719872e45e36392f3ab14b4f, \< f0bffdcc7cb14598af2aa706f1e0f2a9054154ba; \>= a5f9bd4beae8553480d02b569d4aabee1b49345d, \< e431b4fb1fb8c2654b808086e9747a000adb9655; \>= 0e6fbc566fcc4c230bf80f76cf5df26b42142d8a, \< 091f85db4c3fb1734a6d7fb4777a2b2831da6631; \>= 0b885394fd009aa0b46d81b496a816ab11309f8a, \< 3c31d8d3ad95aef8cc17a4fcf317e46217148439; \>= 6bc0d63dad7f9f54d381925ee855b402f652fa39, \< 56491d60ddca9c697d885394cb0173675b9ab81f; \>= 6bc0d63dad7f9f54d381925ee855b402f652fa39, \< 9f966e021c20caae639dd0e404c8761e8281a2c4; \>= 6bc0d63dad7f9f54d381925ee855b402f652fa39, \< 7ea71af94eaaaf6d9aed24bc94a05b977a741cb9; 819d16f7feaca0f2ed3409be14fe953127fc51b6; 458aee4a6e5be7ad862ee27dfaf07ce552d84f32; \>= 5.10.163, \< 5.10.164; …; Linux 6.0.

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

Yes. Fixed in Linux 091f85db4c3fb1734a6d7fb4777a2b2831da6631, Linux 3c31d8d3ad95aef8cc17a4fcf317e46217148439, Linux 56491d60ddca9c697d885394cb0173675b9ab81f, Linux 9f966e021c20caae639dd0e404c8761e8281a2c4, Linux 7ea71af94eaaaf6d9aed24bc94a05b977a741cb9, Linux 5.10.164. No fix listed yet: follow the vendor advisory.

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

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/f0bffdcc7cb14598af2aa706f1e0f2a9054154ba>
- patch: <https://git.kernel.org/stable/c/e431b4fb1fb8c2654b808086e9747a000adb9655>
- patch: <https://git.kernel.org/stable/c/091f85db4c3fb1734a6d7fb4777a2b2831da6631>
- patch: <https://git.kernel.org/stable/c/3c31d8d3ad95aef8cc17a4fcf317e46217148439>
- patch: <https://git.kernel.org/stable/c/56491d60ddca9c697d885394cb0173675b9ab81f>
- patch: <https://git.kernel.org/stable/c/9f966e021c20caae639dd0e404c8761e8281a2c4>
- patch: <https://git.kernel.org/stable/c/7ea71af94eaaaf6d9aed24bc94a05b977a741cb9>

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

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