LiveActive security incident?Get immediate response
CVE Record

CVE-2024-42314: btrfs: fix extent map use-after-free when adding pages to compressed bio

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix extent map use-after-free when adding pages to compressed bio At add_ra_bio_pages() we are accessing the extent map to calculate 'add_size' after we dropped our reference on the extent map, resulting in a use-after-free. Fix this by computing 'add_size' before dropping our extent map reference.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2024-42314 is a Linux kernel memory-safety flaw in Btrfs. Under specific compressed I/O activity, the kernel can access an object after releasing it. A local, low-privileged user may be able to trigger serious confidentiality, integrity, or availability consequences. Exposure depends on the installed kernel and use of Btrfs.

Executive priority

Treat as a high-priority kernel maintenance issue on multi-user or untrusted-workload systems using Btrfs. Patch through supported distribution channels promptly, with faster handling where local users or workloads are not fully trusted. Lower urgency may be reasonable when Btrfs is absent, after verification.

Technical view

The Btrfs add_ra_bio_pages() path calculated add_size from an extent map after releasing its reference, creating a use-after-free. The kernel fix moves that calculation before the reference is dropped. CVSS 3.1 rates the issue 7.8 with local access, low complexity, low privileges, no user interaction, and high potential impact.

Likely exposure

Prioritize Linux systems using Btrfs and potentially exercising compressed read-ahead paths. The supplied version data identifies Linux 5.16 and several later branch versions but is ambiguous about exact fixed boundaries. Confirm distributor package status or whether the running kernel incorporates a referenced stable fix.

Exploitation context

The CVSS vector requires local access and low privileges. The supplied sources provide no evidence of active exploitation, public weaponization, or remote reachability, and the CVE is not listed as KEV in the bundle. Practical exploitability is therefore unconfirmed.

Researcher notes

The source bundle contains duplicated commit identifiers and a flattened affected-version list that does not clearly express branch ranges. Avoid inferring exact vulnerable boundaries from those fields alone. Compare downstream package backports against the four stable commits. No CWE was supplied, although the description explicitly identifies a use-after-free.

Mitigation direction

  • Update to a vendor-supported kernel package containing the applicable referenced stable fix.
  • Reboot affected systems so the corrected kernel is actually running.
  • Follow Linux distributor guidance for package-specific fixed versions.
  • If patching is delayed, consult vendor guidance; the supplied sources name no temporary mitigation.

Validation and detection

  • Inventory running kernel releases and systems with Btrfs filesystems.
  • Map distributor kernel packages to the referenced upstream stable fixes.
  • After updating, verify the running kernel changed following reboot.
  • Review kernel logs for Btrfs faults, noting their absence does not prove safety.
Prepared
Confidence
medium
Sources
7

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-2024-42314 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
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

1CVSS vectors
3Timeline events
2ADP providers
6Source links

SSVC decision data

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

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9Linux

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2024-42314Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

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

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

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux6a4049102055250256623ab1875fabd89004bff8, 6a4049102055250256623ab1875fabd89004bff8, 6a4049102055250256623ab1875fabd89004bff8, 6a4049102055250256623ab1875fabd89004bff8unaffected
LinuxLinux5.16, 0, 6.1.108, 6.6.44, 6.10.3, 6.11affected
Weakness

CWE details

No CWE listed

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