CVE-2022-40768
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-40768 is a vulnerability discovered in the Linux kernel through version 5.19.9, specifically in the Promise SuperTrak EX storage controller driver (drivers/scsi/stex.c). The vulnerability was discovered by Xingyuan Mo and Gengjia Chen of IceSword Lab, 360, and was reported on September 8, 2022. The flaw allows local users to obtain sensitive information from kernel memory due to improper handling of memory initialization (Ubuntu, NVD).

Technical details

The vulnerability exists in the stexqueuecommandlck() function within drivers/scsi/stex.c. The issue occurs because the function lacks proper memory initialization (memset) for the PASSTHRUCMD case. Specifically, when handling the PASSTHRUGETDRVVER command, a structure (struct stdrvver ver) is declared on the stack but not zeroed out before being copied back to user space, which can lead to information leakage (Openwall).

Impact

The vulnerability allows local users with access to the Promise SuperTrak EX storage controller to obtain sensitive information from kernel memory, potentially including kernel space addresses. This information disclosure could be leveraged by attackers to gather intelligence about the system's memory layout, potentially facilitating other attacks (Debian LTS).

Mitigation and workarounds

The vulnerability was patched in the Linux kernel with commit 6022f210461fef67e6e676fd8544ca02d1bcfa7a. The fix involves properly initializing the passthrough command structure by using static initialization to ensure all unused fields are automatically zeroed. Users should update their Linux kernel to a version containing this fix (Kernel Patch).

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-riscv
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt-addons
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • rtla
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