# CVE-2024-50063: bpf: Prevent tail call between progs attached to different hooks

> 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.33% (percentile 18, 2026-11-26)
- **Published:** 2024-10-21T19:39:51.718Z
- **Modified:** 2026-11-10T13:17:25.087Z

## Who should check

- Anyone running Linux \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< d9a807fb7cbfad4328824186e2e4bee28f72169b; \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< 5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1; \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< 88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1; \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< 28ead3eaabc16ecc907cfb71876da028080f6356
- Anyone running Linux 5.5

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Prevent tail call between progs attached to different hooks

bpf progs can be attached to kernel functions, and the attached functions
can take different parameters or return different return values. If
prog attached to one kernel function tail calls prog attached to another
kernel function, the ctx access or return value verification could be
bypassed.

For example, if prog1 is attached to func1 which takes only 1 parameter
and prog2 is attached to func2 which takes two parameters. Since verifier
assumes the bpf ctx passed to prog2 is constructed based on func2's
prototype, verifier allows prog2 to access the second parameter from
the bpf ctx passed to it. The problem is that verifier does not prevent
prog1 from passing its bpf ctx to prog2 via tail call. In this case,
the bpf ctx passed to prog2 is constructed from func1 instead of func2,
that is, the assumption for ctx access verification is bypassed.

Another example, if BPF LSM prog1 is attached to hook file\_alloc\_security,
and BPF LSM prog2 is attached to hook bpf\_lsm\_audit\_rule\_known. Verifier
knows the return value rules for these two hooks, e.g. it is legal for
bpf\_lsm\_audit\_rule\_known to return positive number 1, and it is illegal
for file\_alloc\_security to return positive number. So verifier allows
prog2 to return positive number 1, but does not allow prog1 to return
positive number. The problem is that verifier does not prevent prog1
from calling prog2 via tail call. In this case, prog2's return value 1
will be used as the return value for prog1's hook file\_alloc\_security.
That is, the return value rule is bypassed.

This patch adds restriction for tail call to prevent such bypasses.

## Affected and fixed versions

- Linux: \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< d9a807fb7cbfad4328824186e2e4bee28f72169b; \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< 5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1; \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< 88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1; \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< 28ead3eaabc16ecc907cfb71876da028080f6356 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 28ead3eaabc16ecc907cfb71876da028080f6356 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-50063. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50063.md
Affected: Linux >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < d9a807fb7cbfad4328824186e2e4bee28f72169b; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1; >= f1b9509c2fb0ef4db8d22da…
Fixed in: Linux 5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1, Linux 88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1, Linux 28ead3eaabc16ecc907cfb71876da028080f6356

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-50063 being exploited?

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

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

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

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

Linux \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< d9a807fb7cbfad4328824186e2e4bee28f72169b; \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< 5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1; \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< 88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1; \>= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, \< 28ead3eaabc16ecc907cfb71876da028080f6356; Linux 5.5.

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

Yes. Fixed in Linux 5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1, Linux 88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1, Linux 28ead3eaabc16ecc907cfb71876da028080f6356. Upgrade Linux to 28ead3eaabc16ecc907cfb71876da028080f6356 or later.

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

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/d9a807fb7cbfad4328824186e2e4bee28f72169b>
- patch: <https://git.kernel.org/stable/c/5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1>
- patch: <https://git.kernel.org/stable/c/88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1>
- patch: <https://git.kernel.org/stable/c/28ead3eaabc16ecc907cfb71876da028080f6356>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

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

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