CVE-2021-47495 usbnet: sanity check for maxpacket

Medium 5.5 Published Updated

A missing sanity check for maxpacket in the Linux kernel usbnet driver causes a division by zero, leading to a system crash.

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-2021-47495?

CVE-2021-47495 is a medium-severity vulnerability in Linux kernel, published on 22 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

usbnet: sanity check for maxpacket

maxpacket of 0 makes no sense and oopses as we need to divide by it. Give up.

V2: fixed typo in log and stylistic issues

Weakness: CWE-369

Which versions are affected by CVE-2021-47495?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47495?

Apply the vendor's patch.

Is CVE-2021-47495 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47495, GHSA-rj64-24f8-r32g, UBUNTU-CVE-2021-47495.

Is CVE-2021-47495 in your software?

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

Check your SBOMs for free