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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-07T15:19:41.028Z
- **Modified:** 2026-11-05T21:17:30.310Z

## Who should check

- Anyone running Linux \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 6719e3797ec52cd144c8a5ba8aaab36674800585; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< d9899318660791141ea6002fda5577b2c5d7386e; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 320d760a35273aa815d58b57e4fd9ba5279a3489; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 59073060fe0950c6ecbe12bdc06469dcac62128d; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 9b9356a3014123f0ce4b50d9278c1265173150ab; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< f0931fc8f4b6847c72e170d2326861c0a081d680; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 8f02d538878c9b1501f624595eb22ee4e5e0ff84; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 7654cc03eb699297130b693ec34e25f77b17c947
- Anyone running Linux 2.6.35

## Description

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.

## Affected and fixed versions

- Linux: \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 6719e3797ec52cd144c8a5ba8aaab36674800585; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< d9899318660791141ea6002fda5577b2c5d7386e; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 320d760a35273aa815d58b57e4fd9ba5279a3489; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 59073060fe0950c6ecbe12bdc06469dcac62128d; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 9b9356a3014123f0ce4b50d9278c1265173150ab; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< f0931fc8f4b6847c72e170d2326861c0a081d680; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 8f02d538878c9b1501f624595eb22ee4e5e0ff84; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 7654cc03eb699297130b693ec34e25f77b17c947 (cvelist)
- Linux: 2.6.35 (cvelist)

## Mitigation

- Upgrade Linux to 7654cc03eb699297130b693ec34e25f77b17c947 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53641. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53641.md
Affected: Linux >= fb9987d0f748c983bb795a86f47522313f701a08, < 6719e3797ec52cd144c8a5ba8aaab36674800585; >= fb9987d0f748c983bb795a86f47522313f701a08, < d9899318660791141ea6002fda5577b2c5d7386e; >= fb9987d0f748c983bb795a86f47522313f701a08, < 320d760a35273aa815d58b57e4fd9ba5279a3489; >= fb9987d0f748c983bb795a8…
Fixed in: Linux 6719e3797ec52cd144c8a5ba8aaab36674800585, Linux 320d760a35273aa815d58b57e4fd9ba5279a3489, Linux 59073060fe0950c6ecbe12bdc06469dcac62128d, Linux 9b9356a3014123f0ce4b50d9278c1265173150ab, Linux 8f02d538878c9b1501f624595eb22ee4e5e0ff84, Linux 7654cc03eb699297130b693ec34e25f77b17c947

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53641 being exploited?

There is no confirmed exploitation: CVE-2023-53641 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53641?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53641?

Linux \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 6719e3797ec52cd144c8a5ba8aaab36674800585; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< d9899318660791141ea6002fda5577b2c5d7386e; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 320d760a35273aa815d58b57e4fd9ba5279a3489; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 59073060fe0950c6ecbe12bdc06469dcac62128d; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 9b9356a3014123f0ce4b50d9278c1265173150ab; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< f0931fc8f4b6847c72e170d2326861c0a081d680; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 8f02d538878c9b1501f624595eb22ee4e5e0ff84; \>= fb9987d0f748c983bb795a86f47522313f701a08, \< 7654cc03eb699297130b693ec34e25f77b17c947; Linux 2.6.35.

### Is there a fix for CVE-2023-53641?

Yes. Fixed in Linux 6719e3797ec52cd144c8a5ba8aaab36674800585, Linux 320d760a35273aa815d58b57e4fd9ba5279a3489, Linux 59073060fe0950c6ecbe12bdc06469dcac62128d, Linux 9b9356a3014123f0ce4b50d9278c1265173150ab, Linux 8f02d538878c9b1501f624595eb22ee4e5e0ff84, Linux 7654cc03eb699297130b693ec34e25f77b17c947. Upgrade Linux to 7654cc03eb699297130b693ec34e25f77b17c947 or later.

### How do I check if I'm affected by CVE-2023-53641?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6719e3797ec52cd144c8a5ba8aaab36674800585>
- patch: <https://git.kernel.org/stable/c/d9899318660791141ea6002fda5577b2c5d7386e>
- patch: <https://git.kernel.org/stable/c/320d760a35273aa815d58b57e4fd9ba5279a3489>
- patch: <https://git.kernel.org/stable/c/59073060fe0950c6ecbe12bdc06469dcac62128d>
- patch: <https://git.kernel.org/stable/c/9b9356a3014123f0ce4b50d9278c1265173150ab>
- patch: <https://git.kernel.org/stable/c/f0931fc8f4b6847c72e170d2326861c0a081d680>
- patch: <https://git.kernel.org/stable/c/8f02d538878c9b1501f624595eb22ee4e5e0ff84>
- patch: <https://git.kernel.org/stable/c/7654cc03eb699297130b693ec34e25f77b17c947>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53641>

HTML: <https://flawdb.com/CVE-2023-53641> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53641>
