CVE-2022-25258 Null dereference in n/a

Medium 4.6 Published Updated

A null pointer dereference in the Linux kernel USB gadget subsystem allows attackers to cause memory corruption, potentially leading to code execution or denial of service.

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

What is CVE-2022-25258?

CVE-2022-25258 is a medium-severity vulnerability in Debian Debian Linux, published on 16 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-476

Which versions are affected by CVE-2022-25258?

It affects 9 products.

Products include Debian Debian Linux, Fedoraproject Fedora, Linux kernel, Netapp Active Iq Unified Manager, Netapp H300s Firmware, Netapp H410c Firmware and 3 more.

How do I fix CVE-2022-25258?

Apply the vendor's patch.

Is CVE-2022-25258 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

All Debian Debian Linux vulnerabilities

Sources

Also known as A-222023189, ASB-A-222023189, AZL-8655, DEBIAN-CVE-2022-25258, GHSA-5c8p-jxw7-78rv, UBUNTU-CVE-2022-25258.

Is CVE-2022-25258 in your software?

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

Check your SBOMs for free