CVE-2022-50330

crypto: cavium - prevent integer overflow loading firmware

MEDIUM
5.5
CVSS Score
Published: September 15, 2025 at 02:49 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.11 ≤ v < 4.14.2964.11 ≤ v < 4.19.2624.11 ≤ v < 5.10.1504.11 ≤ v < 5.15.754.11 ≤ v < 5.19.174.11 ≤ v < 5.4.2204.11 ≤ v < 6.0.34.11 ≤ v < 6.14.15 ≤ v < 4.19.2624.20 ≤ v < 5.4.2205.11 ≤ v < 5.15.755.16 ≤ v < 5.19.175.5 ≤ v < 5.10.1506.0 ≤ v < 6.0.34.119e2c7d99941d000a36f68a3594cec27a1bbea274
Vendor states this is fixed in 172c8a24fc8312cf6b88d3c88469653fdcb1c127 (fixed)
Vendor states this is fixed in 2526d6bf27d15054bb0778b2f7bc6625fd934905 (fixed)
Vendor states this is fixed in 371fa5129af53a79f6dddc90fe5bb0825cbe72a4 (fixed)
Vendor states this is fixed in 3a720eb89026c5241b8c4abb33370dc6fb565eee (fixed)
Vendor states this is fixed in 584561e94260268abe1c83e00d9c205565cb7bc5 (fixed)
Vendor states this is fixed in 90e483e7f20c32287d2a9da967e122938f52737a (fixed)
Vendor states this is fixed in c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d (fixed)
Vendor states this is fixed in e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9 (fixed)
Vendor states this is fixed in 4.11 (unaffected)
Vendor states this is fixed in 4.14.296 (unaffected)
Vendor states this is fixed in 4.19.262 (unaffected)
Vendor states this is fixed in 5.10.150 (unaffected)
Vendor states this is fixed in 5.15.75 (unaffected)
Vendor states this is fixed in 5.19.17 (unaffected)
Vendor states this is fixed in 5.4.220 (unaffected)
Vendor states this is fixed in 6.0.3 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/172c8a24fc8312cf6b88d3c88469653fdcb1c127
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2526d6bf27d15054bb0778b2f7bc6625fd934905
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/371fa5129af53a79f6dddc90fe5bb0825cbe72a4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3a720eb89026c5241b8c4abb33370dc6fb565eee
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/584561e94260268abe1c83e00d9c205565cb7bc5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/90e483e7f20c32287d2a9da967e122938f52737a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card