cve.bz

CVE-2022-25258 NULL Pointer Dereference

4.6 mediumEPSS 0.9%Fix available

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

On this page
An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10. The USB Gadget subsystem lacks certain validation of interface OS descriptor requests (ones with a large array index and ones associated with NULL function pointer retrieval). Memory corruption might occur.

Severity

CVSS 3.1

4.6 medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 61st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
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-25258 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-25258?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-25258?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-25258 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 5.16.10
fedoraproject:fedora35
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9linux4.9.303-1DLA-2940-1
Debian9linux-4.194.19.232-1~deb9u1DLA-2941-1
Debian10linux4.19.232-1DSA-5096-1
Debian11linux5.10.92-2DSA-5092-1
Debian12, 13, 14linux5.16.10-1DEBIAN-CVE-2022-25258
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-25258
Ubuntu18.04:LTSlinux4.15.0-177.186UBUNTU-CVE-2022-25258 USN-5418-1
Ubuntu18.04:LTSlinux-aws4.15.0-1128.137UBUNTU-CVE-2022-25258 USN-5418-1
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1075.80~18.04.1UBUNTU-CVE-2022-25258
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1138.151UBUNTU-CVE-2022-25258 USN-5418-1
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1078.81~18.04.1UBUNTU-CVE-2022-25258 USN-5415-1
Ubuntu18.04:LTSlinux-dell300x4.15.0-1042.47UBUNTU-CVE-2022-25258 USN-5418-1
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2022-25258
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1122.136UBUNTU-CVE-2022-25258 USN-5418-1
Ubuntu18.04:LTSlinux-gcp-5.45.4.0-1073.78~18.04.1UBUNTU-CVE-2022-25258 USN-5415-1
Ubuntu18.04:LTSlinux-gke-5.45.4.0-1071.76~18.04.3UBUNTU-CVE-2022-25258
Ubuntu18.04:LTSlinux-gkeop-5.45.4.0-1040.41~18.04.1UBUNTU-CVE-2022-25258 USN-5415-1
51 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
Azure Linux2kernel5.15.26.1-1AZL-8655

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.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

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 Virtualization 4kernelNot 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-25258.

References

Check your stackJSON