CVE-2024-47794
bpf: Prevent tailcall infinite loop caused by freplace
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= be8704ff07d2374bcc5c675526f95e70c6459683, < 272f92998cbec9e12fea8ef28f48d6b1bc625a34; >= be8704ff07d2374bcc5c675526f95e70c6459683, < f8ba0d22afa613b280fc40fcf6ae99f73c7b36e6; >= be8704ff07d2374bcc5c675526f95e70c6459683, < 987aa730bad3e1ef66d9f30182294daa78f6387d; >= be8704ff07d2374bcc5c675526f95e70c6459683, < d6083f040d5d8f8d748462c77e90547097df936e
- Anyone running Linux 5.6
Vulnerability facts
- Affected
- Linux >= be8704ff07d2374bcc5c675526f95e70c6459683, < 272f92998cbec9e12fea8ef28f48d6b1bc625a34; >= be8704ff07d2374bcc5c675526f95e70c6459683, < f8ba0d22afa613b280fc40fcf6ae99f73c7b36e6; >= be8704ff07d2374bcc5c675526f95e70c6459683, < 987aa730bad3e1ef66d9f30182294daa78f6387d; >= be8704ff07d2374bcc5c675526f95e70c6459683, < d6083f040d5d8f8d748462c77e90547097df936e; Linux 5.6
- Fixed in
- Linux 272f92998cbec9e12fea8ef28f48d6b1bc625a34, Linux 987aa730bad3e1ef66d9f30182294daa78f6387d
- 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.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-835
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Prevent tailcall infinite loop caused by freplace There is a potential infinite loop issue that can occur when using a combination of tail calls and freplace. In an upcoming selftest, the attach target for entry_freplace of tailcall_freplace.c is subprog_tc of tc_bpf2bpf.c, while the tail call in entry_freplace leads to entry_tc. This results in an infinite loop: entry_tc -> subprog_tc -> entry_freplace --tailcall-> entry_tc. The problem arises because the tail_call_cnt in entry_freplace resets to zero each time entry_freplace is executed, causing the tail call mechanism to never terminate, eventually leading to a kernel panic. To fix this issue, the solution is twofold: 1. Prevent updating a program extended by an freplace program to a prog_array map. 2. Prevent extending a program that is already part of a prog_array map with an freplace program. This ensures that: * If a program or its subprogram has been extended by an freplace program, it can no longer be updated to a prog_array map. * If a program has been added to a prog_array map, neither it nor its subprograms can be extended by an freplace program. Moreover, an extension program should not be tailcalled. As such, return -EINVAL if the program has a type of BPF_PROG_TYPE_EXT when adding it to a prog_array map. Additionally, fix a minor code style issue by replacing eight spaces with a tab for proper formatting.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= be8704ff07d2374bcc5c675526f95e70c6459683, < 272f92998cbec9e12fea8ef28f48d6b1bc625a34; >= be8704ff07d2374bcc5c675526f95e70c6459683, < f8ba0d22afa613b280fc40fcf6ae99f73c7b36e6; >= be8704ff07d2374bcc5c675526f95e70c6459683, < 987aa730bad3e1ef66d9f30182294daa78f6387d; >= be8704ff07d2374bcc5c675526f95e70c6459683, < d6083f040d5d8f8d748462c77e90547097df936e | — | cvelist |
| Linux | 5.6 | — | 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-47794. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-47794.md Affected: Linux >= be8704ff07d2374bcc5c675526f95e70c6459683, < 272f92998cbec9e12fea8ef28f48d6b1bc625a34; >= be8704ff07d2374bcc5c675526f95e70c6459683, < f8ba0d22afa613b280fc40fcf6ae99f73c7b36e6; >= be8704ff07d2374bcc5c675526f95e70c6459683, < 987aa730bad3e1ef66d9f30182294daa78f6387d; >= be8704ff07d2374bcc5c675… Fixed in: Linux 272f92998cbec9e12fea8ef28f48d6b1bc625a34, Linux 987aa730bad3e1ef66d9f30182294daa78f6387d 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-47794 being exploited?
There is no confirmed exploitation: CVE-2024-47794 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-47794?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-47794?
Linux >= be8704ff07d2374bcc5c675526f95e70c6459683, < 272f92998cbec9e12fea8ef28f48d6b1bc625a34; >= be8704ff07d2374bcc5c675526f95e70c6459683, < f8ba0d22afa613b280fc40fcf6ae99f73c7b36e6; >= be8704ff07d2374bcc5c675526f95e70c6459683, < 987aa730bad3e1ef66d9f30182294daa78f6387d; >= be8704ff07d2374bcc5c675526f95e70c6459683, < d6083f040d5d8f8d748462c77e90547097df936e; Linux 5.6.
Is there a fix for CVE-2024-47794?
Yes. Fixed in Linux 272f92998cbec9e12fea8ef28f48d6b1bc625a34, Linux 987aa730bad3e1ef66d9f30182294daa78f6387d. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-47794?
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.