CVE-2022-50259
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50259 is a use-after-free vulnerability in the Linux kernel's BPF sockmap subsystem, specifically in the sock_map_free() function. The flaw occurs because sock_map_free() calls release_sock(sk) without owning a reference on the socket, creating a race condition that can lead to memory corruption. Affected kernel versions include 5.4.14–5.4.229, 5.5–5.10.163, 5.11–5.15.86, 5.16–6.0.16, and 6.1–6.1.2. It was publicly disclosed on September 15, 2025, and carries a CVSS v3.1 base score of 4.7 (Medium) (Red Hat Advisory, Red Hat Bugzilla).

Technical details

The root cause is a race condition (CWE-362) in net/core/sock_map.c where sock_map_free() invokes release_sock(sk) without holding a proper reference to the socket object. This mirrors a previously fixed issue in sock_hash_free(), addressed in commit 75e68e5bf2c7 ("bpf, sockhash: Synchronize delete from bucket list on map free"). The race can be triggered locally by a low-privileged user interacting with BPF sockmap operations, causing a refcount decrement to hit zero and triggering a kernel warning (refcount_t: decrement hit 0; leaking memory) as observed via syzbot fuzzing on kernel 6.1.0-rc7. The call trace implicates tcp_release_cb, release_sock, and sock_map_free within the bpf_map_free_deferred workqueue (Red Hat Bugzilla).

Impact

Successful exploitation can cause a denial of service by crashing or destabilizing kernel processes, with high availability impact. The vulnerability has no confidentiality or integrity impact, as the primary consequence is memory-related instability or kernel panic triggered by the use-after-free condition. Because exploitation requires local access with low privileges, the blast radius is limited to the affected host, but disruption of critical kernel networking services (sockmap/BPF) is possible (Red Hat Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Logs: Kernel log entries containing refcount_t: decrement hit 0; leaking memory or WARNING: CPU: ... at lib/refcount.c:31 refcount_warn_saturate associated with the bpf_map_free_deferred workqueue.
  • Process: Unusual kernel worker threads (kworker/u*) exhibiting abnormal behavior related to BPF map operations.
  • Logs: Kernel stack traces referencing sock_map_free, tcp_release_cb, or release_sock in dmesg or /var/log/kern.log (Red Hat Bugzilla).

Mitigation and workarounds

Apply the upstream kernel patches available for the affected stable branches: fixed in versions 5.4.229, 5.10.163, 5.15.86, 6.0.16, and 6.1.2. Patch commits are available in the Linux stable kernel repository. As a short-term workaround, restricting local user access to BPF sockmap functionality (e.g., via CAP_NET_ADMIN or seccomp policies) can reduce exposure. Regularly applying kernel security updates and monitoring kernel logs for refcount warnings is recommended (Red Hat Advisory, git.kernel.org).

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-2026-64192HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.8
NoYesJul 20, 2026
CVE-2026-64191HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux
NoYesJul 20, 2026
CVE-2026-64600HIGH7.1
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-kvm
NoYesJul 23, 2026
CVE-2026-64206MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-core
NoYesJul 20, 2026
CVE-2026-64205MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-debug-uki-virt-addons
NoNoJul 20, 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