Menu

Star on GitHub · 3.2k

CVE-2021-47599

4.7 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: btrfs: use latest_dev in btrfs_show_devname The test case btrfs/238 reports the warning below: WARNING: CPU: 3 PID: 481 at fs…

Published Jun 19, 2024CWE-362EPSS 0.15%

Overview

CVE-2021-47599 is a medium-severity vulnerability. It was published on June 19, 2024 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 4.7, 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:

btrfs: use latest_dev in btrfs_show_devname

The test case btrfs/238 reports the warning below:

WARNING: CPU: 3 PID: 481 at fs/btrfs/super.c:2509 btrfs_show_devname+0x104/0x1e8 [btrfs]

CPU: 2 PID: 1 Comm: systemd Tainted: G W O 5.14.0-rc1-custom #72

Hardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015

Call trace:

btrfs_show_devname+0x108/0x1b4 [btrfs]

show_mountinfo+0x234/0x2c4

m_show+0x28/0x34

seq_read_iter+0x12c/0x3c4

vfs_read+0x29c/0x2c8

ksys_read+0x80/0xec

__arm64_sys_read+0x28/0x34

invoke_syscall+0x50/0xf8

do_el0_svc+0x88/0x138

el0_svc+0x2c/0x8c

el0t_64_sync_handler+0x84/0xe4

el0t_64_sync+0x198/0x19c

Reason:

While btrfs_prepare_sprout() moves the fs_devices::devices into

fs_devices::seed_list, the btrfs_show_devname() searches for the devices

and found none, leading to the warning as in above.

Fix:

latest_dev is updated according to the changes to the

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-47599?

CVE-2021-47599 is a medium-severity vulnerability. It was published on June 19, 2024 and has a CVSS 3.1 base score of 4.7 (MEDIUM).

How severe is CVE-2021-47599?

This vulnerability has a CVSS 3.1 base score of 4.7, 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-47599?

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-47599?

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