CVE-2025-71273

wifi: rtw88: Use devm_kmemdup() in rtw_set_supported_band()

Published May 6, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

wifi: rtw88: Use devm_kmemdup() in rtw_set_supported_band()

Simplify the code by using device managed memory allocations.

This also fixes a memory leak in rtw_register_hw(). The supported bands
were not freed in the error path.

Copied from commit 145df52a8671 ("wifi: rtw89: Convert
rtw89_core_set_supported_band to use devm_*").

Analysis

AI-generated

Technical impact

In the Linux kernel’s rtw88 Wi‑Fi driver, a memory allocation performed in rtw_register_hw() was not released when the driver encountered an error. The allocation used a manual kmemdup that required explicit free; the error path omitted this cleanup, creating a memory leak. The fix replaces the allocation with a device‑managed devm_kmemdup, which automatically frees the memory when the driver unloads or on error. This weakness matches CWE‑772 and can cause kernel memory exhaustion over time, potentially leading to a panic or forced reboot. The flaw does not enable arbitrary code execution or data disclosure.

Affected Systems

The vulnerability affects all Linux kernel versions that ship the rtw88 driver without the commit that changes rtw_set_supported_band() to use devm_kmemdup. This assessment is inferred from the commit references, as specific affected versions are not listed in the CVE data. The rtw89 driver contains a similar issue, so kernels with that module without the commit are also affected. Distribution‑specific kernel packages should verify whether the change is already present before deciding on remediation. The known CNA vendors list includes Linux: Linux, confirming the entire kernel is impacted.

Risk and Exploitability

The CVSS score is 5.5. The EPSS score of 0.00023 (less than 1%) indicates a very low probability of exploitation and the vulnerability is not listed in CISA’s KEV catalog, indicating no known public exploitation. However, the memory leak can be exercised by any process that is able to trigger an error condition in the driver – for example, by loading, unloading, or reinitializing the Wi‑Fi module. Based on the description, it is inferred that the attack requires local access to the system, at most requiring elevated privilege to load the driver. Repeated exploitation can eventually exhaust kernel memory, causing a denial of service. Because no arbitrary code execution is possible, the risk is limited to local privilege or root, but the potential outage can be severe.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes commit 145df52a8671, ensuring rtw_set_supported_band() uses devm_kmemdup.
  • If an immediate kernel upgrade is not possible, unload or blacklist the rtw88 (and rtw89) Wi‑Fi driver module to prevent the vulnerable code from executing.
  • Monitor kernel logs for repeated driver errors and look for signs of memory usage growth; if kernel memory exhaustion is observed, reboot the system and plan to apply the patch as soon as possible.

Generated by OpenCVE AI on May 12, 2026 at 23:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4906-1 linux security update
Ubuntu USN Ubuntu USN USN-8492-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8497-1 Linux kernel (Low Latency) vulnerabilities
Ubuntu USN Ubuntu USN USN-8498-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8499-1 Linux kernel (Xilinx) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-3 Linux kernel (Raspberry Pi Real-time) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-4 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-5 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-401
Metrics cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Weaknesses CWE-368
Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-368
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: wifi: rtw88: Use devm_kmemdup() in rtw_set_supported_band() Simplify the code by using device managed memory allocations. This also fixes a memory leak in rtw_register_hw(). The supported bands were not freed in the error path. Copied from commit 145df52a8671 ("wifi: rtw89: Convert rtw89_core_set_supported_band to use devm_*").
Title wifi: rtw88: Use devm_kmemdup() in rtw_set_supported_band()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 5, 2026, 9:23 PM
Reserved
Mar 17, 2026, 9:08 AM
Status
Modified
Published
May 6, 2026, 12:16 PM
Modified
Nov 5, 2026, 10:17 PM
Severity
Moderate
Public date
May 6, 2026, 12:00 AM