Menu

Star on GitHub · 3.2k

CVE-2024-38306

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: btrfs: protect folio::private when attaching extent buffer folios [BUG] Since v6.8 there are rare kernel crashes reported by va…

Published Jun 25, 2024CWE-362EPSS 0.15%

Overview

CVE-2024-38306 is a high-severity vulnerability. It was published on June 25, 2024 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:

btrfs: protect folio::private when attaching extent buffer folios

[BUG]

Since v6.8 there are rare kernel crashes reported by various people,

the common factor is bad page status error messages like this:

BUG: Bad page state in process kswapd0 pfn:d6e840

page: refcount:0 mapcount:0 mapping:000000007512f4f2 index:0x2796c2c7c

pfn:0xd6e840

aops:btree_aops ino:1

flags: 0x17ffffe0000008(uptodate|node=0|zone=2|lastcpupid=0x3fffff)

page_type: 0xffffffff()

raw: 0017ffffe0000008 dead000000000100 dead000000000122 ffff88826d0be4c0

raw: 00000002796c2c7c 0000000000000000 00000000ffffffff 0000000000000000

page dumped because: non-NULL mapping

[CAUSE]

Commit 09e6cef19c9f ("btrfs: refactor alloc_extent_buffer() to

allocate-then-attach method") changes the sequence when allocating a new

extent buffer.

Previously we always called grab_extent_buffer() under

mapping->i_private_lock, to ensure the safety on modificat

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-2024-38306?

CVE-2024-38306 is a high-severity vulnerability. It was published on June 25, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-38306?

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-2024-38306?

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-2024-38306?

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

View all