LiveActive security incident?Get immediate response
CVE Record

CVE-2021-47599: btrfs: use latest_dev in btrfs_show_devname

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 device list. That means we could use the latest_dev->name to show the device name in /proc/self/mounts, the pointer will be always valid as it's assigned before the device is deleted from the list in remove or replace. The RCU protection is sufficient as the device structure is freed after synchronization.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

This is a Linux kernel btrfs bug that can trigger a kernel warning while mount information is being read after specific btrfs device-list changes. The source describes a correctness and stability fix, not data theft, privilege escalation, or confirmed compromise.

Executive priority

Treat as routine kernel hygiene unless btrfs is operationally important in production. Patch through normal Linux update cycles, with higher priority for storage-heavy systems using btrfs device management features.

Technical view

btrfs_show_devname() could search fs_devices::devices after btrfs_prepare_sprout() moved devices into seed_list, finding none and warning. The fix uses latest_dev->name, relying on RCU protection and device lifetime rules during remove or replace operations.

Likely exposure

Exposure appears limited to Linux systems using btrfs on affected kernel builds, especially configurations involving seed devices, sprout behavior, or device replacement/removal paths. Non-btrfs systems are not indicated as exposed by the supplied sources.

Exploitation context

The supplied sources do not show active exploitation, and KEV is false. The evidence describes a kernel warning found by btrfs testing, not a public exploit path or weaponized attack scenario.

Researcher notes

The public description is narrow: a warning in btrfs_show_devname caused by device-list movement during prepare_sprout. No CVSS, CWE, exploitability detail, or downstream vendor matrix is included, so impact should not be overstated.

Mitigation direction

  • Update to a vendor kernel containing the referenced stable btrfs fixes.
  • Prioritize systems actively using btrfs with seed, sprout, remove, or replace workflows.
  • Check Linux distribution advisories for exact fixed package versions.
  • Avoid inventing workarounds; follow vendor guidance if patching is delayed.

Validation and detection

  • Inventory hosts running Linux with btrfs mounted filesystems.
  • Map running kernel packages against vendor advisories for CVE-2021-47599.
  • Confirm the kernel includes commits e342c2558016 or 6605fd2f394b.
  • Review logs for btrfs_show_devname warnings during mountinfo reads.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2021-47599 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
3Timeline events
2ADP providers
3Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CVECVE Program Container
CISA-ADPCISA ADP Vulnrichment
other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux4faf55b03823e96c44dc4e364520000ed3b12fdb, 4faf55b03823e96c44dc4e364520000ed3b12fdb, fa511954694cbea4d0cb59c81c8670276920c08c, 3d3452920cacc3a46444ecca26af5d181410ff19, ca21728e18d34fd5f449bb0581160e0eaee498a6, 1c986b7e8c1bf8fabbc294036b003286cc3a8c7eunaffected
LinuxLinux5.9, 0, 5.15.11, 5.16affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.