PT-2024-30702 · Linux+6 · Linux Kernel+6

Published

2024-07-11

·

Updated

2026-03-13

·

CVE-2024-43840

CVSS v2.0

7.5

High

VectorAV:N/AC:L/Au:N/C:P/I:P/A:P
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The issue is related to the trampoline generation code in the Linux kernel 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 problem arises because the emit addr mov i64() function assumes the address to be in the vmalloc() space and uses only 48 bits, but the bpf tramp image is allocated using kzalloc(), which can result in an address that uses more than 48 bits. This causes the trampoline to pass an invalid address to bpf tramp enter/exit(), leading to a kernel crash. The fix involves using emit a64 mov i64() in place of emit addr mov i64() to handle addresses greater than 48 bits.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
ALT-PU-2025-12647
AZL-51859
BDU:2025-02956
CVE-2024-43840
DLA-4271-1
DSA-5925-1
ECHO-0E3A-6B1A-E7E7
OESA-2024-2255
OESA-2024-2258
OESA-2024-2296
SUSE-SU-2024:3194-1
SUSE-SU-2024:3195-1
SUSE-SU-2024:3383-1
SUSE-SU-2025:20044-1
SUSE-SU-2025:20047-1
USN-7154-1
USN-7154-2
USN-7155-1
USN-7156-1
USN-7196-1

Affected Products

Alt Linux
Astra Linux
Debian
Linuxmint
Linux Kernel
Suse
Ubuntu