Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-43840

HIGH 7.8EPSS 18%

bpf, arm64: Fix trampoline for BPF_TRAMP_F_CALL_ORIG

Mitigation

  • Upgrade Linux to 19d3c179a37730caf600a97fed3794feac2b197b or later.

Who should check

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

Vulnerability facts

Affected
Linux >= efc9909fdce00a827a37609628223cd45bf95d0b, < 077149478497b2f00ff4fd9da2c892defa6418d8; >= efc9909fdce00a827a37609628223cd45bf95d0b, < d9664e6ff040798a46cdc5d401064f55b8676c83; >= efc9909fdce00a827a37609628223cd45bf95d0b, < 6d218fcc707d6b2c3616b6cd24b948fd4825cfec; >= efc9909fdce00a827a37609628223cd45bf95d0b, < 19d3c179a37730caf600a97fed3794feac2b197b; Linux 6.0
Fixed in
Linux 077149478497b2f00ff4fd9da2c892defa6418d8, Linux 6d218fcc707d6b2c3616b6cd24b948fd4825cfec, Linux 19d3c179a37730caf600a97fed3794feac2b197b
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.33% chance of exploitation in 30 days (percentile 18, 2026-11-26)
Published
Modified

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

Package / productAffectedFixedSource
Linux>= efc9909fdce00a827a37609628223cd45bf95d0b, < 077149478497b2f00ff4fd9da2c892defa6418d8; >= efc9909fdce00a827a37609628223cd45bf95d0b, < d9664e6ff040798a46cdc5d401064f55b8676c83; >= efc9909fdce00a827a37609628223cd45bf95d0b, < 6d218fcc707d6b2c3616b6cd24b948fd4825cfec; >= efc9909fdce00a827a37609628223cd45bf95d0b, < 19d3c179a37730caf600a97fed3794feac2b197b—cvelist
Linux6.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors