{"api_version":"1","generated_at":"2026-09-04T22:56:31+00:00","cve":"CVE-2022-50330","urls":{"html":"https://cve.report/CVE-2022-50330","api":"https://cve.report/api/cve/CVE-2022-50330.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-50330","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-50330"},"summary":{"title":"crypto: cavium - prevent integer overflow loading firmware","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: cavium - prevent integer overflow loading firmware\n\nThe \"code_length\" value comes from the firmware file.  If your firmware\nis untrusted realistically there is probably very little you can do to\nprotect yourself.  Still we try to limit the damage as much as possible.\nAlso Smatch marks any data read from the filesystem as untrusted and\nprints warnings if it not capped correctly.\n\nThe \"ntohl(ucode->code_length) * 2\" multiplication can have an\ninteger overflow.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-09-15 15:15:45","updated_at":"2026-08-04 10:18:11"},"problem_types":["CWE-190"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"5.5","severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","data":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/371fa5129af53a79f6dddc90fe5bb0825cbe72a4","name":"https://git.kernel.org/stable/c/371fa5129af53a79f6dddc90fe5bb0825cbe72a4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/584561e94260268abe1c83e00d9c205565cb7bc5","name":"https://git.kernel.org/stable/c/584561e94260268abe1c83e00d9c205565cb7bc5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/90e483e7f20c32287d2a9da967e122938f52737a","name":"https://git.kernel.org/stable/c/90e483e7f20c32287d2a9da967e122938f52737a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2526d6bf27d15054bb0778b2f7bc6625fd934905","name":"https://git.kernel.org/stable/c/2526d6bf27d15054bb0778b2f7bc6625fd934905","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9","name":"https://git.kernel.org/stable/c/e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3a720eb89026c5241b8c4abb33370dc6fb565eee","name":"https://git.kernel.org/stable/c/3a720eb89026c5241b8c4abb33370dc6fb565eee","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d","name":"https://git.kernel.org/stable/c/c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/172c8a24fc8312cf6b88d3c88469653fdcb1c127","name":"https://git.kernel.org/stable/c/172c8a24fc8312cf6b88d3c88469653fdcb1c127","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-50330","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50330","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 90e483e7f20c32287d2a9da967e122938f52737a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 584561e94260268abe1c83e00d9c205565cb7bc5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 3a720eb89026c5241b8c4abb33370dc6fb565eee git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 172c8a24fc8312cf6b88d3c88469653fdcb1c127 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 371fa5129af53a79f6dddc90fe5bb0825cbe72a4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9e2c7d99941d000a36f68a3594cec27a1bbea274 2526d6bf27d15054bb0778b2f7bc6625fd934905 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.11","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.14.296 4.14.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.19.262 4.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4.220 5.4.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.150 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.75 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.19.17 5.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.0.3 6.0.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"50330","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/crypto/cavium/cpt/cptpf_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d","status":"affected","version":"9e2c7d99941d000a36f68a3594cec27a1bbea274","versionType":"git"},{"lessThan":"90e483e7f20c32287d2a9da967e122938f52737a","status":"affected","version":"9e2c7d99941d000a36f68a3594cec27a1bbea274","versionType":"git"},{"lessThan":"584561e94260268abe1c83e00d9c205565cb7bc5","status":"affected","version":"9e2c7d99941d000a36f68a3594cec27a1bbea274","versionType":"git"},{"lessThan":"3a720eb89026c5241b8c4abb33370dc6fb565eee","status":"affected","version":"9e2c7d99941d000a36f68a3594cec27a1bbea274","versionType":"git"},{"lessThan":"172c8a24fc8312cf6b88d3c88469653fdcb1c127","status":"affected","version":"9e2c7d99941d000a36f68a3594cec27a1bbea274","versionType":"git"},{"lessThan":"371fa5129af53a79f6dddc90fe5bb0825cbe72a4","status":"affected","version":"9e2c7d99941d000a36f68a3594cec27a1bbea274","versionType":"git"},{"lessThan":"e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9","status":"affected","version":"9e2c7d99941d000a36f68a3594cec27a1bbea274","versionType":"git"},{"lessThan":"2526d6bf27d15054bb0778b2f7bc6625fd934905","status":"affected","version":"9e2c7d99941d000a36f68a3594cec27a1bbea274","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/crypto/cavium/cpt/cptpf_main.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.11"},{"lessThan":"4.11","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"4.14.*","status":"unaffected","version":"4.14.296","versionType":"semver"},{"lessThanOrEqual":"4.19.*","status":"unaffected","version":"4.19.262","versionType":"semver"},{"lessThanOrEqual":"5.4.*","status":"unaffected","version":"5.4.220","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.150","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.75","versionType":"semver"},{"lessThanOrEqual":"5.19.*","status":"unaffected","version":"5.19.17","versionType":"semver"},{"lessThanOrEqual":"6.0.*","status":"unaffected","version":"6.0.3","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"4.14.296","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"4.19.262","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.4.220","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.150","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.75","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.19.17","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.0.3","versionStartIncluding":"4.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1","versionStartIncluding":"4.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: cavium - prevent integer overflow loading firmware\n\nThe \"code_length\" value comes from the firmware file.  If your firmware\nis untrusted realistically there is probably very little you can do to\nprotect yourself.  Still we try to limit the damage as much as possible.\nAlso Smatch marks any data read from the filesystem as untrusted and\nprints warnings if it not capped correctly.\n\nThe \"ntohl(ucode->code_length) * 2\" multiplication can have an\ninteger overflow."}],"metrics":[{"cvssV3_1":{"baseScore":7.1,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","version":"3.1"}}],"providerMetadata":{"dateUpdated":"2026-08-04T09:08:31.771Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/c4d4c2afd08dfb3cd1c880d1811ede2568e81a6d"},{"url":"https://git.kernel.org/stable/c/90e483e7f20c32287d2a9da967e122938f52737a"},{"url":"https://git.kernel.org/stable/c/584561e94260268abe1c83e00d9c205565cb7bc5"},{"url":"https://git.kernel.org/stable/c/3a720eb89026c5241b8c4abb33370dc6fb565eee"},{"url":"https://git.kernel.org/stable/c/172c8a24fc8312cf6b88d3c88469653fdcb1c127"},{"url":"https://git.kernel.org/stable/c/371fa5129af53a79f6dddc90fe5bb0825cbe72a4"},{"url":"https://git.kernel.org/stable/c/e29fd7a6852376d2cfb95ad5d6d3eeff93f815e9"},{"url":"https://git.kernel.org/stable/c/2526d6bf27d15054bb0778b2f7bc6625fd934905"}],"title":"crypto: cavium - prevent integer overflow loading firmware","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2022-50330","datePublished":"2025-09-15T14:49:33.015Z","dateReserved":"2025-09-15T14:18:36.815Z","dateUpdated":"2026-08-04T09:08:31.771Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-09-15 15:15:45","lastModifiedDate":"2026-08-04 10:18:11","problem_types":["CWE-190"],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.2},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"4.14.296","matchCriteriaId":"79013B79-AFBA-4D0E-BEE9-A8E8B2130EEA"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"4.19.262","matchCriteriaId":"D6B62970-1FAD-4ED6-930A-23E26A8D2E08"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.4.220","matchCriteriaId":"125F7133-B3B7-4175-8CF3-FF0845483254"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.150","matchCriteriaId":"C495821C-2A71-4F09-BED8-6A6EB4C9BA27"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.75","matchCriteriaId":"6D945F46-F32F-4C09-8400-C3477E22A9FB"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"5.19.17","matchCriteriaId":"19B4C3A4-E5C3-41DC-BB14-BE72858E7D35"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.0.3","matchCriteriaId":"5BCD8201-B847-4442-B894-70D430128DEF"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"50330","Ordinal":"1","Title":"crypto: cavium - prevent integer overflow loading firmware","CVE":"CVE-2022-50330","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"50330","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: cavium - prevent integer overflow loading firmware\n\nThe \"code_length\" value comes from the firmware file.  If your firmware\nis untrusted realistically there is probably very little you can do to\nprotect yourself.  Still we try to limit the damage as much as possible.\nAlso Smatch marks any data read from the filesystem as untrusted and\nprints warnings if it not capped correctly.\n\nThe \"ntohl(ucode->code_length) * 2\" multiplication can have an\ninteger overflow.","Type":"Description","Title":"crypto: cavium - prevent integer overflow loading firmware"}]}}}