CVE-2025-21683
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-doc
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-abi-stablelists
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management