CVE-2023-53436 (GCVE-0-2023-53436)

Vulnerability from cvelistv5 – Published: 2025-09-18 16:04 – Updated: 2026-01-14 19:23
VLAI?
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().
CWE
  • CWE-401 - Missing Release of Memory after Effective Lifetime
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa , < 789275f7c0544374d40bc8d9c81f96751a41df45 (git)
Affected: c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa , < f830968d464f55e11bc9260a132fc77daa266aa3 (git)
Affected: c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa , < cea09922f5f75652d55b481ee34011fc7f19868b (git)
Affected: c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa , < 58889d5ad74cbc1c9595db74e13522b58b69b0ec (git)
Affected: c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa , < 461f8ac666fa232afee5ed6420099913ec4e4ba2 (git)
Affected: c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa , < 7723a5d5d187626c4c640842e522cf4e9e39492e (git)
Affected: c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa , < ed0acb1ee2e9322b96611635a9ca9303d15ac76c (git)
Affected: c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa , < 41320b18a0e0dfb236dba4edb9be12dba1878156 (git)
Create a notification for this product.
    Linux Linux Affected: 4.2
Unaffected: 0 , < 4.2 (semver)
Unaffected: 4.14.323 , ≤ 4.14.* (semver)
Unaffected: 4.19.292 , ≤ 4.19.* (semver)
Unaffected: 5.4.254 , ≤ 5.4.* (semver)
Unaffected: 5.10.191 , ≤ 5.10.* (semver)
Unaffected: 5.15.127 , ≤ 5.15.* (semver)
Unaffected: 6.1.46 , ≤ 6.1.* (semver)
Unaffected: 6.4.11 , ≤ 6.4.* (semver)
Unaffected: 6.5 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 5.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2023-53436",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-01-14T19:16:38.570415Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-401",
                "description": "CWE-401 Missing Release of Memory after Effective Lifetime",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-01-14T19:23:10.220Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/scsi/snic/snic_disc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "789275f7c0544374d40bc8d9c81f96751a41df45",
              "status": "affected",
              "version": "c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa",
              "versionType": "git"
            },
            {
              "lessThan": "f830968d464f55e11bc9260a132fc77daa266aa3",
              "status": "affected",
              "version": "c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa",
              "versionType": "git"
            },
            {
              "lessThan": "cea09922f5f75652d55b481ee34011fc7f19868b",
              "status": "affected",
              "version": "c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa",
              "versionType": "git"
            },
            {
              "lessThan": "58889d5ad74cbc1c9595db74e13522b58b69b0ec",
              "status": "affected",
              "version": "c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa",
              "versionType": "git"
            },
            {
              "lessThan": "461f8ac666fa232afee5ed6420099913ec4e4ba2",
              "status": "affected",
              "version": "c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa",
              "versionType": "git"
            },
            {
              "lessThan": "7723a5d5d187626c4c640842e522cf4e9e39492e",
              "status": "affected",
              "version": "c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa",
              "versionType": "git"
            },
            {
              "lessThan": "ed0acb1ee2e9322b96611635a9ca9303d15ac76c",
              "status": "affected",
              "version": "c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa",
              "versionType": "git"
            },
            {
              "lessThan": "41320b18a0e0dfb236dba4edb9be12dba1878156",
              "status": "affected",
              "version": "c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/scsi/snic/snic_disc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.2"
            },
            {
              "lessThan": "4.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.323",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.292",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.254",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.191",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.127",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.46",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.4.*",
              "status": "unaffected",
              "version": "6.4.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.5",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.323",
                  "versionStartIncluding": "4.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.292",
                  "versionStartIncluding": "4.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.254",
                  "versionStartIncluding": "4.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.191",
                  "versionStartIncluding": "4.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.127",
                  "versionStartIncluding": "4.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.46",
                  "versionStartIncluding": "4.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4.11",
                  "versionStartIncluding": "4.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5",
                  "versionStartIncluding": "4.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: snic: Fix possible memory leak if device_add() fails\n\nIf device_add() returns error, the name allocated by dev_set_name() needs\nbe freed. As the comment of device_add() says, put_device() should be used\nto give up the reference in the error path. So fix this by calling\nput_device(), then the name can be freed in kobject_cleanp()."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-18T16:04:15.138Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/789275f7c0544374d40bc8d9c81f96751a41df45"
        },
        {
          "url": "https://git.kernel.org/stable/c/f830968d464f55e11bc9260a132fc77daa266aa3"
        },
        {
          "url": "https://git.kernel.org/stable/c/cea09922f5f75652d55b481ee34011fc7f19868b"
        },
        {
          "url": "https://git.kernel.org/stable/c/58889d5ad74cbc1c9595db74e13522b58b69b0ec"
        },
        {
          "url": "https://git.kernel.org/stable/c/461f8ac666fa232afee5ed6420099913ec4e4ba2"
        },
        {
          "url": "https://git.kernel.org/stable/c/7723a5d5d187626c4c640842e522cf4e9e39492e"
        },
        {
          "url": "https://git.kernel.org/stable/c/ed0acb1ee2e9322b96611635a9ca9303d15ac76c"
        },
        {
          "url": "https://git.kernel.org/stable/c/41320b18a0e0dfb236dba4edb9be12dba1878156"
        }
      ],
      "title": "scsi: snic: Fix possible memory leak if device_add() fails",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53436",
    "datePublished": "2025-09-18T16:04:15.138Z",
    "dateReserved": "2025-09-17T14:54:09.751Z",
    "dateUpdated": "2026-01-14T19:23:10.220Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…