cve-2024-38603
Vulnerability from cvelistv5
Published
2024-06-19 13:48
Modified
2024-12-19 09:05
Severity ?
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.
Impacted products
Vendor Product Version
Linux Linux Version: 66637ab137b44914356a9dc7a9b3f8ebcf0b0695
Version: 66637ab137b44914356a9dc7a9b3f8ebcf0b0695
Version: 66637ab137b44914356a9dc7a9b3f8ebcf0b0695
Version: 66637ab137b44914356a9dc7a9b3f8ebcf0b0695
Version: 66637ab137b44914356a9dc7a9b3f8ebcf0b0695
Create a notification for this product.
   Linux Linux Version: 6.0
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",
                  },
               ],
            },
         ],
         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: "2024-12-19T09:05:27.022Z",
            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-5f407fcff5a0",
         },
      },
   },
   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: "2024-12-19T09:05:27.022Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-38603\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-06-19T14:15:20.270\",\"lastModified\":\"2024-11-21T09:26:27.690\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"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.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drivers/perf: hisi: hns3: en realidad usa devm_add_action_or_reset() pci_alloc_irq_vectors() asigna un vector irq. Cuando devm_add_action() falla, el vector irq no se libera, lo que provoca una pérdida de memoria. Reemplace devm_add_action con devm_add_action_or_reset para garantizar que el vector irq pueda destruirse cuando falla.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-401\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.0\",\"versionEndExcluding\":\"6.1.93\",\"matchCriteriaId\":\"ED79E4A4-4141-4FBC-B01D-4EB8ADBA1958\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.6.33\",\"matchCriteriaId\":\"FCE796DF-3B50-4DC6-BAE5-95271068FC9E\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.8.12\",\"matchCriteriaId\":\"80550309-67AB-4FD1-AC07-3DED5C4F01B2\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.9\",\"versionEndExcluding\":\"6.9.3\",\"matchCriteriaId\":\"E07124C1-19E8-4D21-828D-9932A01D3011\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/1491a01ef5a98149048b12e208f6ed8e86ad10b9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/582c1aeee0a9e73010cf1c4cef338709860deeb0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a7678a16c25b6ece1667ac681e3e783ff3de7a6f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b1e86f1ef8fa796f8935be392457639f3a907d91\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/1491a01ef5a98149048b12e208f6ed8e86ad10b9\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/2fcffaaf529d5fe3fdc6c0ee65a6f266b74de782\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/582c1aeee0a9e73010cf1c4cef338709860deeb0\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/a7678a16c25b6ece1667ac681e3e783ff3de7a6f\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/b1e86f1ef8fa796f8935be392457639f3a907d91\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}",
      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.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



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.