CVE-2024-50063
bpf: Prevent tail call between progs attached to different hooks
Mitigation
- Upgrade Linux to 28ead3eaabc16ecc907cfb71876da028080f6356 or later.
Who should check
- Anyone running Linux >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < d9a807fb7cbfad4328824186e2e4bee28f72169b; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 28ead3eaabc16ecc907cfb71876da028080f6356
- Anyone running Linux 5.5
Vulnerability facts
- Affected
- Linux >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < d9a807fb7cbfad4328824186e2e4bee28f72169b; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 28ead3eaabc16ecc907cfb71876da028080f6356; Linux 5.5
- Fixed in
- Linux 5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1, Linux 88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1, Linux 28ead3eaabc16ecc907cfb71876da028080f6356
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.33% chance of exploitation in 30 days (percentile 18, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < d9a807fb7cbfad4328824186e2e4bee28f72169b; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 5d5e3b4cbe8ee16b7bf96fd73a421c92a9da3ca1; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 88c2a10e6c176c2860cd0659f4c0e9d20b3f64d1; >= f1b9509c2fb0ef4db8d22dac9aef8e856a5d81f6, < 28ead3eaabc16ecc907cfb71876da028080f6356 | — | cvelist |
| Linux | 5.5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
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.