CVE-2022-48938 CDC-NCM: avoid overflow in sanity checking

Medium 5.5 Published Updated

A broken USB device can trigger an integer overflow in the Linux kernel CDC-NCM driver, potentially causing a denial of service.

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-48938?

CVE-2022-48938 is a medium-severity vulnerability in Linux kernel, published on 22 Aug 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:

CDC-NCM: avoid overflow in sanity checking

A broken device may give an extreme offset like 0xFFF0 and a reasonable length for a fragment. In the sanity check as formulated now, this will create an integer overflow, defeating the sanity check. Both offset and offset + len need to be checked in such a manner that no overflow can occur. And those quantities should be unsigned.

Weakness: CWE-190

Which versions are affected by CVE-2022-48938?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-48938?

Apply the vendor's patch.

Is CVE-2022-48938 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-48938, GHSA-33fw-34vg-hgjh, UBUNTU-CVE-2022-48938.

Is CVE-2022-48938 in your software?

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

Check your SBOMs for free