# CVE-2022-50716: wifi: ar5523: Fix use-after-free on ar5523\_cmd() timed out

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2025-12-24T12:22:40.461Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< c9ba3fbf6a488da6cad1d304c5234bd8d729eba3; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 340524ae7b53a72cf5d9e7bd7790433422b3b12f; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 6447beefd21326a3f4719ec2ea511df797f6c820; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 7360b323e0343ea099091d4ae09576dbe1f09516; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 8af52492717e3538eba3f81d012b1476af8a89a6; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 3eca9697c2f3905dea3ad2fc536ebaa1fbd735bd; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 601ae89375033ac4870c086e24ba03f235d38e55; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 9aef34e1ae35a87e5f6a22278c17823b7ce64c88; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< b6702a942a069c2a975478d719e98d83cdae1797
- Anyone running Linux 3.8

## Description

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

wifi: ar5523: Fix use-after-free on ar5523\_cmd() timed out

syzkaller reported use-after-free with the stack trace like below \[1\]:

\[   38.960489\]\[    C3\] ==================================================================
\[   38.963216\]\[    C3\] BUG: KASAN: use-after-free in ar5523\_cmd\_tx\_cb+0x220/0x240
\[   38.964950\]\[    C3\] Read of size 8 at addr ffff888048e03450 by task swapper/3/0
\[   38.966363\]\[    C3\]
\[   38.967053\]\[    C3\] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.0.0-09039-ga6afa4199d3d-dirty \#18
\[   38.968464\]\[    C3\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-1.fc36 04/01/2014
\[   38.969959\]\[    C3\] Call Trace:
\[   38.970841\]\[    C3\]  \<IRQ\>
\[   38.971663\]\[    C3\]  dump\_stack\_lvl+0xfc/0x174
\[   38.972620\]\[    C3\]  print\_report.cold+0x2c3/0x752
\[   38.973626\]\[    C3\]  ? ar5523\_cmd\_tx\_cb+0x220/0x240
\[   38.974644\]\[    C3\]  kasan\_report+0xb1/0x1d0
\[   38.975720\]\[    C3\]  ? ar5523\_cmd\_tx\_cb+0x220/0x240
\[   38.976831\]\[    C3\]  ar5523\_cmd\_tx\_cb+0x220/0x240
\[   38.978412\]\[    C3\]  \_\_usb\_hcd\_giveback\_urb+0x353/0x5b0
\[   38.979755\]\[    C3\]  usb\_hcd\_giveback\_urb+0x385/0x430
\[   38.981266\]\[    C3\]  dummy\_timer+0x140c/0x34e0
\[   38.982925\]\[    C3\]  ? notifier\_call\_chain+0xb5/0x1e0
\[   38.984761\]\[    C3\]  ? rcu\_read\_lock\_sched\_held+0xb/0x60
\[   38.986242\]\[    C3\]  ? lock\_release+0x51c/0x790
\[   38.987323\]\[    C3\]  ? \_raw\_read\_unlock\_irqrestore+0x37/0x70
\[   38.988483\]\[    C3\]  ? \_\_wake\_up\_common\_lock+0xde/0x130
\[   38.989621\]\[    C3\]  ? reacquire\_held\_locks+0x4a0/0x4a0
\[   38.990777\]\[    C3\]  ? lock\_acquire+0x472/0x550
\[   38.991919\]\[    C3\]  ? rcu\_read\_lock\_sched\_held+0xb/0x60
\[   38.993138\]\[    C3\]  ? lock\_acquire+0x472/0x550
\[   38.994890\]\[    C3\]  ? dummy\_urb\_enqueue+0x860/0x860
\[   38.996266\]\[    C3\]  ? do\_raw\_spin\_unlock+0x16f/0x230
\[   38.997670\]\[    C3\]  ? dummy\_urb\_enqueue+0x860/0x860
\[   38.999116\]\[    C3\]  call\_timer\_fn+0x1a0/0x6a0
\[   39.000668\]\[    C3\]  ? add\_timer\_on+0x4a0/0x4a0
\[   39.002137\]\[    C3\]  ? reacquire\_held\_locks+0x4a0/0x4a0
\[   39.003809\]\[    C3\]  ? \_\_next\_timer\_interrupt+0x226/0x2a0
\[   39.005509\]\[    C3\]  \_\_run\_timers.part.0+0x69a/0xac0
\[   39.007025\]\[    C3\]  ? dummy\_urb\_enqueue+0x860/0x860
\[   39.008716\]\[    C3\]  ? call\_timer\_fn+0x6a0/0x6a0
\[   39.010254\]\[    C3\]  ? cpuacct\_percpu\_seq\_show+0x10/0x10
\[   39.011795\]\[    C3\]  ? kvm\_sched\_clock\_read+0x14/0x40
\[   39.013277\]\[    C3\]  ? sched\_clock\_cpu+0x69/0x2b0
\[   39.014724\]\[    C3\]  run\_timer\_softirq+0xb6/0x1d0
\[   39.016196\]\[    C3\]  \_\_do\_softirq+0x1d2/0x9be
\[   39.017616\]\[    C3\]  \_\_irq\_exit\_rcu+0xeb/0x190
\[   39.019004\]\[    C3\]  irq\_exit\_rcu+0x5/0x20
\[   39.020361\]\[    C3\]  sysvec\_apic\_timer\_interrupt+0x8f/0xb0
\[   39.021965\]\[    C3\]  \</IRQ\>
\[   39.023237\]\[    C3\]  \<TASK\>

In ar5523\_probe(), ar5523\_host\_available() calls ar5523\_cmd() as below
(there are other functions which finally call ar5523\_cmd()):

ar5523\_probe()
-\> ar5523\_host\_available()
   -\> ar5523\_cmd\_read()
      -\> ar5523\_cmd()

If ar5523\_cmd() timed out, then ar5523\_host\_available() failed and
ar5523\_probe() freed the device structure.  So, ar5523\_cmd\_tx\_cb()
might touch the freed structure.

This patch fixes this issue by canceling in-flight tx cmd if submitted
urb timed out.

## Affected and fixed versions

- Linux: \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< c9ba3fbf6a488da6cad1d304c5234bd8d729eba3; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 340524ae7b53a72cf5d9e7bd7790433422b3b12f; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 6447beefd21326a3f4719ec2ea511df797f6c820; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 7360b323e0343ea099091d4ae09576dbe1f09516; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 8af52492717e3538eba3f81d012b1476af8a89a6; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 3eca9697c2f3905dea3ad2fc536ebaa1fbd735bd; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 601ae89375033ac4870c086e24ba03f235d38e55; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 9aef34e1ae35a87e5f6a22278c17823b7ce64c88; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< b6702a942a069c2a975478d719e98d83cdae1797 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50716.md
Affected: Linux >= b7d572e1871df06a96a1c9591c71c5494ff6b624, < c9ba3fbf6a488da6cad1d304c5234bd8d729eba3; >= b7d572e1871df06a96a1c9591c71c5494ff6b624, < 340524ae7b53a72cf5d9e7bd7790433422b3b12f; >= b7d572e1871df06a96a1c9591c71c5494ff6b624, < 6447beefd21326a3f4719ec2ea511df797f6c820; >= b7d572e1871df06a96a1c95…
Fixed in: Linux 340524ae7b53a72cf5d9e7bd7790433422b3b12f, Linux 6447beefd21326a3f4719ec2ea511df797f6c820, Linux 7360b323e0343ea099091d4ae09576dbe1f09516, Linux 8af52492717e3538eba3f81d012b1476af8a89a6, Linux 3eca9697c2f3905dea3ad2fc536ebaa1fbd735bd, Linux 601ae89375033ac4870c086e24ba03f235d38e55, Linux 9aef3…

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-2022-50716 being exploited?

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

### How serious is CVE-2022-50716?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50716?

Linux \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< c9ba3fbf6a488da6cad1d304c5234bd8d729eba3; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 340524ae7b53a72cf5d9e7bd7790433422b3b12f; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 6447beefd21326a3f4719ec2ea511df797f6c820; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 7360b323e0343ea099091d4ae09576dbe1f09516; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 8af52492717e3538eba3f81d012b1476af8a89a6; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 3eca9697c2f3905dea3ad2fc536ebaa1fbd735bd; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 601ae89375033ac4870c086e24ba03f235d38e55; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< 9aef34e1ae35a87e5f6a22278c17823b7ce64c88; \>= b7d572e1871df06a96a1c9591c71c5494ff6b624, \< b6702a942a069c2a975478d719e98d83cdae1797; Linux 3.8.

### Is there a fix for CVE-2022-50716?

Yes. Fixed in Linux 340524ae7b53a72cf5d9e7bd7790433422b3b12f, Linux 6447beefd21326a3f4719ec2ea511df797f6c820, Linux 7360b323e0343ea099091d4ae09576dbe1f09516, Linux 8af52492717e3538eba3f81d012b1476af8a89a6, Linux 3eca9697c2f3905dea3ad2fc536ebaa1fbd735bd, Linux 601ae89375033ac4870c086e24ba03f235d38e55, Linux 9aef34e1ae35a87e5f6a22278c17823b7ce64c88. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50716?

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

- other: <https://git.kernel.org/stable/c/c9ba3fbf6a488da6cad1d304c5234bd8d729eba3>
- other: <https://git.kernel.org/stable/c/340524ae7b53a72cf5d9e7bd7790433422b3b12f>
- other: <https://git.kernel.org/stable/c/6447beefd21326a3f4719ec2ea511df797f6c820>
- other: <https://git.kernel.org/stable/c/7360b323e0343ea099091d4ae09576dbe1f09516>
- other: <https://git.kernel.org/stable/c/8af52492717e3538eba3f81d012b1476af8a89a6>
- other: <https://git.kernel.org/stable/c/3eca9697c2f3905dea3ad2fc536ebaa1fbd735bd>
- other: <https://git.kernel.org/stable/c/601ae89375033ac4870c086e24ba03f235d38e55>
- other: <https://git.kernel.org/stable/c/9aef34e1ae35a87e5f6a22278c17823b7ce64c88>
- other: <https://git.kernel.org/stable/c/b6702a942a069c2a975478d719e98d83cdae1797>

## 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-2022-50716>

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