Junglewise Threat Intelligence

CVE-2025-21683: Linux Kernel memory leak in bpf_sk_select_reuseport

CVE-2025-21683 · Severity: medium · CVSS 5.5 · Published 2025-01-31

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A memory leak vulnerability exists in the Linux kernel's networking component. This flaw occurs when the system handles specific types of network socket connections using BPF programs. A local attacker could exploit this to gradually consume system memory, potentially leading to a system crash or denial of service.

Technical details

A memory leak (CWE-401) exists in net/core/filter.c within the bpf_sk_select_reuseport() function. The vulnerability is caused by failing to drop a socket reference (sock_put) in certain error paths when a lookup in a sockmap returns a TCP ESTABLISHED socket. Specifically, if a socket has sk_reuseport_cb set but fails subsequent protocol or family checks, the reference count is not properly decremented. This allows a local user to exhaust kernel memory by repeatedly triggering these error paths. Patches have been released for various stable kernel branches including 5.15.177, 6.1.127, 6.6.74, and 6.12.11.

Affected products

  • Linux Linux Kernel 5.8 to 5.15.177, 5.16 to 6.1.127, 6.2 to 6.6.74, 6.7 to 6.12.11, 6.13-rc1 to 6.13-rc7

Timeline

  • 2025-01-10: patched: Initial patch submitted to kernel.org
  • 2025-01-31: disclosed: CVE-2025-21683 published

References

Related threats