Skip to content
Fencer Vulns
high 7.8

CVE-2022-24958 json

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

published 2022-02-11 4 y ago modified 2026-09-11 58 d ago also EUVD-2022-29710

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

Summary

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

Patch / fix

  • linux linux_kernel 4.9.305, 4.14.270, 4.19.233, 5.4.183, 5.10.104, 5.15.27, 5.16.13
  • linux Debian 14, Debian 13, Debian 12 5.16.14-1

debian advisories DEBIAN-CVE-2022-24958

  • linux Ubuntu 18.04 LTS 4.15.0-177.186
  • linux Ubuntu 20.04 LTS 5.4.0-117.132
  • linux-aws Ubuntu 18.04 LTS 4.15.0-1128.137
  • linux-aws Ubuntu 20.04 LTS 5.4.0-1078.84
  • linux-gcp Ubuntu 20.04 LTS 5.4.0-1078.84
  • linux-gke Ubuntu 20.04 LTS 5.4.0-1074.79
  • linux-ibm Ubuntu 20.04 LTS 5.4.0-1026.29
  • linux-iot Ubuntu 20.04 LTS 5.4.0-1004.6

ubuntu advisories UBUNTU-CVE-2022-24958

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

  • kernel-source openSUSE Tumbleweed 5.16.10-1.1
  • kernel-source openSUSE Tumbleweed 6.6.17-1.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

opensuse advisories openSUSE-SU-2024:11857-1openSUSE-SU-2024:13704-1openSUSE-SU-2022:1039-1openSUSE-SU-2022:1037-1

  • kernel CBL-Mariner 2.0 5.15.32.1-2

azure linux advisories AZL-8525

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-24958 updated cvss 6.2

kernel: use-after-free in dev->buf release in drivers/usb/gadget/legacy/inode.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 Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more
    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.41% chance of exploitation in the next 30 days, higher than 35% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

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

Classification

Weakness
  • CWE-763 Release of Invalid Pointer or Reference
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.