CVE-2022-50330 crypto: cavium - prevent integer overflow loading firmware
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.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50330, GHSA-w6rv-q4xv-mrf3, UBUNTU-CVE-2022-50330.