CVE-2022-50840
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50840 is a Use-After-Free (UAF) vulnerability in the Linux kernel's SCSI snic driver, specifically in the snic_tgt_create() function located in drivers/scsi/snic/snic_disc.c. When device_add() fails during target creation, the tgt structure is freed but its embedded list node (tgt->list) is not removed from snic->disc.tgt_list, leaving a dangling pointer that subsequent list traversals can dereference. The vulnerability was introduced with commit c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa (Linux kernel 4.2) and was publicly disclosed on December 30, 2025. It carries an estimated CVSS severity of Medium and an EPSS score of approximately 0.033% (Feedly, EUVD).

Technical details

The root cause is a missing list removal operation before freeing a kernel object, classified as CWE-416 (Use-After-Free). In snic_tgt_create(), if device_add() returns an error, the code frees the tgt structure via kfree() without first calling list_del() to remove &tgt->list from snic->disc.tgt_list. Any subsequent traversal of tgt_list (e.g., during target discovery or cleanup) will dereference the freed memory, potentially leading to kernel memory corruption. The fix, identified by the Smatch static analysis tool, is to call list_del() on &tgt->list before freeing tgt in the error path (Feedly, EUVD).

Impact

Successful exploitation of this UAF could allow a local attacker with access to the SCSI snic subsystem to cause kernel memory corruption, potentially leading to a kernel panic (denial of service) or, in more sophisticated scenarios, privilege escalation by manipulating freed kernel memory. The vulnerability is confined to systems using the Cisco SNIC (Software-defined Networking Interface Card) SCSI driver, limiting its scope to environments with that specific hardware or driver loaded. Confidentiality and integrity impacts depend on the attacker's ability to control the freed memory region before it is reused (Feedly).

Mitigation and workarounds

The Linux kernel maintainers have released patches across multiple stable branches. Fixed versions include: 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, and 6.2. Users should update their Linux kernel to one of these patched versions. As a workaround on systems that do not require the snic driver, administrators can blacklist the snic kernel module to prevent it from loading (echo 'blacklist snic' >> /etc/modprobe.d/blacklist.conf). SUSE has also issued a kernel security advisory addressing this vulnerability (Feedly, Linux Security).

Community reactions

The vulnerability received routine coverage from security scanning vendors including Tenable (Nessus plugin 281718) and Qualys, which added detection for it in their vulnerability management platforms. SUSE issued a kernel security advisory (SUSE-2026:0350-1) addressing this and related issues. No notable researcher commentary or significant social media discussion has been identified beyond standard vulnerability database entries (Tenable, Linux Security).

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-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 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