bpftrace up to 0.20.1 on Linux src/utils.cpp unpack_kheaders_tar_xz temp file
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 3.6 | $0-$5k | 0.00 |
Summary
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.
Details
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.
Product
Name
Version
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 3.7VulDB 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.): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Temp fileCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 210369
Nessus Name: RHEL 8 : bpftrace (RHSA-2024:8830)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: bpftrace 0.20.2
Patch: 4be4b7191acb8218240e6b7178c30fa8c9b59998
Timeline
03/07/2024 🔍03/11/2024 🔍
03/11/2024 🔍
03/13/2025 🔍
Sources
Product: github.comAdvisory: 4be4b7191acb8218240e6b7178c30fa8c9b59998
Researcher: Mark Esler
Status: Confirmed
CVE: CVE-2024-2313 (🔍)
GCVE (CVE): GCVE-0-2024-2313
GCVE (VulDB): GCVE-100-256325
Entry
Created: 03/11/2024 08:32Updated: 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.
No comments yet. Languages: en.
Please log in to comment.