CVE-2022-50409
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50409 is a vulnerability in the Linux kernel that was discovered and disclosed in September 2025. The vulnerability involves a NULL pointer dereference issue in the networking subsystem, specifically when accessing a socket's wait queue (skwq) in the skstreamwaitmemory function after the socket has been closed (NVD).

Technical details

The vulnerability occurs due to a race condition between two threads where thread1 waits for memory while thread2 closes the socket. The issue arises because tcpbpfsendverdict doesn't increase the fcount of psock->skredir->sksocket->file in thread1. When the socket is released with its wait queue because thread2 has closed it, attempting to access the wait queue results in a NULL pointer dereference (NVD).

Impact

The vulnerability can lead to a NULL pointer dereference in the Linux kernel, which typically results in a system crash or denial of service condition. This affects the stability and availability of systems running vulnerable kernel versions (NVD).

Mitigation and workarounds

The fix involves checking if the SOCKDEAD flag is set on wakeup in skstreamwaitmemory before accessing the wait queue. This prevents the NULL pointer dereference by ensuring the socket is still valid before attempting to access its wait queue (NVD).

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-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-iot
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-devel-matched
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-hwe
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesDec 09, 2025

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