Menu

Star on GitHub · 3.2k

CVE-2021-47406

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: ext4: add error checking to ext4_ext_replay_set_iblocks() If the call to ext4_map_blocks() fails due to an corrupted file syste…

Published May 21, 2024CWE-835EPSS 0.25%

Overview

CVE-2021-47406 is a medium-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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: add error checking to ext4_ext_replay_set_iblocks()

If the call to ext4_map_blocks() fails due to an corrupted file

system, ext4_ext_replay_set_iblocks() can get stuck in an infinite

loop. This could be reproduced by running generic/526 with a file

system that has inline_data and fast_commit enabled. The system will

repeatedly log to the console:

EXT4-fs warning (device dm-3): ext4_block_to_path:105: block 1074800922 > max in inode 131076

and the stack that it gets stuck in is:

ext4_block_to_path+0xe3/0x130

ext4_ind_map_blocks+0x93/0x690

ext4_map_blocks+0x100/0x660

skip_hole+0x47/0x70

ext4_ext_replay_set_iblocks+0x223/0x440

ext4_fc_replay_inode+0x29e/0x3b0

ext4_fc_replay+0x278/0x550

do_one_pass+0x646/0xc10

jbd2_journal_recover+0x14a/0x270

jbd2_journal_load+0xc4/0x150

ext4_load_journal+0x1f3/0x490

ext4_fill_super+0x22d4/0x2c00

With this patch, generic/526 still fails, bu

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-2021-47406?

CVE-2021-47406 is a medium-severity vulnerability. It was published on May 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2021-47406?

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

How do I fix or remediate CVE-2021-47406?

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-2021-47406?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47406 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 MEDIUM CVEs from 2021

View all