CVE-2024-58063: wifi: rtlwifi: fix memory leaks and invalid access at probe error path
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").
Security readout for executives and security teams
Plain-English summary
CVE-2024-58063 is a Linux kernel availability bug in the Realtek rtlwifi driver. If driver probing fails, cleanup can occur in the wrong order, causing memory leaks or invalid access. The documented impact is local denial of service, not data theft or remote compromise.
Executive priority
Schedule remediation through normal kernel patch cycles, with faster handling for exposed endpoints or appliances using Realtek wireless. This is not currently evidenced as remotely exploitable or actively exploited, but it can affect system availability.
Technical view
The issue is in the rtlwifi PCI probe error path. On init_sw_vars failure, rtl_deinit_core could be called incorrectly, and rtl_pci_deinit/deinit_sw_vars cleanup could be missed. The CVE maps to CWE-401 with CVSS 5.5, AV:L/PR:L/UI:N, affecting availability only.
Likely exposure
Exposure is most likely on Linux systems that include and can load the rtlwifi driver for Realtek wireless hardware. Server exposure is usually limited unless such hardware or modules are present. Downstream advisories from Debian LTS and Siemens indicate distribution or product tracking may matter.
Exploitation context
The source bundle does not identify active exploitation, public exploit code, or KEV listing. The CVSS vector requires local access with low privileges and no user interaction. Treat this as a local availability risk unless vendor advisories provide stronger evidence.
Researcher notes
The strongest evidence is the kernel commit narrative: failed probe cleanup order caused leaks and invalid access. Version range details in the bundle are incomplete for precise fleet matching, so validate against vendor kernel packages and stable branch fix commits.
Mitigation direction
Update affected Linux kernels using vendor-supported packages or stable kernel fixes.
Prioritize laptops, workstations, appliances, or embedded systems using Realtek rtlwifi hardware.
Review Debian LTS or Siemens guidance where those distributions or products are deployed.
If patching is delayed, evaluate whether the rtlwifi driver is needed on affected systems.
Validation and detection
Inventory kernel versions and compare them with vendor CVE guidance.
Check whether rtlwifi modules or Realtek wireless PCI hardware are present.
Review package advisories from the operating system or product vendor.
Confirm updated kernels include the referenced stable fix commits.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-401: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-401 · source CWE mapping
Missing Release of Memory after Effective Lifetime
Missing Release of Memory after Effective Lifetime represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.