CVE-2024-36973
JSON

8.4high

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

Severity
8.4high CVSS:3.1 by Linux
Exploit likelihood
0.34% (higher than 20% of CVEs)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 393fc2f5948fd340d016a9557eea6e1ac2f6c60c before 34ae447b138680b5ed3660f7d935ff3faf88ba1a, from 393fc2f5948fd340d016a9557eea6e1ac2f6c60c before 86c9713602f786f441630c4ee02891987f8618b9, from 393fc2f5948fd340d016a9557eea6e1ac2f6c60c before 1efe551982297924d05a367aa2b6ec3d275d5742, from 393fc2f5948fd340d016a9557eea6e1ac2f6c60c before 086c6cbcc563c81d55257f9b27e14faf1d0963d3, 6.1
Not affected: before 6.1, from 6.1.95 up to 6.1.*, from 6.6.35 up to 6.6.*, from 6.9.6 up to 6.9.*, from 6.10 up to *
CVE List
linux linux_kernelfrom 6.1 before 6.1.95, from 6.2 before 6.6.35, from 6.7 before 6.9.6, 6.10NVD

All scores

Linux8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-415

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: misc: microchip: pci1xxxx: corrige double free en el manejo de errores de gp_aux_bus_probe() Cuando auxiliar_device_add() devuelve error y luego llama a auxiliar_device_uninit(), la función de devolución de llamada gp_auxiliary_device_release() llama a ida_free( ) y kfree(aux_device_wrapper) para liberar memoria. No deberíamos volver a llamarlos en la ruta de manejo de errores. Solucione este problema omitiendo las funciones de limpieza redundantes.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-36973 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-36973 changed 2026-08-04Public domain