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

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:49:33.015Z
- Modified: 2026-08-05T08:58:14.226Z
- Weaknesses: CWE-190
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9e2c7d99941d000a36f68a3594cec27a1bbea274 before c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d; from 9e2c7d99941d000a36f68a3594cec27a1bbea274 before 90e483e7f20c32287d2a9da967e122938f52737a; from 9e2c7d99941d000a36f68a3594cec27a1bbea274 before 584561e94260268abe1c83e00d9c205565cb7bc5; from 9e2c7d99941d000a36f68a3594cec27a1bbea274 before 3a720eb89026c5241b8c4abb33370dc6fb565eee; from 9e2c7d99941d000a36f68a3594cec27a1bbea274 before 172c8a24fc8312cf6b88d3c88469653fdcb1c127; from 9e2c7d99941d000a36f68a3594cec27a1bbea274 before 371fa5129af53a79f6dddc90fe5bb0825cbe72a4; from 9e2c7d99941d000a36f68a3594cec27a1bbea274 before e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9; from 9e2c7d99941d000a36f68a3594cec27a1bbea274 before 2526d6bf27d15054bb0778b2f7bc6625fd934905; 4.11 (not affected: before 4.11; from 4.14.296 up to 4.14.*; from 4.19.262 up to 4.19.*; from 5.4.220 up to 5.4.*; from 5.10.150 up to 5.10.*; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 4.11 before 4.14.296; from 4.15 before 4.19.262; from 4.20 before 5.4.220; from 5.5 before 5.10.150; from 5.11 before 5.15.75; from 5.16 before 5.19.17; from 6.0 before 6.0.3

## Every score

- Linux: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d> (patch)
- <https://git.kernel.org/stable/c/90e483e7f20c32287d2a9da967e122938f52737a> (patch)
- <https://git.kernel.org/stable/c/584561e94260268abe1c83e00d9c205565cb7bc5> (patch)
- <https://git.kernel.org/stable/c/3a720eb89026c5241b8c4abb33370dc6fb565eee> (patch)
- <https://git.kernel.org/stable/c/172c8a24fc8312cf6b88d3c88469653fdcb1c127> (patch)
- <https://git.kernel.org/stable/c/371fa5129af53a79f6dddc90fe5bb0825cbe72a4> (patch)
- <https://git.kernel.org/stable/c/e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9> (patch)
- <https://git.kernel.org/stable/c/2526d6bf27d15054bb0778b2f7bc6625fd934905> (patch)

## Sources

- CVE List: [CVE-2022-50330](https://www.cve.org/CVERecord?id=CVE-2022-50330), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-50330](https://nvd.nist.gov/vuln/detail/CVE-2022-50330), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-50330 · Whole record: https://cve.day/CVE-2022-50330.json · Rebuilt by cve.day 2026-11-25T22:58:21.167Z
