crypto: cavium - prevent integer overflow loading firmware

Summary

CVECVE-2022-50330
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-09-15 15:15:45 UTC
Updated2026-08-04 10:18:11 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-190


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary5.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
3.1416baaa9-dc9f-4396-8d5f-8c081fb06d67Secondary7.1HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
3.1CNADECLARED7.1HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d git Not specified
CNA Linux Linux affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 90e483e7f20c32287d2a9da967e122938f52737a git Not specified
CNA Linux Linux affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 584561e94260268abe1c83e00d9c205565cb7bc5 git Not specified
CNA Linux Linux affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 3a720eb89026c5241b8c4abb33370dc6fb565eee git Not specified
CNA Linux Linux affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 172c8a24fc8312cf6b88d3c88469653fdcb1c127 git Not specified
CNA Linux Linux affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 371fa5129af53a79f6dddc90fe5bb0825cbe72a4 git Not specified
CNA Linux Linux affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9 git Not specified
CNA Linux Linux affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 2526d6bf27d15054bb0778b2f7bc6625fd934905 git Not specified
CNA Linux Linux affected 4.11 Not specified
CNA Linux Linux unaffected 4.11 semver Not specified
CNA Linux Linux unaffected 4.14.296 4.14.* semver Not specified
CNA Linux Linux unaffected 4.19.262 4.19.* semver Not specified
CNA Linux Linux unaffected 5.4.220 5.4.* semver Not specified
CNA Linux Linux unaffected 5.10.150 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.75 5.15.* semver Not specified
CNA Linux Linux unaffected 5.19.17 5.19.* semver Not specified
CNA Linux Linux unaffected 6.0.3 6.0.* semver Not specified
CNA Linux Linux unaffected 6.1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/371fa5129af53a79f6dddc90fe5bb0825cbe72a4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/584561e94260268abe1c83e00d9c205565cb7bc5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/90e483e7f20c32287d2a9da967e122938f52737a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/2526d6bf27d15054bb0778b2f7bc6625fd934905 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/3a720eb89026c5241b8c4abb33370dc6fb565eee 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/172c8a24fc8312cf6b88d3c88469653fdcb1c127 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report