In the Linux kernel, the following vulnerability has been resolved:
misc: microchip: pci1xxxx: fix double free in the error handling of gpauxbus_probe()
When auxiliarydeviceadd() returns error and then calls auxiliarydeviceuninit(), callback function gpauxiliarydevicerelease() calls idafree() and kfree(auxdevicewrapper) to free memory. We should't call them again in the error handling path.
Fix this by skipping the redundant cleanup functions.
[
{
"target": {
"function": "gp_aux_bus_probe",
"file": "drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c"
},
"digest": {
"length": 2961.0,
"function_hash": "150513508696804140350885051886463832852"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@086c6cbcc563c81d55257f9b27e14faf1d0963d3",
"deprecated": false,
"id": "CVE-2024-36973-182c4b5c",
"signature_type": "Function"
},
{
"target": {
"function": "gp_aux_bus_probe",
"file": "drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c"
},
"digest": {
"length": 2961.0,
"function_hash": "150513508696804140350885051886463832852"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86c9713602f786f441630c4ee02891987f8618b9",
"deprecated": false,
"id": "CVE-2024-36973-4e5b730c",
"signature_type": "Function"
},
{
"target": {
"function": "gp_aux_bus_probe",
"file": "drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c"
},
"digest": {
"length": 2961.0,
"function_hash": "150513508696804140350885051886463832852"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@34ae447b138680b5ed3660f7d935ff3faf88ba1a",
"deprecated": false,
"id": "CVE-2024-36973-6557764c",
"signature_type": "Function"
},
{
"target": {
"file": "drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c"
},
"digest": {
"line_hashes": [
"207466490787000238566119166471308309606",
"42928956636133481106741156666726818359",
"279108776365721864829489548278590789625",
"288502576873567296266834053138260491524",
"27879599251630920769077696299375053475",
"34487901657081571421318093504523029072",
"293273294919078067947196535910293880775",
"141597204389777475897338321401730896847",
"23380589698212187397346101227339916954",
"88241942824838747733529730609330954333",
"9537862978908542168695195045984236660"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@34ae447b138680b5ed3660f7d935ff3faf88ba1a",
"deprecated": false,
"id": "CVE-2024-36973-85bb7023",
"signature_type": "Line"
},
{
"target": {
"file": "drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c"
},
"digest": {
"line_hashes": [
"207466490787000238566119166471308309606",
"42928956636133481106741156666726818359",
"279108776365721864829489548278590789625",
"288502576873567296266834053138260491524",
"27879599251630920769077696299375053475",
"34487901657081571421318093504523029072",
"293273294919078067947196535910293880775",
"141597204389777475897338321401730896847",
"23380589698212187397346101227339916954",
"88241942824838747733529730609330954333",
"9537862978908542168695195045984236660"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@086c6cbcc563c81d55257f9b27e14faf1d0963d3",
"deprecated": false,
"id": "CVE-2024-36973-9cdcbecf",
"signature_type": "Line"
},
{
"target": {
"file": "drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gp.c"
},
"digest": {
"line_hashes": [
"207466490787000238566119166471308309606",
"42928956636133481106741156666726818359",
"279108776365721864829489548278590789625",
"288502576873567296266834053138260491524",
"27879599251630920769077696299375053475",
"34487901657081571421318093504523029072",
"293273294919078067947196535910293880775",
"141597204389777475897338321401730896847",
"23380589698212187397346101227339916954",
"88241942824838747733529730609330954333",
"9537862978908542168695195045984236660"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@86c9713602f786f441630c4ee02891987f8618b9",
"deprecated": false,
"id": "CVE-2024-36973-dd98ce9e",
"signature_type": "Line"
}
]