CVE-2024-43843: riscv, bpf: Fix out-of-bounds issue when preparing trampoline image
Vulnerability summary
CVE-2024-43843 is a high (CVSS 7.8) Incorrect Calculation of Buffer Size vulnerability in linux. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 10.4% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 5Timeline
- 17-08-2024PublishedVulnerability first disclosed.
- 11-05-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: riscv, bpf: Fix out-of-bounds issue when preparing trampoline image We get the size of the trampoline image during the dry run phase and allocate memory based on that size. The allocated image will then be populated with instructions during the real patch phase. But after commit 26ef208c209a ("bpf: Use arch_bpf_trampoline_size"), the `im` argument is inconsistent in the dry run and real patch phase. This may cause emit_imm in RV64 to generate a different number of instructions when generating the 'im' address, potentially causing out-of-bounds issues. Let's emit the maximum number of instructions for the "im" address during dry run to fix this problem.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
10%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.20% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu92 products
- linux< 6.8.0-50.51
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 6.8.0-1020.22
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 26ef208c209a0e6eed8942a5d191b39dccfa6e38, < 3e6a1b1b179abb643ec3560c02bc3082bc92285f | ≥ 26ef208c209a0e6eed8942a5d191b39dccfa6e38, < 9f1e16fb1fc9826001c69e0551d51fbbcd2d74e9 | 6.8
- linux_kernel≥ 6.8, < 6.10.3
Debian1 product
- linux< 6.10.3-1
3 vendors · 95 products