# CVE-2022-50668: ext4: fix deadlock due to mbcache entry corruption

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 05-12-2026)
- Next step: Check applicability: affected before 127b80cefb941a81255c72f11081123f3a705369, 1be16a0c2f10186df505e28b0cc92d7f3366e2a8, 5bc0b2fda4b47c86278f7c6d30c211f425bf51cf, a44e84a9b7764c72896f7241a0ec9ac7e7ef38dd, af53065276376750dfac35a7248af18806404c5d, cc1538c693d25e282bed8c54b65c914a04023a78, efaa0ca678f56d47316a08030b2515678cebbc50 (CNA); fix release not confirmed
- Status: published
- Published: 2025-12-09 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2022-50668, DEBIAN-CVE-2022-50668
- Record: https://cvemate.com/vulnerability/CVE-2022-50668 · JSON: https://cvemate.com/vulnerability/CVE-2022-50668/json

## Description

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

ext4: fix deadlock due to mbcache entry corruption

When manipulating xattr blocks, we can deadlock infinitely looping
inside ext4_xattr_block_set() where we constantly keep finding xattr
block for reuse in mbcache but we are unable to reuse it because its
reference count is too big. This happens because cache entry for the
xattr block is marked as reusable (e_reusable set) although its
reference count is too big. When this inconsistency happens, this
inconsistent state is kept indefinitely and so ext4_xattr_block_set()
keeps retrying indefinitely.

The inconsistent state is caused by non-atomic update of e_reusable bit.
e_reusable is part of a bitfield and e_reusable update can race with
update of e_referenced bit in the same bitfield resulting in loss of one
of the updates. Fix the problem by using atomic bitops instead.

This bug has been around for many years, but it became *much* easier
to hit after commit 65f8b80053a1 ("ext4: fix race when reusing xattr
blocks").
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.866%, percentile 59.967%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 124)

- debian linux (Debian): \< 6.1.4-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-144.161 \| \< 5.15.0-69.76
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1097.105 \| \< 5.15.0-1033.37
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1033.37~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1097.105~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1099.107+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1104.110 \| \< 5.15.0-1035.42
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/efaa0ca678f56d47316a08030b2515678cebbc50>
- <https://git.kernel.org/stable/c/af53065276376750dfac35a7248af18806404c5d>
- <https://git.kernel.org/stable/c/1be16a0c2f10186df505e28b0cc92d7f3366e2a8>
- <https://git.kernel.org/stable/c/5bc0b2fda4b47c86278f7c6d30c211f425bf51cf>
- <https://git.kernel.org/stable/c/127b80cefb941a81255c72f11081123f3a705369>
- <https://git.kernel.org/stable/c/cc1538c693d25e282bed8c54b65c914a04023a78>
- <https://git.kernel.org/stable/c/a44e84a9b7764c72896f7241a0ec9ac7e7ef38dd>
- <https://ubuntu.com/security/CVE-2022-50668>
- <https://www.cve.org/CVERecord?id=CVE-2022-50668>
- <https://git.kernel.org/linus/a44e84a9b7764c72896f7241a0ec9ac7e7ef38dd>
- <https://security-tracker.debian.org/tracker/CVE-2022-50668>

---

Data as of 2026-12-06T04:48:41.660Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
