scsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read()
In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read() If kzalloc() fails in lpfc_sli4_cgn_params_read(), then we rely on lpfc_read_object()'s routine to NULL check pdata. Currently, an early return error is thrown from lpfc_read_object() to protect us from NULL ptr dereference, but the errno code is -ENODEV. Change the errno code to a more appropriate -ENOMEM.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.105, 6.1.22, 6.2.9
- CVEs
- CVE-2023-53038
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 16:30 UTC · Revision 1
Source evidence
scsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read()
core-osv · Original sourcePublished 2 May 2025, 15:54 UTC
In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read() If kzalloc() fails in lpfc_sli4_cgn_params_read(), then we rely on lpfc_read_object()'s routine to NULL check pdata. Currently, an early return error is thrown from lpfc_read_object() to protect us from NULL ptr dereference, but the errno code is -ENODEV. Change the errno code to a more appropriate -ENOMEM.
osv:CVE-2023-53038
Kernel
Fixed versions: 5.15.105, 6.1.22, 6.2.9
Complete source record
{
"id": "4ddd962094e5e9868af4db7350b8c15e8281de2c362e54f97643edba58714f4c",
"url": "https://osv.dev/vulnerability/CVE-2023-53038",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "scsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Check kzalloc() in lpfc_sli4_cgn_params_read() If kzalloc() fails in lpfc_sli4_cgn_params_read(), then we rely on lpfc_read_object()'s routine to NULL check pdata. Currently, an early return error is thrown from lpfc_read_object() to protect us from NULL ptr dereference, but the errno code is -ENODEV. Change the errno code to a more appropriate -ENOMEM.",
"evidence": "osv:CVE-2023-53038",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.105",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.22",
"evidence": "/affected/1/ranges"
},
{
"value": "6.2.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-53038",
"aliases": [
"CVE-2023-53038"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "72df8a452883b0be334396acba07df77c3c3f6c7"
},
{
"fixed": "67b8343998b84418bc5b5206aa01fe9b461a80ef"
},
{
"fixed": "4829a1e1171536978b240a1438789c2e4d5c9715"
},
{
"fixed": "908dd9a0853a88155a5a36018c7e2b32ccf20379"
},
{
"fixed": "312320b0e0ec21249a17645683fe5304d796aec1"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53038.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.15.0"
},
{
"fixed": "5.15.105"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.22"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.2.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53038.json"
}
}
],
"modified": "2026-10-28T02:30:30.549083994Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/312320b0e0ec21249a17645683fe5304d796aec1",
"https://git.kernel.org/stable/c/4829a1e1171536978b240a1438789c2e4d5c9715",
"https://git.kernel.org/stable/c/67b8343998b84418bc5b5206aa01fe9b461a80ef",
"https://git.kernel.org/stable/c/908dd9a0853a88155a5a36018c7e2b32ccf20379",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53038.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53038",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53038.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53038",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 497405,
"published_at": "2025-05-02T15:54:57.091+00:00"
}