What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.296, 4.19.262, 5.10.150, 5.15.75. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50330 or the next vulnerability affects your stack