Armis Logo< Back

CVE-2024-56759:

CVE-2024-56759: Linux kernel Btrfs COW path use-after-free when tracing is enabled and preemption is active; fixed by moving the tracepoint invocation before the extent buffer is freed. Affected kernel versions prior to the fix; local attacker with low privileges can exploit for high impact on confidentiality, integrity, and availability (CWE-416).


Score
Info
A numerical rating that indicates how dangerous this vulnerability is.

7.8High
  • Published Date:Jan 6, 2025
  • CISA KEV Date:*No Data*
  • Industries Affected:20

Threat Predictions

  • EPSS Score:0.0
  • EPSS Percentile:4%

Exploitability

  • Score:1.8
  • Attack Vector:LOCAL
  • Attack Complexity:LOW
  • Privileges Required:LOW
  • User Interaction:NONE
  • Scope:UNCHANGED

Impact

  • Score:5.9
  • Confidentiality Impact:HIGH
  • Integrity Impact:HIGH
  • Availability Impact:HIGH

Description Preview

CVE-2024-56759: Linux kernel Btrfs COW path use-after-free when tracing is enabled and preemption is active; fixed by moving the tracepoint invocation before the extent buffer is freed. Affected kernel versions prior to the fix; local attacker with low privileges can exploit for high impact on confidentiality, integrity, and availability (CWE-416).

Overview

This vulnerability is a use-after-free in the Btrfs Copy-On-Write path when tracing is turned on and preemption is enabled, which can lead to memory safety issues in the extent buffer. The root cause is an incorrect ordering of a tracepoint relative to buffer freeing. The fix moves the tracepoint to occur before the buffer is freed, guarding against premature release and potential exploitation. The issue affects several Linux kernel versions prior to the fixes and has been resolved in the stable releases linked in the references.

Remediation

  • Upgrade to a Linux kernel version that includes the fix (the commits referenced in the stable kernel updates). This is the most reliable remediation.
  • If upgrading is not immediately possible, apply the patch from the stable repository to your affected kernel tree and recompile/redeploy kernels containing the fix.
  • After upgrading or applying the patch, verify the kernel boots cleanly and run relevant Btrfs tests with tracing enabled and preemption active to ensure the issue is mitigated.
  • As a temporary mitigation (not a substitute for the fix), you may disable or avoid enabling the tracepoint trace_btrfs_cow_block() in production until a patched kernel is deployed. Do not rely on this as a long-term solution.
  • Validate the system’s stability and security posture post-upgrade, ensuring that tracing configurations do not reintroduce the condition.

References

Industries Affected

Below is a list of industries most commonly impacted or potentially at risk based on intelligence.

Medium
Retail Trade icon
Retail Trade
Manufacturing icon
Manufacturing
Health Care and Social Assistance icon
Health Care and Social Assistance
Low
Mining icon
Mining
Utilities icon
Utilities
Information icon
Information
Construction icon
Construction
Wholesale Trade icon
Wholesale Trade
Educational Services icon
Educational Services
Finance and Insurance icon
Finance and Insurance
Public Administration icon
Public Administration
Real Estate Rental and Leasing icon
Real Estate Rental and Leasing
Transportation and Warehousing icon
Transportation and Warehousing
Accommodation and Food Services icon
Accommodation and Food Services
Arts, Entertainment, and Recreation icon
Arts, Entertainment, and Recreation
Management of Companies and Enterprises icon
Management of Companies and Enterprises
Agriculture, Forestry, Fishing and Hunting icon
Agriculture, Forestry, Fishing and Hunting
Other Services (except Public Administration) icon
Other Services (except Public Administration)
Professional, Scientific, and Technical Services icon
Professional, Scientific, and Technical Services
Administrative and Support and Waste Management and Remediation Services icon
Administrative and Support and Waste Management and Remediation Services

Focus on What Matters

See everything.Identify true risk.Proactively mitigate threats.Book a Demo

Let's talk!