# CVE-2024-50203: bpf, arm64: Fix address emission with tag-based KASAN enabled

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-11-08T06:07:54.207Z
- **Modified:** 2026-08-05T11:42:28.257Z

## Who should check

- Anyone running Linux \>= 077149478497b2f00ff4fd9da2c892defa6418d8, \< 9e80f366ebfdfafc685fe83a84c34f7ef01cbe88; \>= d9664e6ff040798a46cdc5d401064f55b8676c83, \< f521c2a0c0c4585f36d912bf62c852b88682c4f2; \>= 19d3c179a37730caf600a97fed3794feac2b197b, \< 7db1a2121f3c7903b8e397392beec563c3d00950; \>= 19d3c179a37730caf600a97fed3794feac2b197b, \< a552e2ef5fd1a6c78267cd4ec5a9b49aa11bbb1c; 6d218fcc707d6b2c3616b6cd24b948fd4825cfec; \>= 6.10.3, \< 6.11
- Anyone running Linux 6.11

## 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.

## Affected and fixed versions

- Linux: \>= 077149478497b2f00ff4fd9da2c892defa6418d8, \< 9e80f366ebfdfafc685fe83a84c34f7ef01cbe88; \>= d9664e6ff040798a46cdc5d401064f55b8676c83, \< f521c2a0c0c4585f36d912bf62c852b88682c4f2; \>= 19d3c179a37730caf600a97fed3794feac2b197b, \< 7db1a2121f3c7903b8e397392beec563c3d00950; \>= 19d3c179a37730caf600a97fed3794feac2b197b, \< a552e2ef5fd1a6c78267cd4ec5a9b49aa11bbb1c; 6d218fcc707d6b2c3616b6cd24b948fd4825cfec; \>= 6.10.3, \< 6.11 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 6.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50203. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50203.md
Affected: Linux >= 077149478497b2f00ff4fd9da2c892defa6418d8, < 9e80f366ebfdfafc685fe83a84c34f7ef01cbe88; >= d9664e6ff040798a46cdc5d401064f55b8676c83, < f521c2a0c0c4585f36d912bf62c852b88682c4f2; >= 19d3c179a37730caf600a97fed3794feac2b197b, < 7db1a2121f3c7903b8e397392beec563c3d00950; >= 19d3c179a37730caf600a97…
Fixed in: Linux 9e80f366ebfdfafc685fe83a84c34f7ef01cbe88, Linux 7db1a2121f3c7903b8e397392beec563c3d00950, Linux 6.11

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.
```

## FAQ

### Is CVE-2024-50203 being exploited?

There is no confirmed exploitation: CVE-2024-50203 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-50203?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50203?

Linux \>= 077149478497b2f00ff4fd9da2c892defa6418d8, \< 9e80f366ebfdfafc685fe83a84c34f7ef01cbe88; \>= d9664e6ff040798a46cdc5d401064f55b8676c83, \< f521c2a0c0c4585f36d912bf62c852b88682c4f2; \>= 19d3c179a37730caf600a97fed3794feac2b197b, \< 7db1a2121f3c7903b8e397392beec563c3d00950; \>= 19d3c179a37730caf600a97fed3794feac2b197b, \< a552e2ef5fd1a6c78267cd4ec5a9b49aa11bbb1c; 6d218fcc707d6b2c3616b6cd24b948fd4825cfec; \>= 6.10.3, \< 6.11; Linux 6.11.

### Is there a fix for CVE-2024-50203?

Yes. Fixed in Linux 9e80f366ebfdfafc685fe83a84c34f7ef01cbe88, Linux 7db1a2121f3c7903b8e397392beec563c3d00950, Linux 6.11. Upgrade Linux to 6.11 or later.

### How do I check if I'm affected by CVE-2024-50203?

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.

## References

- patch: <https://git.kernel.org/stable/c/7db1a2121f3c7903b8e397392beec563c3d00950>
- patch: <https://git.kernel.org/stable/c/a552e2ef5fd1a6c78267cd4ec5a9b49aa11bbb1c>
- other: <https://git.kernel.org/stable/c/9e80f366ebfdfafc685fe83a84c34f7ef01cbe88>
- other: <https://git.kernel.org/stable/c/f521c2a0c0c4585f36d912bf62c852b88682c4f2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50203>

HTML: <https://flawdb.com/CVE-2024-50203> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50203>
