Bug 1226457 (CVE-2024-36973) - VUL-0: CVE-2024-36973: kernel: misc: microchip: pci1xxxx: fix double free in the error handling of gp_aux_bus_probe()
Summary: VUL-0: CVE-2024-36973: kernel: misc: microchip: pci1xxxx: fix double free in ...
Status: IN_PROGRESS
Alias: CVE-2024-36973
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/411127/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-36973:6.2:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 06:45 UTC by SMASH SMASH
Modified: 2024-07-08 15:11 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-06-18 06:45:53 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-36973
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-36973.mbox
https://git.kernel.org/stable/c/086c6cbcc563c81d55257f9b27e14faf1d0963d3
https://www.cve.org/CVERecord?id=CVE-2024-36973