PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2022-49697: 
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49697 addresses a request_socket leak vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) socket lookup helpers. The issue was discovered in a Calico cloud environment where a BPF program performing socket lookup operations would take a reference count on the socket but fail to properly decrement the child request socket before returning the parent LISTEN socket via sk_to_full_sk(), resulting in a request_sock slab object leak (Kernel Git).

Technical details

The vulnerability occurs in the socket lookup process where the BPF program takes a reference count (refcnt) on the socket. When finding a request_socket, it returns the parent LISTEN socket through sk_to_full_sk() without first decrementing the child request socket's reference count. The fix involves modifying the behavior to retain returning full socks to the caller while ensuring proper decrementing of the child request_socket when present. The patch also includes validation of RCU flags on the listen socket to balance with bpf_sk_release() (Red Hat). The CVSS v3.1 base score for this vulnerability is 5.5, indicating moderate severity (Red Hat).

Impact

The vulnerability results in a memory leak of request_sock slab objects in the Linux kernel. This can lead to resource exhaustion over time as socket resources are not properly freed, potentially affecting system stability and performance in cloud environments using Calico (Kernel Git).

Exploitability

The vulnerability requires a specific BPF program configuration in a Calico cloud environment. It is triggered during socket lookup operations when handling request sockets and their parent LISTEN sockets. The issue is primarily a resource leak rather than a direct security exploit (NVD).

Mitigation and workarounds

The fix has been implemented in the Linux kernel through a patch that properly decrements the child request_socket reference count before returning the parent LISTEN socket. The patch also includes additional safety checks for RCU flags on the listen socket. System administrators should update to a patched version of the Linux kernel to prevent the memory leak (Kernel Git).

Additional resources


Source: This 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-99082HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesOct 23, 2026
CVE-2026-99081HIGH7.5
  • Linux Kernel logoLinux Kernel
  • linux-docs
NoYesOct 23, 2026
CVE-2026-99087NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesOct 23, 2026
CVE-2026-99086NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesOct 23, 2026
CVE-2026-99085NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoNoOct 23, 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