
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-21683 is a memory leak vulnerability discovered in the Linux kernel's BPF (Berkeley Packet Filter) subsystem, specifically in the bpf_sk_select_reuseport() function. The vulnerability was disclosed on January 31, 2025, affecting Linux kernel versions from 5.8 through 6.13-rc7. The issue occurs when a TCP ESTABLISHED socket is returned from a sockmap lookup, where the socket may have had SO_ATTACH_REUSEPORT_EBPF set before it was ESTABLISHED (NVD).
The vulnerability stems from improper memory management in the bpf_sk_select_reuseport() function. When a non-NULL sk_reuseport_cb is encountered, it doesn't necessarily imply a non-refcounted socket, leading to a memory leak in certain error paths. The issue has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating local access required with low attack complexity (NVD).
The vulnerability results in a memory leak of size 2048 bytes, which could lead to resource exhaustion over time. The issue primarily affects system availability, with no direct impact on confidentiality or integrity. For Red Hat Enterprise Linux systems, the impact is mitigated by default configurations that prevent unprivileged users from using eBPF (Red Hat).
The vulnerability has been patched in multiple Linux kernel versions. The fix involves properly dropping socket references in both error paths. For systems that cannot immediately apply the patch, ensuring the kernel.unprivileged_bpf_disabled sysctl is set to 1 provides mitigation. This can be verified using the command: cat /proc/sys/kernel/unprivileged_bpf_disabled (Red Hat).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."