CVE-2024-2313
NixOS vulnerability analysis and mitigation

Overview

A security vulnerability (CVE-2024-2313) was discovered in BPFtrace, affecting systems where kernel headers need to be extracted. The vulnerability was disclosed on March 10, 2024. When BPFtrace attempts to load kernel headers from a temporary directory, an unprivileged attacker could potentially force BCC to load compromised Linux headers. Notably, Linux distributions that provide kernel headers by default are not affected by this vulnerability (NVD).

Technical details

The vulnerability has been assigned a CVSS v3.1 Base Score of 2.8 (LOW) with the vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:L. The issue specifically occurs during the kernel header extraction process, where BPFtrace attempts to load headers from a temporary directory without proper ownership verification (Red Hat CVE).

Impact

The vulnerability's impact is relatively limited, primarily affecting systems where kernel headers need to be extracted. The main risk is that an unprivileged attacker could potentially force the loading of compromised Linux headers, though the actual impact is mitigated by the fact that many Linux distributions provide kernel headers by default and are thus not affected (NVD).

Exploitability

The vulnerability requires local access and high complexity to exploit, as indicated by the CVSS metrics. The attacker needs to be an unprivileged user on the system to attempt exploitation. The vulnerability was fixed in BPFtrace version 0.21.0 (Debian Tracker).

Mitigation and workarounds

The vulnerability has been patched in BPFtrace version 0.21.0 and later. The fix involves implementing proper checks to ensure that unpacked kernel headers are owned by root. For systems that cannot immediately update, using distributions that provide kernel headers by default serves as a natural mitigation (Red Hat Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

bpftrace

Affected

bullseye

bpftrace

Affected

sid

bpftrace: 0.21.0-1

Fixed

trixie

bpftrace: 0.21.0-1

Fixed

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-91782LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91781LOW1.9
  • NixOS logoNixOS
  • binutils
NoYesSep 15, 2026
CVE-2026-91780LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-91779LOW1.9
  • NixOS logoNixOS
  • binutils
NoNoSep 15, 2026
CVE-2026-90831LOW1.9
  • NixOS logoNixOS
  • gcc-toolset-15-binutils-devel
NoYesSep 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management