Skip to content
Heist/ feed
Back to feed
MediumFix available

scsi: snic: Fix possible memory leak if device_add() fails

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: scsi: snic: Fix possible memory leak if device_add() fails If device_add() returns error, the name allocated by dev_set_name() needs be freed. As the comment of device_add() says, put_device() should be used to give up the reference in the error path. So fix this by calling put_device(), then the name can be freed in kobject_cleanp().

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.323, 4.19.292, 5.10.191, 5.15.127, 5.4.254, 6.1.46, 6.4.11
CVEs
CVE-2023-53436
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 21:48 UTC · Revision 1

Source evidence

scsi: snic: Fix possible memory leak if device_add() fails

core-osv · Original source

Published 18 Sept 2025, 16:04 UTC

In the Linux kernel, the following vulnerability has been resolved: scsi: snic: Fix possible memory leak if device_add() fails If device_add() returns error, the name allocated by dev_set_name() needs be freed. As the comment of device_add() says, put_device() should be used to give up the reference in the error path. So fix this by calling put_device(), then the name can be freed in kobject_cleanp().

osv:CVE-2023-53436

Kernel

Fixed versions: 4.14.323, 4.19.292, 5.4.254, 5.10.191, 5.15.127, 6.1.46, 6.4.11

Complete source record
{
  "id": "4c32e3ddd42cf054bebab4727de88aa099387c78476ac8cb780c4f8b5d5e891c",
  "url": "https://osv.dev/vulnerability/CVE-2023-53436",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "scsi: snic: Fix possible memory leak if device_add() fails",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: scsi: snic: Fix possible memory leak if device_add() fails If device_add() returns error, the name allocated by dev_set_name() needs be freed. As the comment of device_add() says, put_device() should be used to give up the reference in the error path. So fix this by calling put_device(), then the name can be freed in kobject_cleanp().",
    "evidence": "osv:CVE-2023-53436",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.14.323",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.292",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.254",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.191",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.127",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.46",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.4.11",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-53436",
      "aliases": [
        "CVE-2023-53436"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa"
                },
                {
                  "fixed": "789275f7c0544374d40bc8d9c81f96751a41df45"
                },
                {
                  "fixed": "f830968d464f55e11bc9260a132fc77daa266aa3"
                },
                {
                  "fixed": "cea09922f5f75652d55b481ee34011fc7f19868b"
                },
                {
                  "fixed": "58889d5ad74cbc1c9595db74e13522b58b69b0ec"
                },
                {
                  "fixed": "461f8ac666fa232afee5ed6420099913ec4e4ba2"
                },
                {
                  "fixed": "7723a5d5d187626c4c640842e522cf4e9e39492e"
                },
                {
                  "fixed": "ed0acb1ee2e9322b96611635a9ca9303d15ac76c"
                },
                {
                  "fixed": "41320b18a0e0dfb236dba4edb9be12dba1878156"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53436.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.2.0"
                },
                {
                  "fixed": "4.14.323"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "4.19.292"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.254"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.191"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.127"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.46"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.4.11"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53436.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.107183840Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/41320b18a0e0dfb236dba4edb9be12dba1878156",
        "https://git.kernel.org/stable/c/461f8ac666fa232afee5ed6420099913ec4e4ba2",
        "https://git.kernel.org/stable/c/58889d5ad74cbc1c9595db74e13522b58b69b0ec",
        "https://git.kernel.org/stable/c/7723a5d5d187626c4c640842e522cf4e9e39492e",
        "https://git.kernel.org/stable/c/789275f7c0544374d40bc8d9c81f96751a41df45",
        "https://git.kernel.org/stable/c/cea09922f5f75652d55b481ee34011fc7f19868b",
        "https://git.kernel.org/stable/c/ed0acb1ee2e9322b96611635a9ca9303d15ac76c",
        "https://git.kernel.org/stable/c/f830968d464f55e11bc9260a132fc77daa266aa3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53436.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-53436",
        "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-53436.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-53436",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490353,
  "published_at": "2025-09-18T16:04:15.138+00:00"
}