CVE-2023-53174 (GCVE-0-2023-53174)
Vulnerability from cvelistv5
Published
2025-09-15 14:04
Modified
2025-09-15 14:04
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: scsi: core: 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 decrease the reference count in the error path. So fix this by calling put_device(), then the name can be freed in kobject_cleanp().
Impacted products
Vendor Product Version
Linux Linux Version: ee959b00c335d7780136c5abda37809191fe52c3
Version: ee959b00c335d7780136c5abda37809191fe52c3
Version: ee959b00c335d7780136c5abda37809191fe52c3
Version: ee959b00c335d7780136c5abda37809191fe52c3
Version: ee959b00c335d7780136c5abda37809191fe52c3
Version: ee959b00c335d7780136c5abda37809191fe52c3
Version: ee959b00c335d7780136c5abda37809191fe52c3
Version: ee959b00c335d7780136c5abda37809191fe52c3
Create a notification for this product.
   Linux Linux Version: 2.6.26
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/scsi/raid_class.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "63956ad27a6882f01fea7c69e17823090f4c7b3f",
              "status": "affected",
              "version": "ee959b00c335d7780136c5abda37809191fe52c3",
              "versionType": "git"
            },
            {
              "lessThan": "06c5340858011aa1195aec43a776e3185fbf7f56",
              "status": "affected",
              "version": "ee959b00c335d7780136c5abda37809191fe52c3",
              "versionType": "git"
            },
            {
              "lessThan": "e12fac07f61caac9c5b186d827658b3470787619",
              "status": "affected",
              "version": "ee959b00c335d7780136c5abda37809191fe52c3",
              "versionType": "git"
            },
            {
              "lessThan": "aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8",
              "status": "affected",
              "version": "ee959b00c335d7780136c5abda37809191fe52c3",
              "versionType": "git"
            },
            {
              "lessThan": "6bc7f4c8c27d526f968788b8a985896755b1df35",
              "status": "affected",
              "version": "ee959b00c335d7780136c5abda37809191fe52c3",
              "versionType": "git"
            },
            {
              "lessThan": "b191ff1f075c4875f11271cbf0093e6e044a12aa",
              "status": "affected",
              "version": "ee959b00c335d7780136c5abda37809191fe52c3",
              "versionType": "git"
            },
            {
              "lessThan": "43c0e16d0c5ec59398b405f4c4aa5a076e656c3f",
              "status": "affected",
              "version": "ee959b00c335d7780136c5abda37809191fe52c3",
              "versionType": "git"
            },
            {
              "lessThan": "04b5b5cb0136ce970333a9c6cec7e46adba1ea3a",
              "status": "affected",
              "version": "ee959b00c335d7780136c5abda37809191fe52c3",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/scsi/raid_class.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.26"
            },
            {
              "lessThan": "2.6.26",
              "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": "2.6.26",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.292",
                  "versionStartIncluding": "2.6.26",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.254",
                  "versionStartIncluding": "2.6.26",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.191",
                  "versionStartIncluding": "2.6.26",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.127",
                  "versionStartIncluding": "2.6.26",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.46",
                  "versionStartIncluding": "2.6.26",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4.11",
                  "versionStartIncluding": "2.6.26",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5",
                  "versionStartIncluding": "2.6.26",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: core: 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 decrease the reference count in the error path. So fix this by calling\nput_device(), then the name can be freed in kobject_cleanp()."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-15T14:04:08.357Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/63956ad27a6882f01fea7c69e17823090f4c7b3f"
        },
        {
          "url": "https://git.kernel.org/stable/c/06c5340858011aa1195aec43a776e3185fbf7f56"
        },
        {
          "url": "https://git.kernel.org/stable/c/e12fac07f61caac9c5b186d827658b3470787619"
        },
        {
          "url": "https://git.kernel.org/stable/c/aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8"
        },
        {
          "url": "https://git.kernel.org/stable/c/6bc7f4c8c27d526f968788b8a985896755b1df35"
        },
        {
          "url": "https://git.kernel.org/stable/c/b191ff1f075c4875f11271cbf0093e6e044a12aa"
        },
        {
          "url": "https://git.kernel.org/stable/c/43c0e16d0c5ec59398b405f4c4aa5a076e656c3f"
        },
        {
          "url": "https://git.kernel.org/stable/c/04b5b5cb0136ce970333a9c6cec7e46adba1ea3a"
        }
      ],
      "title": "scsi: core: 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-53174",
    "datePublished": "2025-09-15T14:04:08.357Z",
    "dateReserved": "2025-09-15T13:59:19.064Z",
    "dateUpdated": "2025-09-15T14:04:08.357Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53174\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T14:15:39.283\",\"lastModified\":\"2025-09-15T15:22:27.090\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nscsi: core: 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 decrease the reference count in the error path. So fix this by calling\\nput_device(), then the name can be freed in kobject_cleanp().\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/04b5b5cb0136ce970333a9c6cec7e46adba1ea3a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/06c5340858011aa1195aec43a776e3185fbf7f56\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/43c0e16d0c5ec59398b405f4c4aa5a076e656c3f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/63956ad27a6882f01fea7c69e17823090f4c7b3f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6bc7f4c8c27d526f968788b8a985896755b1df35\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b191ff1f075c4875f11271cbf0093e6e044a12aa\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e12fac07f61caac9c5b186d827658b3470787619\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…