CVE-2024-38603 (GCVE-0-2024-38603)

Vulnerability from cvelistv5 – Published: 2024-06-19 13:48 – Updated: 2025-05-04 09:15
VLAI?
Title
drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()
Summary
In the Linux kernel, the following vulnerability has been resolved: drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset() pci_alloc_irq_vectors() allocates an irq vector. When devm_add_action() fails, the irq vector is not freed, which leads to a memory leak. Replace the devm_add_action with devm_add_action_or_reset to ensure the irq vector can be destroyed when it fails.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 66637ab137b44914356a9dc7a9b3f8ebcf0b0695 , < 1491a01ef5a98149048b12e208f6ed8e86ad10b9 (git)
Affected: 66637ab137b44914356a9dc7a9b3f8ebcf0b0695 , < a7678a16c25b6ece1667ac681e3e783ff3de7a6f (git)
Affected: 66637ab137b44914356a9dc7a9b3f8ebcf0b0695 , < 2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782 (git)
Affected: 66637ab137b44914356a9dc7a9b3f8ebcf0b0695 , < b1e86f1ef8fa796f8935be392457639f3a907d91 (git)
Affected: 66637ab137b44914356a9dc7a9b3f8ebcf0b0695 , < 582c1aeee0a9e73010cf1c4cef338709860deeb0 (git)
Create a notification for this product.
    Linux Linux Affected: 6.0
