Bug 2350366 (CVE-2024-58063) - CVE-2024-58063 kernel: wifi: rtlwifi: fix memory leaks and invalid access at probe error path
Summary: CVE-2024-58063 kernel: wifi: rtlwifi: fix memory leaks and invalid access at ...
Keywords:
Status: NEW
Alias: CVE-2024-58063
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-06 16:01 UTC by OSIDB Bzimport
Modified: 2025-04-02 13:21 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-06 16:01:57 UTC
In the Linux kernel, the following vulnerability has been resolved:

wifi: rtlwifi: fix memory leaks and invalid access at probe error path

Deinitialize at reverse order when probe fails.

When init_sw_vars fails, rtl_deinit_core should not be called, specially
now that it destroys the rtl_wq workqueue.

And call rtl_pci_deinit and deinit_sw_vars, otherwise, memory will be
leaked.

Remove pci_set_drvdata call as it will already be cleaned up by the core
driver code and could lead to memory leaks too. cf. commit 8d450935ae7f
("wireless: rtlwifi: remove unnecessary pci_set_drvdata()") and
commit 3d86b93064c7 ("rtlwifi: Fix PCI probe error path orphaned memory").

Comment 1 Mauro Matteo Cascella 2025-03-06 16:42:15 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025030609-CVE-2024-58063-5fd7@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.