CVE-2023-53221 Details
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix memleak due to fentry attach failure If it fails to attach fentry, the allocated bpf trampoline image will be left in the system. That can be verified by checking /proc/kallsyms. This meamleak can be verified by a simple bpf program as follows: SEC("fentry/trap_init") int fentry_run() { return 0; } It will fail to attach trap_init because this function is freed after kernel init, and then we can find the trampoline image is left in the system by checking /proc/kallsyms. $ tail /proc/kallsyms ffffffffc0613000 t bpf_trampoline_6442453466_1 [bpf] ffffffffc06c3000 t bpf_trampoline_6442453466_1 [bpf] $ bpftool btf dump file /sys/kernel/btf/vmlinux | grep "FUNC 'trap_init'" [2522] FUNC 'trap_init' type_id=119 linkage=static $ echo $((6442453466 & 0x7fffffff)) 2522 Note that there are two left bpf trampoline images, that is because the libbpf will fallback to raw tracepoint if -EINVAL is returned.
A memory leak vulnerability has been identified in the Linux kernel's BPF (Berkeley Packet Filter) subsystem. This issue arises when the fentry (function entry) attachment process fails, leaving the allocated BPF trampoline image in the system. The vulnerability can be verified by checking the /proc/kallsyms file, which will show the leftover trampoline images. This memory leak occurs because the fentry attachment fails for certain functions that are no longer available, such as 'trap_init', after the kernel initialization phase. The issue has been addressed in a recent commit.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed.
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.
CISA-ADP
Assessed Jan 14, 2026References 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/108598c39eefbedc9882273ac0df96127a629220 | kernel.org | Patch |
| https://git.kernel.org/stable/c/20109ddd5bea2c24d790debf5d02584ef24c3f5e | kernel.org | Patch |
| https://git.kernel.org/stable/c/6aa27775db63ba8c7c73891c7dfb71ddc230c48d | kernel.org | Patch |
| https://git.kernel.org/stable/c/f72c67d1a82dada7d6d504c806e111e913721a30 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
| CWE-401 | Missing Release of Memory after Effective Lifetime | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.10.28, < 5.11 >= 5.11.11, < 5.12 >= 5.12.1, < 6.1.39 >= 6.2, < 6.3.13 >= 6.4, < 6.4.4 5.12 - 5.12 rc5 5.12 rc6 5.12 rc7 5.12 rc8 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 14, 2026 | CVE Modified | CISA-ADP |
| Dec 3, 2025 | Initial Analysis | [email protected] |
| Sep 15, 2025 | New CVE Received | kernel.org |