CVE-2024-58063

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

5.5 medium EPSS 0.23%

Published 6 Mar 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-58063

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-58063 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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").

Severity (CVSS)

5.5 medium CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.2% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 1 Oct 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 0c8173385e549f95cd80c3fff5aab87b4f881d8d, before 85b67b4c4a0f8a6fb20cf4ef7684ff2b0cf559df
affected from 0c8173385e549f95cd80c3fff5aab87b4f881d8d, before 455e0f40b5352186a9095f2135d5c89255e7c39a
affected from 0c8173385e549f95cd80c3fff5aab87b4f881d8d, before b96371339fd9cac90f5ee4ac17ee5c4cbbdfa6f7
affected from 0c8173385e549f95cd80c3fff5aab87b4f881d8d, before ee0b0d7baa8a6d42c7988f6e50c8f164cdf3fa47
affected from 0c8173385e549f95cd80c3fff5aab87b4f881d8d, before 624cea89a0865a2bc3e00182a6b0f954a94328b4
affected from 0c8173385e549f95cd80c3fff5aab87b4f881d8d, before 32acebca0a51f5e372536bfdc0d7d332ab749013
affected from 0c8173385e549f95cd80c3fff5aab87b4f881d8d, before 6b76bab5c257463302c9e97f5d84d524457468eb
affected from 0c8173385e549f95cd80c3fff5aab87b4f881d8d, before e7ceefbfd8d447abc8aca8ab993a942803522c06
Other versions: unaffected
Linux
affected 2.6.38
unaffected before 2.6.38
unaffected from 5.4.291 up to and including 5.4.*
unaffected from 5.10.235 up to and including 5.10.*
unaffected from 5.15.179 up to and including 5.15.*
unaffected from 6.1.129 up to and including 6.1.*
unaffected from 6.6.76 up to and including 6.6.*
unaffected from 6.12.13 up to and including 6.12.*
unaffected from 6.13.2 up to and including 6.13.*
unaffected 6.14 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-58063 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-58063

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-58063
trivy image --scanners vuln IMAGE | grep CVE-2024-58063

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-58063 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.