CVE-2024-50203 Details
Description
In the Linux kernel, the following vulnerability has been resolved: bpf, arm64: Fix address emission with tag-based KASAN enabled When BPF_TRAMP_F_CALL_ORIG is enabled, the address of a bpf_tramp_image struct on the stack is passed during the size calculation pass and an address on the heap is passed during code generation. This may cause a heap buffer overflow if the heap address is tagged because emit_a64_mov_i64() will emit longer code than it did during the size calculation pass. The same problem could occur without tag-based KASAN if one of the 16-bit words of the stack address happened to be all-ones during the size calculation pass. Fix the problem by assuming the worst case (4 instructions) when calculating the size of the bpf_tramp_image address emission.
A heap buffer overflow vulnerability has been identified in the Linux kernel's BPF (Berkeley Packet Filter) implementation for ARM64 architecture, specifically when tag-based KASAN (Kernel Address Sanitizer) is enabled. The issue arises in the BPF trampoline mechanism, where the address of a 'bpf_tramp_image' struct is incorrectly handled. During the size calculation phase, the address is taken from the stack, but during code generation, a heap address is used. If the heap address is tagged, this mismatch can lead to a buffer overflow, as the code generation process may inadvertently produce longer instructions, exceeding the intended buffer size. This vulnerability can also occur without tag-based KASAN if a stack address word is all-ones during size calculation, creating a similar overflow risk.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. The specific commit that resolves this issue is available in the Linux kernel stable tree.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/7db1a2121f3c7903b8e397392beec563c3d00950 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9e80f366ebfdfafc685fe83a84c34f7ef01cbe88 | kernel.org | |
| https://git.kernel.org/stable/c/a552e2ef5fd1a6c78267cd4ec5a9b49aa11bbb1c | kernel.org | Patch |
| https://git.kernel.org/stable/c/f521c2a0c0c4585f36d912bf62c852b88682c4f2 | kernel.org |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.10.3, < 6.11 >= 6.11, < 6.11.6 6.12 rc1 6.12 rc2 6.12 rc3 6.12 rc4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| May 22, 2025 | CVE Modified | kernel.org |
| Nov 19, 2024 | Initial Analysis | [email protected] |
| Nov 8, 2024 | New CVE Received | kernel.org |