{"id":"CVE-2023-53038","state":"PUBLISHED","title":"scsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read()\n\nIf kzalloc() fails in lpfc_sli4_cgn_params_read(), then we rely on\nlpfc_read_object()'s routine to NULL check pdata.\n\nCurrently, an early return error is thrown from lpfc_read_object() to\nprotect us from NULL ptr dereference, but the errno code is -ENODEV.\n\nChange the errno code to a more appropriate -ENOMEM.","publishedAt":"2025-05-02T15:54:57.091Z","updatedAt":"2026-05-11T19:37:21.819Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"72df8a452883b0be334396acba07df77c3c3f6c7","status":"affected","lessThan":"67b8343998b84418bc5b5206aa01fe9b461a80ef","versionType":"git"},{"version":"72df8a452883b0be334396acba07df77c3c3f6c7","status":"affected","lessThan":"4829a1e1171536978b240a1438789c2e4d5c9715","versionType":"git"},{"version":"72df8a452883b0be334396acba07df77c3c3f6c7","status":"affected","lessThan":"908dd9a0853a88155a5a36018c7e2b32ccf20379","versionType":"git"},{"version":"72df8a452883b0be334396acba07df77c3c3f6c7","status":"affected","lessThan":"312320b0e0ec21249a17645683fe5304d796aec1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_init.c","drivers/scsi/lpfc/lpfc_sli.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.105","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.22","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.9","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_init.c","drivers/scsi/lpfc/lpfc_sli.c"]}],"references":["https://git.kernel.org/stable/c/67b8343998b84418bc5b5206aa01fe9b461a80ef","https://git.kernel.org/stable/c/4829a1e1171536978b240a1438789c2e4d5c9715","https://git.kernel.org/stable/c/908dd9a0853a88155a5a36018c7e2b32ccf20379","https://git.kernel.org/stable/c/312320b0e0ec21249a17645683fe5304d796aec1"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53038.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53038","state":"PUBLISHED","datePublished":"2025-05-02T15:54:57.091Z","dateUpdated":"2026-05-11T19:37:21.819Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:18:43.827Z"},"containers":{"cna":{"title":"scsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read()\n\nIf kzalloc() fails in lpfc_sli4_cgn_params_read(), then we rely on\nlpfc_read_object()'s routine to NULL check pdata.\n\nCurrently, an early return error is thrown from lpfc_read_object() to\nprotect us from NULL ptr dereference, but the errno code is -ENODEV.\n\nChange the errno code to a more appropriate -ENOMEM."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"72df8a452883b0be334396acba07df77c3c3f6c7","status":"affected","lessThan":"67b8343998b84418bc5b5206aa01fe9b461a80ef","versionType":"git"},{"version":"72df8a452883b0be334396acba07df77c3c3f6c7","status":"affected","lessThan":"4829a1e1171536978b240a1438789c2e4d5c9715","versionType":"git"},{"version":"72df8a452883b0be334396acba07df77c3c3f6c7","status":"affected","lessThan":"908dd9a0853a88155a5a36018c7e2b32ccf20379","versionType":"git"},{"version":"72df8a452883b0be334396acba07df77c3c3f6c7","status":"affected","lessThan":"312320b0e0ec21249a17645683fe5304d796aec1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_init.c","drivers/scsi/lpfc/lpfc_sli.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.105","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.22","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.9","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_init.c","drivers/scsi/lpfc/lpfc_sli.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/67b8343998b84418bc5b5206aa01fe9b461a80ef"},{"url":"https://git.kernel.org/stable/c/4829a1e1171536978b240a1438789c2e4d5c9715"},{"url":"https://git.kernel.org/stable/c/908dd9a0853a88155a5a36018c7e2b32ccf20379"},{"url":"https://git.kernel.org/stable/c/312320b0e0ec21249a17645683fe5304d796aec1"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:37:21.819Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.105"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.22"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.2.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}