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

Published Aug 17, 2024
·
Updated

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 archbpftrampolinesize"), the im argument is inconsistent in the dry run and real patch phase. This may cause emitimm 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 Software

2 affected componentsFixes available
Linux Linux kernel>=6.8<6.10.3
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

Aug 17, 2024
CVE Published
via MITRE·09:21 AM
Data Sourced
via MITRE·09:21 AM
Description
Jan 13, 2025
Data Sourced
via Ubuntu·06:28 PM
RemedyDescriptionSeverityAffected Software
Apr 27, 2025
Data Sourced
via Debian·07:38 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-43843?

CVE-2024-43843 has been categorized as a high-severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2024-43843?

To fix CVE-2024-43843, update to a patched version of the Linux kernel, specifically versions 5.10.223-1, 5.10.226-1, 6.1.119-1, 6.1.123-1, 6.12.10-1, or 6.12.11-1.

3

What types of systems are affected by CVE-2024-43843?

CVE-2024-43843 affects systems running the Linux kernel versions between 6.8 and 6.10.3.

4

What impact does CVE-2024-43843 have on systems?

CVE-2024-43843 can lead to out-of-bounds issues when preparing trampoline images, potentially resulting in crashes or code execution.

5

Is CVE-2024-43843 being actively exploited?

There is currently no public information indicating that CVE-2024-43843 is being actively exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203