bpftrace up to 0.20.1 on Linux src/utils.cpp unpack_kheaders_tar_xz temp file

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
3.6$0-$5k0.00

Summaryinfo

A vulnerability classified as problematic has been found in bpftrace up to 0.20.1 on Linux. This vulnerability affects the function unpack_kheaders_tar_xz of the file src/utils.cpp. The manipulation leads to temp file. This vulnerability is referenced as CVE-2024-2313. The attack can only be performed from a local environment. No exploit is available. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability was found in bpftrace up to 0.20.1 on Linux and classified as problematic. This issue affects the function unpack_kheaders_tar_xz of the file src/utils.cpp. The manipulation with an unknown input leads to a temp file vulnerability. Using CWE to declare the problem leads to CWE-377. Creating and using insecure temporary files can leave application and system data vulnerable to attack. Impacted is confidentiality, integrity, and availability. The summary by CVE is:

If kernel headers need to be extracted, bpftrace will attempt to load them from a temporary directory. An unprivileged attacker could use this to force bcc to load compromised linux headers. Linux distributions which provide kernel headers by default are not affected by default.

The weakness was published 03/11/2024 by Mark Esler as 4be4b7191acb8218240e6b7178c30fa8c9b59998. The advisory is shared at github.com. The identification of this vulnerability is CVE-2024-2313 since 03/07/2024. Technical details are known, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 210369 (RHEL 8 : bpftrace (RHSA-2024:8830)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 0.20.2 eliminates this vulnerability. Applying the patch 4be4b7191acb8218240e6b7178c30fa8c9b59998 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the vulnerability database at Tenable (210369). If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Productinfo

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 3.7
VulDB Meta Temp Score: 3.6

VulDB Base Score: 4.5
VulDB Temp Score: 4.3
VulDB Vector: 🔍
VulDB Reliability: 🔍

CNA Base Score: 2.8
CNA Vector (Canonical Ltd.): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Temp file
CWE: CWE-377
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: No

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 210369
Nessus Name: RHEL 8 : bpftrace (RHSA-2024:8830)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: bpftrace 0.20.2
Patch: 4be4b7191acb8218240e6b7178c30fa8c9b59998

Timelineinfo

03/07/2024 🔍
03/11/2024 +4 days 🔍
03/11/2024 +0 days 🔍
03/13/2025 +367 days 🔍

Sourcesinfo

Product: github.com

Advisory: 4be4b7191acb8218240e6b7178c30fa8c9b59998
Researcher: Mark Esler
Status: Confirmed

CVE: CVE-2024-2313 (🔍)
GCVE (CVE): GCVE-0-2024-2313
GCVE (VulDB): GCVE-100-256325

Entryinfo

Created: 03/11/2024 08:32
Updated: 03/13/2025 23:29
Changes: 03/11/2024 08:32 (54), 11/06/2024 01:10 (17), 03/13/2025 23:29 (1)
Complete: 🔍
Cache ID: 216::103

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!