Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-36973
HistoryJun 17, 2024 - 5:51 p.m.

CVE-2024-36973 misc: microchip: pci1xxxx: fix double free in the error handling of gp_aux_bus_probe()

2024-06-1717:51:52
Linux
github.com
9
linux kernel
microchip
pci1xxxx
error handling
vulnerability
gp_aux_bus_probe

AI Score

7

Confidence

Low

EPSS

0

Percentile

15.6%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

In the Linux kernel, the following vulnerability has been resolved:

misc: microchip: pci1xxxx: fix double free in the error handling of gp_aux_bus_probe()

When auxiliary_device_add() returns error and then calls
auxiliary_device_uninit(), callback function
gp_auxiliary_device_release() calls ida_free() and
kfree(aux_device_wrapper) to free memory. We should’t
call them again in the error handling path.

Fix this by skipping the redundant cleanup functions.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "393fc2f5948f",
        "lessThan": "34ae447b1386",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "393fc2f5948f",
        "lessThan": "86c9713602f7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "393fc2f5948f",
        "lessThan": "1efe55198229",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "393fc2f5948f",
        "lessThan": "086c6cbcc563",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.1"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.1",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "6.1.95",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.35",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.9.6",
        "versionType": "custom",
        "lessThanOrEqual": "6.9.*"
      },
      {
        "status": "unaffected",
        "version": "6.10",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

7

Confidence

Low

EPSS

0

Percentile

15.6%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial