CVE-2024-43840 Details
Description
In the Linux kernel, the following vulnerability has been resolved: bpf, arm64: Fix trampoline for BPF_TRAMP_F_CALL_ORIG When BPF_TRAMP_F_CALL_ORIG is set, the trampoline calls __bpf_tramp_enter() and __bpf_tramp_exit() functions, passing them the struct bpf_tramp_image *im pointer as an argument in R0. The trampoline generation code uses emit_addr_mov_i64() to emit instructions for moving the bpf_tramp_image address into R0, but emit_addr_mov_i64() assumes the address to be in the vmalloc() space and uses only 48 bits. Because bpf_tramp_image is allocated using kzalloc(), its address can use more than 48-bits, in this case the trampoline will pass an invalid address to __bpf_tramp_enter/exit() causing a kernel crash. Fix this by using emit_a64_mov_i64() in place of emit_addr_mov_i64() as it can work with addresses that are greater than 48-bits.
A vulnerability in the Linux kernel's BPF trampoline mechanism for ARM64 architecture has been addressed. When the BPF_TRAMP_F_CALL_ORIG flag is set, the trampoline incorrectly passes a pointer to the BPF trampoline image structure to the __bpf_tramp_enter() and __bpf_tramp_exit() functions, using a 48-bit address. This limitation arises because the BPF trampoline image is allocated with kzalloc(), allowing for addresses greater than 48 bits. As a result, an invalid address can be passed, leading to a kernel crash. The vulnerability has been fixed by modifying the trampoline generation code to use a function that correctly handles 64-bit addresses, ensuring the validity of the pointer passed to the trampoline functions.
Users can upgrade to the latest version of the Linux kernel to address this vulnerability. For Debian 11 (bullseye), the updated package version is 6.1.140-1~deb11u1.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 10, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.0, < 6.10.3 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| May 22, 2025 | CVE Modified | kernel.org |
| Oct 29, 2024 | Initial Analysis | [email protected] |
| Aug 17, 2024 | New CVE Received | kernel.org |