In the Linux kernel, the following vulnerability has been resolved:
scsi: snic: Fix possible memory leak if device_add() fails
If deviceadd() returns error, the name allocated by devsetname() needs be freed. As the comment of deviceadd() says, putdevice() should be used to give up the reference in the error path. So fix this by calling putdevice(), then the name can be freed in kobject_cleanp().
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53436.json",
"cna_assigner": "Linux"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53436.json"
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "201702595985729878368003513824211438865",
"length": 2223.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ed0acb1ee2e9322b96611635a9ca9303d15ac76c",
"signature_type": "Function",
"id": "CVE-2023-53436-221c3bbc",
"target": {
"file": "drivers/scsi/snic/snic_disc.c",
"function": "snic_tgt_create"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243230697564625318472194516934968649580",
"158520229725960026587647926974034856357",
"336279025057916737920790694780584911052"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cea09922f5f75652d55b481ee34011fc7f19868b",
"signature_type": "Line",
"id": "CVE-2023-53436-293b36ac",
"target": {
"file": "drivers/scsi/snic/snic_disc.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243230697564625318472194516934968649580",
"158520229725960026587647926974034856357",
"336279025057916737920790694780584911052"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7723a5d5d187626c4c640842e522cf4e9e39492e",
"signature_type": "Line",
"id": "CVE-2023-53436-2af2e9b1",
"target": {
"file": "drivers/scsi/snic/snic_disc.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243230697564625318472194516934968649580",
"158520229725960026587647926974034856357",
"336279025057916737920790694780584911052"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@789275f7c0544374d40bc8d9c81f96751a41df45",
"signature_type": "Line",
"id": "CVE-2023-53436-4bc53cac",
"target": {
"file": "drivers/scsi/snic/snic_disc.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243230697564625318472194516934968649580",
"158520229725960026587647926974034856357",
"336279025057916737920790694780584911052"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f830968d464f55e11bc9260a132fc77daa266aa3",
"signature_type": "Line",
"id": "CVE-2023-53436-650c7878",
"target": {
"file": "drivers/scsi/snic/snic_disc.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "201702595985729878368003513824211438865",
"length": 2223.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@461f8ac666fa232afee5ed6420099913ec4e4ba2",
"signature_type": "Function",
"id": "CVE-2023-53436-78b223e0",
"target": {
"file": "drivers/scsi/snic/snic_disc.c",
"function": "snic_tgt_create"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "201702595985729878368003513824211438865",
"length": 2223.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@789275f7c0544374d40bc8d9c81f96751a41df45",
"signature_type": "Function",
"id": "CVE-2023-53436-9b0a808d",
"target": {
"file": "drivers/scsi/snic/snic_disc.c",
"function": "snic_tgt_create"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "201702595985729878368003513824211438865",
"length": 2223.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@58889d5ad74cbc1c9595db74e13522b58b69b0ec",
"signature_type": "Function",
"id": "CVE-2023-53436-b43cadb9",
"target": {
"file": "drivers/scsi/snic/snic_disc.c",
"function": "snic_tgt_create"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243230697564625318472194516934968649580",
"158520229725960026587647926974034856357",
"336279025057916737920790694780584911052"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@41320b18a0e0dfb236dba4edb9be12dba1878156",
"signature_type": "Line",
"id": "CVE-2023-53436-bf17ec1d",
"target": {
"file": "drivers/scsi/snic/snic_disc.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "201702595985729878368003513824211438865",
"length": 2223.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7723a5d5d187626c4c640842e522cf4e9e39492e",
"signature_type": "Function",
"id": "CVE-2023-53436-c023f641",
"target": {
"file": "drivers/scsi/snic/snic_disc.c",
"function": "snic_tgt_create"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243230697564625318472194516934968649580",
"158520229725960026587647926974034856357",
"336279025057916737920790694780584911052"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@58889d5ad74cbc1c9595db74e13522b58b69b0ec",
"signature_type": "Line",
"id": "CVE-2023-53436-cd0e8f53",
"target": {
"file": "drivers/scsi/snic/snic_disc.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243230697564625318472194516934968649580",
"158520229725960026587647926974034856357",
"336279025057916737920790694780584911052"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ed0acb1ee2e9322b96611635a9ca9303d15ac76c",
"signature_type": "Line",
"id": "CVE-2023-53436-d45d891f",
"target": {
"file": "drivers/scsi/snic/snic_disc.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "201702595985729878368003513824211438865",
"length": 2223.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@41320b18a0e0dfb236dba4edb9be12dba1878156",
"signature_type": "Function",
"id": "CVE-2023-53436-da4f2424",
"target": {
"file": "drivers/scsi/snic/snic_disc.c",
"function": "snic_tgt_create"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "201702595985729878368003513824211438865",
"length": 2223.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cea09922f5f75652d55b481ee34011fc7f19868b",
"signature_type": "Function",
"id": "CVE-2023-53436-da769459",
"target": {
"file": "drivers/scsi/snic/snic_disc.c",
"function": "snic_tgt_create"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"243230697564625318472194516934968649580",
"158520229725960026587647926974034856357",
"336279025057916737920790694780584911052"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@461f8ac666fa232afee5ed6420099913ec4e4ba2",
"signature_type": "Line",
"id": "CVE-2023-53436-e0109b19",
"target": {
"file": "drivers/scsi/snic/snic_disc.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "201702595985729878368003513824211438865",
"length": 2223.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f830968d464f55e11bc9260a132fc77daa266aa3",
"signature_type": "Function",
"id": "CVE-2023-53436-e10f30a1",
"target": {
"file": "drivers/scsi/snic/snic_disc.c",
"function": "snic_tgt_create"
}
}
]