CVE-2022-49209
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-49209 affects the Linux kernel's BPF (Berkeley Packet Filter) subsystem, specifically in the sockmap functionality. The vulnerability was discovered in the tcp_bpf_sendmsg function where a memory leak occurs when the socket message (sk_msg) is full. When sk_msg_alloc() returns -ENOMEM error and tcp_bpf_sendmsg() goes to wait_for_memory, if partial memory has been allocated by sk_msg_alloc(), a memory leak occurs when msg_tx->sg.size is greater than osize after sk_msg_alloc() (Kernel Git).

Technical details

The vulnerability exists in the sk_msg_alloc() function where memory allocation for socket messages is handled. When the socket message buffer is full and memory allocation fails with -ENOMEM, the code path fails to properly clean up partially allocated memory before going into wait_for_memory state. This issue affects other call paths of sk_msg_alloc() as well, such as tls_sw_sendmsg(). The fix involves using sk_msg_trim() to release the allocated memory before going to wait for memory state (Kernel Git).

Impact

The memory leak can lead to resource exhaustion over time, potentially affecting system stability and performance. The issue manifests through kernel warnings and can be triggered during socket operations, particularly when the system is under memory pressure (Kernel Git).

Exploitability

The vulnerability can be triggered during normal operation of BPF sockmap functionality when the system is under memory pressure. It requires the ability to interact with the kernel's networking stack using BPF programs. The issue has been observed in real-world scenarios, as evidenced by kernel warnings and stack traces (Kernel Git).

Mitigation and workarounds

The issue has been fixed in the Linux kernel by adding proper memory cleanup using sk_msg_trim() in the sk_msg_alloc() function. The fix ensures that any partially allocated memory is properly released before entering the wait_for_memory state. Users should update to a patched kernel version that includes the fix (Kernel Git).

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-64597CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux-aws-5.4
NoYesAug 06, 2026
CVE-2026-68480HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel-modules-partner
NoYesAug 06, 2026
CVE-2026-64598HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.8
NoYesAug 06, 2026
CVE-2026-64604HIGH7.7
  • Linux Kernel logoLinux Kernel
  • linux-riscv-5.15
NoYesAug 06, 2026
CVE-2026-64603NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-intel-iotg-5.15
NoYesAug 06, 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