Unaffected: 0 , < 6.0 (semver)
Unaffected: 6.1.93 , ≤ 6.1.* (semver)
Unaffected: 6.6.33 , ≤ 6.6.* (semver)
Unaffected: 6.8.12 , ≤ 6.8.* (semver)
Unaffected: 6.9.3 , ≤ 6.9.* (semver)
Unaffected: 6.10 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T04:12:25.887Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/1491a01ef5a98149048b12e208f6ed8e86ad10b9"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/a7678a16c25b6ece1667ac681e3e783ff3de7a6f"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/b1e86f1ef8fa796f8935be392457639f3a907d91"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/582c1aeee0a9e73010cf1c4cef338709860deeb0"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-38603",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T17:13:15.047370Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:34:53.850Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/perf/hisilicon/hns3_pmu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "1491a01ef5a98149048b12e208f6ed8e86ad10b9",
              "status": "affected",
              "version": "66637ab137b44914356a9dc7a9b3f8ebcf0b0695",
              "versionType": "git"
            },
            {
              "lessThan": "a7678a16c25b6ece1667ac681e3e783ff3de7a6f",
              "status": "affected",
              "version": "66637ab137b44914356a9dc7a9b3f8ebcf0b0695",
              "versionType": "git"
            },
            {
              "lessThan": "2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782",
              "status": "affected",
              "version": "66637ab137b44914356a9dc7a9b3f8ebcf0b0695",
              "versionType": "git"
            },
            {
              "lessThan": "b1e86f1ef8fa796f8935be392457639f3a907d91",
              "status": "affected",
              "version": "66637ab137b44914356a9dc7a9b3f8ebcf0b0695",
              "versionType": "git"
            },
            {
              "lessThan": "582c1aeee0a9e73010cf1c4cef338709860deeb0",
              "status": "affected",
              "version": "66637ab137b44914356a9dc7a9b3f8ebcf0b0695",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/perf/hisilicon/hns3_pmu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.0"
            },
            {
              "lessThan": "6.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.93",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.33",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.8.*",
              "status": "unaffected",
              "version": "6.8.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.9.*",
              "status": "unaffected",
              "version": "6.9.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.10",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.93",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.33",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.8.12",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.9.3",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.10",
                  "versionStartIncluding": "6.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()\n\npci_alloc_irq_vectors() allocates an irq vector. When devm_add_action()\nfails, the irq vector is not freed, which leads to a memory leak.\n\nReplace the devm_add_action with devm_add_action_or_reset to ensure\nthe irq vector can be destroyed when it fails."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T09:15:05.547Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/1491a01ef5a98149048b12e208f6ed8e86ad10b9"
        },
        {
          "url": "https://git.kernel.org/stable/c/a7678a16c25b6ece1667ac681e3e783ff3de7a6f"
        },
        {
          "url": "https://git.kernel.org/stable/c/2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782"
        },
        {
          "url": "https://git.kernel.org/stable/c/b1e86f1ef8fa796f8935be392457639f3a907d91"
        },
        {
          "url": "https://git.kernel.org/stable/c/582c1aeee0a9e73010cf1c4cef338709860deeb0"
        }
      ],
      "title": "drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-38603",
    "datePublished": "2024-06-19T13:48:14.426Z",
    "dateReserved": "2024-06-18T19:36:34.933Z",
    "dateUpdated": "2025-05-04T09:15:05.547Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"cna\": {\"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-07-15T06:48:53.398Z\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ndrivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()\\n\\npci_alloc_irq_vectors() allocates an irq vector. When devm_add_action()\\nfails, the irq vector is not freed, which leads to a memory leak.\\n\\nReplace the devm_add_action with devm_add_action_or_reset to ensure\\nthe irq vector can be destroyed when it fails.\"}], \"affected\": [{\"product\": \"Linux\", \"vendor\": \"Linux\", \"defaultStatus\": \"unaffected\", \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"programFiles\": [\"drivers/perf/hisilicon/hns3_pmu.c\"], \"versions\": [{\"version\": \"66637ab137b4\", \"lessThan\": \"1491a01ef5a9\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"66637ab137b4\", \"lessThan\": \"a7678a16c25b\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"66637ab137b4\", \"lessThan\": \"2fcffaaf529d\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"66637ab137b4\", \"lessThan\": \"b1e86f1ef8fa\", \"status\": \"affected\", \"versionType\": \"git\"}, {\"version\": \"66637ab137b4\", \"lessThan\": \"582c1aeee0a9\", \"status\": \"affected\", \"versionType\": \"git\"}]}, {\"product\": \"Linux\", \"vendor\": \"Linux\", \"defaultStatus\": \"affected\", \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"programFiles\": [\"drivers/perf/hisilicon/hns3_pmu.c\"], \"versions\": [{\"version\": \"6.0\", \"status\": \"affected\"}, {\"version\": \"0\", \"lessThan\": \"6.0\", \"status\": \"unaffected\", \"versionType\": \"custom\"}, {\"version\": \"6.1.93\", \"lessThanOrEqual\": \"6.1.*\", \"status\": \"unaffected\", \"versionType\": \"custom\"}, {\"version\": \"6.6.33\", \"lessThanOrEqual\": \"6.6.*\", \"status\": \"unaffected\", \"versionType\": \"custom\"}, {\"version\": \"6.8.12\", \"lessThanOrEqual\": \"6.8.*\", \"status\": \"unaffected\", \"versionType\": \"custom\"}, {\"version\": \"6.9.3\", \"lessThanOrEqual\": \"6.9.*\", \"status\": \"unaffected\", \"versionType\": \"custom\"}, {\"version\": \"6.10\", \"lessThanOrEqual\": \"*\", \"status\": \"unaffected\", \"versionType\": \"original_commit_for_fix\"}]}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/1491a01ef5a98149048b12e208f6ed8e86ad10b9\"}, {\"url\": \"https://git.kernel.org/stable/c/a7678a16c25b6ece1667ac681e3e783ff3de7a6f\"}, {\"url\": \"https://git.kernel.org/stable/c/2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782\"}, {\"url\": \"https://git.kernel.org/stable/c/b1e86f1ef8fa796f8935be392457639f3a907d91\"}, {\"url\": \"https://git.kernel.org/stable/c/582c1aeee0a9e73010cf1c4cef338709860deeb0\"}], \"title\": \"drivers/perf: hisi: hns3: Actually use devm_add_action_or_reset()\", \"x_generator\": {\"engine\": \"bippy-c9c4e1df01b2\"}}, \"adp\": [{\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-38603\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T17:13:15.047370Z\"}}}], \"providerMetadata\": {\"shortName\": \"CISA-ADP\", \"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"dateUpdated\": \"2024-09-11T12:42:26.644Z\"}, \"title\": \"CISA ADP Vulnrichment\"}]}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-38603\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"state\": \"PUBLISHED\", \"assignerShortName\": \"Linux\", \"dateReserved\": \"2024-06-18T19:36:34.933Z\", \"datePublished\": \"2024-06-19T13:48:14.426Z\", \"dateUpdated\": \"2024-08-02T04:12:25.887Z\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


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…