Skip to content
Fencer Vulns
medium 4.6

CVE-2022-25258 json

An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10.

published 2022-02-16 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-29955

cvss
4.6
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.9%
EPSS 0.9% chance of exploitation in 30 days, percentile 60%
public exploits
0
none known

Summary

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.

Patch / fix

  • linux linux_kernel 5.16.10
  • linux Debian 14, Debian 13, Debian 12 5.16.10-1

debian advisories DEBIAN-CVE-2022-25258

  • linux Ubuntu 18.04 LTS 4.15.0-177.186
  • linux Ubuntu 20.04 LTS 5.4.0-110.124
  • linux-aws Ubuntu 18.04 LTS 4.15.0-1128.137
  • linux-aws Ubuntu 20.04 LTS 5.4.0-1073.78
  • linux-gcp Ubuntu 20.04 LTS 5.4.0-1073.78
  • linux-gke Ubuntu 20.04 LTS 5.4.0-1071.76
  • linux-ibm Ubuntu 20.04 LTS 5.4.0-1021.23
  • linux-iot Ubuntu 20.04 LTS 5.4.0-1004.6

ubuntu advisories UBUNTU-CVE-2022-25258

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel-rt SLE Micro 5.0, Real Time Module 15 SP2 5.3.18-150200.79.2
  • kernel-syms-rt Real Time Module 15 SP2 5.3.18-150200.79.1
  • kernel-rt_debug Real Time Module 15 SP2 5.3.18-150200.79.2
  • kernel-source-rt Real Time Module 15 SP2 5.3.18-150200.79.2
  • kernel-64kb SLE Module for Basesystem 15 SP3 5.3.18-150300.59.60.4
  • kernel-syms SLE Module for Development Tools 15 SP3 5.3.18-150300.59.60.4
  • kernel-source SLE Module for Development Tools 15 SP3, SLE Module for Basesystem 15 SP3 5.3.18-150300.59.60.4
  • kernel-default SLE Workstation Extension 15 SP3, SLE Module for Legacy 15 SP3, SLE Module for Basesystem 15 SP3 +3 more 5.3.18-150300.59.60.4

suse advisories SUSE-SU-2022:1257-1SUSE-SU-2022:1039-1SUSE-SU-2022:1038-1SUSE-SU-2022:1037-1SUSE-SU-2022:0759-1

  • dtb-aarch64 openSUSE Leap 15.3 5.3.18-150300.59.60.4
  • kernel-64kb openSUSE Leap 15.3 5.3.18-150300.59.60.4
  • kernel-syms openSUSE Leap 15.3 5.3.18-150300.59.60.4
  • kernel-obs-qa openSUSE Leap 15.3 5.3.18-150300.59.60.4
  • kernel-source openSUSE Leap 15.3 5.3.18-150300.59.60.4
  • kernel-default openSUSE Leap 15.3 5.3.18-150300.59.60.4
  • kernel-preempt openSUSE Leap 15.3 5.3.18-150300.59.60.4
  • kernel-kvmsmall openSUSE Leap 15.3 5.3.18-150300.59.60.4

opensuse advisories openSUSE-SU-2022:1039-1openSUSE-SU-2022:1037-1

  • kernel CBL-Mariner 2.0 5.15.26.1-1

azure linux advisories AZL-8655

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-25258 updated cvss 4.6

kernel: security issues in the OS descriptor handling section of composite_setup function (composite.c)

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Virtualization 4 perf, python-perf
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.92% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 4.6 CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 2.0 4.9 AV:L/AC:L/Au:N/C:N/I:N/A:C

Classification

Weakness
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.