Menu

Star on GitHub · 3.4k

CVE-2024-43840

7.8 · HIGH

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(…

Published Aug 17, 2024EPSS 0.23%

Overview

CVE-2024-43840 is a high-severity vulnerability. It was published on August 17, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-43840?

CVE-2024-43840 is a high-severity vulnerability. It was published on August 17, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-43840?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-43840?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-43840?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-43840 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all
Watch the demo →