# CVE-2023-53641: wifi: ath9k: hif\_usb: fix memory leak of remain\_skbs

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-07 · Modified: 2026-11-05
- Aliases: UBUNTU-CVE-2023-53641, DEBIAN-CVE-2023-53641
- Record: https://cvemate.com/vulnerability/CVE-2023-53641 · JSON: https://cvemate.com/vulnerability/CVE-2023-53641/json

## Description

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

wifi: ath9k: hif_usb: fix memory leak of remain_skbs

hif_dev->remain_skb is allocated and used exclusively in
ath9k_hif_usb_rx_stream(). It is implied that an allocated remain_skb is
processed and subsequently freed (in error paths) only during the next
call of ath9k_hif_usb_rx_stream().

So, if the urbs are deallocated between those two calls due to the device
deinitialization or suspend, it is possible that ath9k_hif_usb_rx_stream()
is not called next time and the allocated remain_skb is leaked. Our local
Syzkaller instance was able to trigger that.

remain_skb makes sense when receiving two consecutive urbs which are
logically linked together, i.e. a specific data field from the first skb
indicates a cached skb to be allocated, memcpy'd with some data and
subsequently processed in the next call to ath9k_hif_usb_rx_stream(). Urbs
deallocation supposedly makes that link irrelevant so we need to free the
cached skb in those cases.

Fix the leak by introducing a function to explicitly free remain_skb (if
it is not NULL) when the rx urbs have been deallocated. remain_skb is NULL
when it has not been allocated at all (hif_dev struct is kzalloced) or
when it has been processed in next call to ath9k_hif_usb_rx_stream().

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.16%, percentile 5.364%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 127)

- debian linux (Debian): \< 6.1.37-1 \| \< 6.3.7-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-162.179 \| \< 5.15.0-79.86
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1109.118 \| \< 5.15.0-1042.47
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1041.46~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1109.118~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1109.118+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1115.122 \| \< 5.15.0-1045.52
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/6719e3797ec52cd144c8a5ba8aaab36674800585>
- <https://git.kernel.org/stable/c/d9899318660791141ea6002fda5577b2c5d7386e>
- <https://git.kernel.org/stable/c/320d760a35273aa815d58b57e4fd9ba5279a3489>
- <https://git.kernel.org/stable/c/59073060fe0950c6ecbe12bdc06469dcac62128d>
- <https://git.kernel.org/stable/c/9b9356a3014123f0ce4b50d9278c1265173150ab>
- <https://git.kernel.org/stable/c/f0931fc8f4b6847c72e170d2326861c0a081d680>
- <https://git.kernel.org/stable/c/8f02d538878c9b1501f624595eb22ee4e5e0ff84>
- <https://git.kernel.org/stable/c/7654cc03eb699297130b693ec34e25f77b17c947>
- <https://ubuntu.com/security/CVE-2023-53641>
- <https://www.cve.org/CVERecord?id=CVE-2023-53641>
- <https://git.kernel.org/linus/7654cc03eb699297130b693ec34e25f77b17c947>
- <https://security-tracker.debian.org/tracker/CVE-2023-53641>

---

Data as of 2026-12-06T05:02:39.672Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
