cve.bz

CVE-2022-40768 Use of Uninitialized Resource

5.5 mediumEPSS 0.3%Fix available

Medium (5.5). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
drivers/scsi/stex.c in the Linux kernel through 5.19.9 allows local users to obtain sensitive information from kernel memory because stex_queuecommand_lck lacks a memset for the PASSTHRU_CMD case.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 23rd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-908 Use of Uninitialized Resource
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-40768 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-40768?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-40768?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-40768 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2022-40768

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2022-40768](https://cve.bz/cve/badge/CVE-2022-40768.svg)](https://cve.bz/cve/CVE-2022-40768)

HTML:

<a href="https://cve.bz/cve/CVE-2022-40768"><img src="https://cve.bz/cve/badge/CVE-2022-40768.svg" alt="CVE-2022-40768"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelthrough 5.19.9
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux4.19.269-1DLA-3245-1
Debian12, 13, 14linux6.0.2-1DEBIAN-CVE-2022-40768
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-40768
Ubuntu18.04:LTSlinux4.15.0-197.208UBUNTU-CVE-2022-40768 USN-5727-1
Ubuntu18.04:LTSlinux-aws4.15.0-1143.155UBUNTU-CVE-2022-40768 USN-5727-1
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1089.97~18.04.1UBUNTU-CVE-2022-40768 USN-5728-1
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1157.172UBUNTU-CVE-2022-40768 USN-5774-1
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1095.101~18.04.1UBUNTU-CVE-2022-40768 USN-5728-1
Ubuntu18.04:LTSlinux-dell300x4.15.0-1055.60UBUNTU-CVE-2022-40768 USN-5727-1
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2022-40768
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1138.154UBUNTU-CVE-2022-40768 USN-5727-2
Ubuntu18.04:LTSlinux-gcp-5.45.4.0-1093.102~18.04.1UBUNTU-CVE-2022-40768 USN-5728-3
Ubuntu18.04:LTSlinux-hwe-5.45.4.0-132.148~18.04.1UBUNTU-CVE-2022-40768 USN-5728-1
Ubuntu18.04:LTSlinux-ibm-5.45.4.0-1037.42~18.04.1UBUNTU-CVE-2022-40768 USN-5728-1
70 more for Ubuntu in the JSON and on Ubuntu's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 2 morekernel-docs, kernel-syms, kernel-source and 2 more4.12.14-150100.197.131.1SUSE-SU-2022:4574-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 6 morekernel-default-base5.3.18-150200.24.139.1.150200.9.65.2SUSE-SU-2022:4589-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 3 morekernel-docs, kernel-syms, kernel-source and 3 more5.3.18-150200.24.139.1SUSE-SU-2022:4589-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Live Patching 12 SP4kernel-default4.12.14-95.114.1SUSE-SU-2022:4615-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.139.1SUSE-SU-2022:4272-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Live Patching 15kernel-default4.12.14-150000.150.109.1SUSE-SU-2022:4573-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1kernel-default4.12.14-150100.197.131.1SUSE-SU-2022:4574-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2kernel-default5.3.18-150200.24.139.1SUSE-SU-2022:4589-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 2 morekernel-default5.3.18-150300.59.98.1SUSE-SU-2022:3775-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 2 morekernel-default5.14.21-150400.24.33.2SUSE-SU-2022:4072-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server for SAP Applications 15kernel-docs, kernel-syms, kernel-source and 3 more4.12.14-150000.150.109.1SUSE-SU-2022:4573-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_321-6.3.1SUSE-SU-2022:4615-1
34 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3dtb-aarch64, kernel-64kb, kernel-docs and 9 more5.3.18-150300.59.98.1SUSE-SU-2022:3775-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-150300.38.83.1SUSE-SU-2022:3897-1
openSUSELeap 15.3, Leap 15.4kernel-debug, kernel-default, kernel-vanilla and 2 more4.12.14-150100.197.131.1SUSE-SU-2022:4574-1
openSUSELeap 15.3, Leap Micro 5.2kernel-default-base5.3.18-150300.59.98.1.150300.18.56.3SUSE-SU-2022:3775-1
openSUSELeap 15.4dtb-aarch645.3.18-150300.59.98.1SUSE-SU-2022:3775-1
openSUSELeap 15.4dtb-aarch64, kernel-syms, kernel-obs-qa and 2 more5.14.21-150400.24.33.1SUSE-SU-2022:4072-1
openSUSELeap 15.4kernel-64kb, kernel-docs, kernel-debug and 3 more5.14.21-150400.24.33.2SUSE-SU-2022:4072-1
openSUSELeap 15.4kernel-azure5.14.21-150400.14.21.2SUSE-SU-2022:3998-1
openSUSELeap 15.4kernel-default-base5.14.21-150400.24.33.2.150400.24.11.4SUSE-SU-2022:4072-1
openSUSELeap 15.4kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150400.15.5.1SUSE-SU-2022:4617-1
openSUSELeap 15.4kernel-syms-azure, kernel-source-azure5.14.21-150400.14.21.1SUSE-SU-2022:3998-1
openSUSELeap Micro 5.2kernel-default5.3.18-150300.59.98.1SUSE-SU-2022:3775-1
1 more for openSUSE in the JSON and on openSUSE's page.
Azure Linux2kernel5.15.82.1-1AZL-10978

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

To mitigate this issue, skip loading the affected module "stex" onto the system until we have a fix available. This can be done using a blacklist mechanism, which will ensure that the driver is not loaded at the boot time.

~~~

How do I blacklist a kernel module to prevent it from loading automatically?

https://access.redhat.com/solutions/41278

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-40768.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-166-11Siemens SIMATIC S7-1500 TM MFP Linux Kernel2023-06-13MultipleSIMATIC S7-1500 TM MFP - GNU/Linux subsystemnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON