CVE-2026-63821

Source
https://cve.org/CVERecord?id=CVE-2026-63821
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63821.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-63821
Downstream
Published
2026-07-19T12:02:18.751Z
Modified
2026-07-21T03:47:27.815042455Z
Summary
wifi: rtw88: usb: fix memory leaks on USB write failures
Details

In the Linux kernel, the following vulnerability has been resolved:

wifi: rtw88: usb: fix memory leaks on USB write failures

When rtwusbwrite_port() fails to submit a USB Request Block (URB) (e.g., due to device disconnect or ENOMEM), the completion callback is never executed.

Currently, the driver ignores the return value of rtwusbwriteport() in rtwusbwritedata() and rtwusbtxaggskb(). Because these functions rely on the completion callback to free the socket buffers (skbs) and the transaction control block (txcb), a submission failure results in: 1. A memory leak of the allocated skb in rtwusbwritedata(). 2. A memory leak of the txcb structure and all aggregated skbs in rtwusbtxagg_skb().

Fix this by checking the return value of rtwusbwriteport(). If it fails, explicitly free the skb in rtwusbwritedata(), and properly purge the txackqueue and free the txcb in rtwusbtxaggskb().

The issue was discovered in practice during device disconnect/reconnect scenarios and memory pressure conditions. Tested by verifying normal TX operation continues after the fix without regressions.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63821.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a82dfd33d1237f6c0fb8a7077022189d1fc7ec98
Fixed
2b2060c2075a72bc2de43ce5e1b9347d6c5e27bb
Fixed
53fed4061a09755de99c89fdc7fae5b794da455f
Fixed
200d58c851b8f63f77a05570072dd20f79bc3681
Fixed
8206d173d18ef5a077423119f4e9a93cb3a6f4eb
Fixed
6b964941bbfe6e0f18b1a5e008486dbb62df440a

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63821.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.144
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.95
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.38
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63821.json"