CVE-2022-50668

Linux Kernel 4.6.0-6.1.4 Deadlock via Xattr Block Reuse Race Condition

Title source: llm
STIX 2.1

Description

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").

Scores

EPSS 0.0022
EPSS Percentile 13.2%

Details

Status published
Products (22)
linux/Kernel 4.20.0 - 5.4.229linux
linux/Kernel 4.6.0 - 4.19.270linux
linux/Kernel 5.11.0 - 5.15.87linux
linux/Kernel 5.16.0 - 6.0.18linux
linux/Kernel 5.5.0 - 5.10.163linux
linux/Kernel 6.1.0 - 6.1.4linux
Linux/Linux < 4.6
Linux/Linux 4.19.270 - 4.19.*
Linux/Linux 4.6
Linux/Linux 5.10.163 - 5.10.*
... and 12 more
Published Dec 09, 2025
Tracked Since Feb 18, 2026