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

Overview

CVE-2022-49205 affects the Linux kernel's BPF (Berkeley Packet Filter) sockmap functionality. The vulnerability was discovered in the tcp_bpf_sendmsg operation where a double uncharge of the memory of sk_msg occurs during tear down operations (Kernel Git).

Technical details

The issue occurs when tcp_bpf_sendmsg is running during a tear down operation, where psock may be freed. The execution flow goes through tcp_bpf_sendmsg() -> tcp_bpf_send_verdict() -> sk_msg_return() -> tcp_bpf_sendmsg_redir(), where the memory of msg is uncharged twice: once in tcp_bpf_send_verdict() by sk_msg_return(), and again by sk_msg_free() (Kernel Git).

Impact

The vulnerability can trigger a kernel warning when the memory is double-uncharged, potentially affecting system stability. This manifests as a warning message: 'WARNING: CPU: 0 PID: 2136 at net/ipv4/af_inet.c:155 inet_sock_destruct+0x13c/0x260' (Kernel Git).

Exploitability

The vulnerability is triggered during specific conditions when tcp_bpf_sendmsg is running during tear down operations. It requires access to BPF sockmap functionality and specific timing conditions to be met (NVD).

Mitigation and workarounds

The fix involves modifying the error handling in tcp_bpf_sendmsg_redir(). When psock is null, instead of calling sk_msg_free() and returning 0, the function now returns -EPIPE. This triggers sk_msg_free_nocharge in the error path of __SK_REDIRECT, preventing the double uncharge issue (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-99804MEDIUM5.1
  • Linux Kernel logoLinux Kernel
  • linux-aws-6.14
NoYesNov 20, 2026
CVE-2026-99799MEDIUM5.1
  • Linux Kernel logoLinux Kernel
  • linux-hwe-5.4
NoYesNov 20, 2026
CVE-2026-99797MEDIUM5.1
  • Linux Kernel logoLinux Kernel
  • linux-oracle
NoYesNov 20, 2026
CVE-2026-99796MEDIUM5.1
  • Linux Kernel logoLinux Kernel
  • kernel-kmap-internal
NoYesNov 20, 2026
CVE-2026-99798MEDIUM4.3
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoYesNov 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

Additional Wiz resources

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