# CVE-2024-43840: bpf, arm64: Fix trampoline for BPF\_TRAMP\_F\_CALL\_ORIG

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **Published:** 2024-08-17T09:21:55.841Z
- **Modified:** 2026-08-05T11:36:42.708Z

## Who should check

- Anyone running Linux \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 077149478497b2f00ff4fd9da2c892defa6418d8; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< d9664e6ff040798a46cdc5d401064f55b8676c83; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 6d218fcc707d6b2c3616b6cd24b948fd4825cfec; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 19d3c179a37730caf600a97fed3794feac2b197b
- Anyone running Linux 6.0

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

## Affected and fixed versions

- Linux: \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 077149478497b2f00ff4fd9da2c892defa6418d8; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< d9664e6ff040798a46cdc5d401064f55b8676c83; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 6d218fcc707d6b2c3616b6cd24b948fd4825cfec; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 19d3c179a37730caf600a97fed3794feac2b197b (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 19d3c179a37730caf600a97fed3794feac2b197b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-43840. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-43840.md
Affected: Linux >= efc9909fdce00a827a37609628223cd45bf95d0b, < 077149478497b2f00ff4fd9da2c892defa6418d8; >= efc9909fdce00a827a37609628223cd45bf95d0b, < d9664e6ff040798a46cdc5d401064f55b8676c83; >= efc9909fdce00a827a37609628223cd45bf95d0b, < 6d218fcc707d6b2c3616b6cd24b948fd4825cfec; >= efc9909fdce00a827a37609…
Fixed in: Linux 077149478497b2f00ff4fd9da2c892defa6418d8, Linux 6d218fcc707d6b2c3616b6cd24b948fd4825cfec, Linux 19d3c179a37730caf600a97fed3794feac2b197b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-43840 being exploited?

There is no confirmed exploitation: CVE-2024-43840 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-43840?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-43840?

Linux \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 077149478497b2f00ff4fd9da2c892defa6418d8; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< d9664e6ff040798a46cdc5d401064f55b8676c83; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 6d218fcc707d6b2c3616b6cd24b948fd4825cfec; \>= efc9909fdce00a827a37609628223cd45bf95d0b, \< 19d3c179a37730caf600a97fed3794feac2b197b; Linux 6.0.

### Is there a fix for CVE-2024-43840?

Yes. Fixed in Linux 077149478497b2f00ff4fd9da2c892defa6418d8, Linux 6d218fcc707d6b2c3616b6cd24b948fd4825cfec, Linux 19d3c179a37730caf600a97fed3794feac2b197b. Upgrade Linux to 19d3c179a37730caf600a97fed3794feac2b197b or later.

### How do I check if I'm affected by CVE-2024-43840?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6d218fcc707d6b2c3616b6cd24b948fd4825cfec>
- patch: <https://git.kernel.org/stable/c/19d3c179a37730caf600a97fed3794feac2b197b>
- other: <https://git.kernel.org/stable/c/077149478497b2f00ff4fd9da2c892defa6418d8>
- other: <https://git.kernel.org/stable/c/d9664e6ff040798a46cdc5d401064f55b8676c83>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-43840>

HTML: <https://flawdb.com/CVE-2024-43840> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-43840>
