CVE-2022-50330 crypto: cavium - prevent integer overflow loading firmware

High 7.1 Published Updated

An integer overflow in the Cavium crypto driver allows attackers to cause a denial of service via a malicious firmware file.

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

CVE-2022-50330 is a high-severity vulnerability in Linux kernel, published on 15 Sep 2025. 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:

crypto: cavium - prevent integer overflow loading firmware

The "code_length" value comes from the firmware file. If your firmware is untrusted realistically there is probably very little you can do to protect yourself. Still we try to limit the damage as much as possible. Also Smatch marks any data read from the filesystem as untrusted and prints warnings if it not capped correctly.

The "ntohl(ucode->code_length) * 2" multiplication can have an integer overflow.

Weakness: CWE-190

Which versions are affected by CVE-2022-50330?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-50330?

Apply the vendor's patch.

Is CVE-2022-50330 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-50330, GHSA-w6rv-q4xv-mrf3, UBUNTU-CVE-2022-50330.

Is CVE-2022-50330 in your software?

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

Check your SBOMs for free