VDB

CVE-2024-43843

CVE-2024-43843 PUBLISHED

riscv, bpf: Fix out-of-bounds issue when preparing trampoline image

Reported by linux · Published August 17, 2024

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.

Affected products

VendorProductVersions
LinuxLinux26ef208c209a0e6eed8942a5d191b39dccfa6e38, 26ef208c209a0e6eed8942a5d191b39dccfa6e38
LinuxLinux6.8, 0, 6.10.3
linuxlinux_kernel6.8, 6.8
LinuxLinux26ef208c209a0e6eed8942a5d191b39dccfa6e38, 26ef208c209a0e6eed8942a5d191b39dccfa6e38, 6.8

Timeline

  • Aug 17, 2024 CVE Published
  • Aug 18, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (15 in total, the first dated here)
  • Jan 5, 2026 Security Advisory (135 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (121 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-43843
vulnetix vdb fixes CVE-2024-43843

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-43843/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›