Menu

Star on GitHub · 3.2k

CVE-2022-50021

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: ext4: block range must be validated before use in ext4_mb_clear_bb() Block range to free is validated in ext4_free_blocks() usi…

Published Jun 18, 2025CWE-416EPSS 0.20%

Overview

CVE-2022-50021 is a high-severity vulnerability. It was published on June 18, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

ext4: block range must be validated before use in ext4_mb_clear_bb()

Block range to free is validated in ext4_free_blocks() using

ext4_inode_block_valid() and then it's passed to ext4_mb_clear_bb().

However in some situations on bigalloc file system the range might be

adjusted after the validation in ext4_free_blocks() which can lead to

troubles on corrupted file systems such as one found by syzkaller that

resulted in the following BUG

kernel BUG at fs/ext4/ext4.h:3319!

PREEMPT SMP NOPTI

CPU: 28 PID: 4243 Comm: repro Kdump: loaded Not tainted 5.19.0-rc6+ #1

Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1.fc35 04/01/2014

RIP: 0010:ext4_free_blocks+0x95e/0xa90

Call Trace:

<TASK>

? lock_timer_base+0x61/0x80

? __es_remove_extent+0x5a/0x760

? __mod_timer+0x256/0x380

? ext4_ind_truncate_ensure_credits+0x90/0x220

ext4_clear_blocks+0x107/0x1b0

ext4_free_data+0x15b/0x170

ext4_ind_truncate+0x214/0x2c

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-50021?

CVE-2022-50021 is a high-severity vulnerability. It was published on June 18, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2022-50021?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-50021?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-50021?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-50021 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2022

View all