CVE-2022-24958 Use after free in n/a

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel USB gadget driver allows local attackers to execute arbitrary code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24958?

CVE-2022-24958 is a high-severity use after free vulnerability in Debian Debian Linux, published on 11 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

Weakness: CWE-763

Which versions are affected by CVE-2022-24958?

It affects 11 products.

Linux distribution packages (1)
kernel-source openSUSE:TumbleweedAll versions5.16.10-1.1

Products include Debian Debian Linux, Fedoraproject Fedora, Linux kernel, Netapp H300e Firmware, Netapp H300s Firmware, Netapp H410c Firmware and 5 more.

How do I fix CVE-2022-24958?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-24958 being exploited?

There is no known exploitation of CVE-2022-24958 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as A-220261709, ASB-A-220261709, AZL-8525, DEBIAN-CVE-2022-24958, GHSA-jqff-3935-jcw9, UBUNTU-CVE-2022-24958 and 1 more.

Is CVE-2022-24958 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free