cve.bz

CVE-2022-24958 Release of Invalid Pointer or Reference

7.8 highEPSS 0.4%Fix available

High (7.8). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
drivers/usb/gadget/legacy/inode.c in the Linux kernel through 5.16.8 mishandles dev->buf release.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 36th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-763 Release of Invalid Pointer or Reference
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-24958 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-24958?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-24958?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-24958 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.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelbefore 4.9.305
linux:linux_kernelfrom 4.10 before 4.14.270
linux:linux_kernelfrom 4.15 before 4.19.233
linux:linux_kernelfrom 4.20 before 5.4.183
linux:linux_kernelfrom 5.5 before 5.10.104
linux:linux_kernelfrom 5.11 before 5.15.27
linux:linux_kernelfrom 5.16 before 5.16.13
fedoraproject:fedora34
fedoraproject:fedora35
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9linux4.9.320-2DLA-3065-1
Debian12, 13, 14linux5.16.14-1DEBIAN-CVE-2022-24958
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-24958
Ubuntu18.04:LTSlinux4.15.0-177.186UBUNTU-CVE-2022-24958 USN-5418-1
Ubuntu18.04:LTSlinux-aws4.15.0-1128.137UBUNTU-CVE-2022-24958 USN-5418-1
Ubuntu18.04:LTSlinux-aws-5.4, linux-gcp-5.45.4.0-1078.84~18.04.1UBUNTU-CVE-2022-24958 USN-5467-1
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1138.151UBUNTU-CVE-2022-24958 USN-5418-1
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1083.87~18.04.1UBUNTU-CVE-2022-24958 USN-5467-1
Ubuntu18.04:LTSlinux-dell300x4.15.0-1042.47UBUNTU-CVE-2022-24958 USN-5418-1
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2022-24958
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1122.136UBUNTU-CVE-2022-24958 USN-5418-1
Ubuntu18.04:LTSlinux-gke-5.45.4.0-1074.79~18.04.1UBUNTU-CVE-2022-24958 USN-5467-1
Ubuntu18.04:LTSlinux-gkeop-5.45.4.0-1046.48~18.04.1UBUNTU-CVE-2022-24958 USN-5467-1
Ubuntu18.04:LTSlinux-hwe-5.45.4.0-117.132~18.04.1UBUNTU-CVE-2022-24958 USN-5467-1
53 more for Ubuntu in the JSON and on Ubuntu's page.
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 morekernel-default-base5.3.18-24.107.1.9.50.2SUSE-SU-2022:0759-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-24.107.1SUSE-SU-2022:0759-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2, Linux Enterprise Micro 5.0kernel-default5.3.18-24.107.1SUSE-SU-2022:0759-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Micro 5.1 and 1 morekernel-default5.3.18-150300.59.60.4SUSE-SU-2022:1039-1
SUSELinux Enterprise Live Patching 15 SP2kernel-livepatch-SLE15-SP2_Update_251-5.5.1SUSE-SU-2022:0759-1
SUSELinux Enterprise Live Patching 15 SP3kernel-livepatch-SLE15-SP3_Update_161-150300.7.5.3SUSE-SU-2022:1039-1
SUSELinux Enterprise Micro 5.0kernel-rt5.3.18-150200.79.2SUSE-SU-2022:1257-1
SUSELinux Enterprise Micro 5.1kernel-rt5.3.18-150300.82.1SUSE-SU-2022:1038-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3kernel-default-base5.3.18-150300.59.60.4.150300.18.37.5SUSE-SU-2022:1039-1
SUSELinux Enterprise Module for Basesystem 15 SP3kernel-64kb, kernel-source, kernel-default and 2 more5.3.18-150300.59.60.4SUSE-SU-2022:1039-1
SUSELinux Enterprise Module for Development Tools 15 SP3kernel-docs, kernel-syms, kernel-source and 2 more5.3.18-150300.59.60.4SUSE-SU-2022:1039-1
SUSELinux Enterprise Module for Public Cloud 15 SP3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-150300.38.50.1SUSE-SU-2022:1037-1
5 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.60.4openSUSE-SU-2022:1039-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-150300.38.50.1openSUSE-SU-2022:1037-1
openSUSELeap 15.3kernel-default-base5.3.18-150300.59.60.4.150300.18.37.5openSUSE-SU-2022:1039-1
openSUSETumbleweedkernel-source5.16.10-1.1openSUSE-SU-2024:11857-1
openSUSETumbleweedkernel-source6.6.17-1.1openSUSE-SU-2024:13704-1
Azure Linux2kernel5.15.32.1-2AZL-8525

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 statement

There was no shipped kernel version that was seen affected by this problem. These files are not built in our source code.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
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-24958.

References

Check your stackJSON