CVE-2022-50829

wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
May 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

Description

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

wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()

It is possible that skb is freed in ath9k_htc_rx_msg(), then usb_submit_urb() fails and we try to free skb again. It causes use-after-free bug. Moreover, if alloc_skb() fails, urb->context becomes NULL but rx_buf is not freed and there can be a memory leak.

The patch removes unnecessary nskb and makes skb processing more clear: it is supposed that ath9k_htc_rx_msg() either frees old skb or passes its managing to another callback function.

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 3deff76095c4ac4252e27c537db3041f619c23a2 to before 5e8751a977a49a6e00cce1a8da5ca16da83f9c8cAffected
  • 3deff76095c4ac4252e27c537db3041f619c23a2 to before f127c2b4c967025e5c3a4ce7e13b79135d46a33dAffected
  • 3deff76095c4ac4252e27c537db3041f619c23a2 to before 0c8dd2ea4b419da96ab4953e4967e9363e2f8a4fAffected
  • 3deff76095c4ac4252e27c537db3041f619c23a2 to before 988bd27de2484faf17afe0408db2e3d9e5ac61fcAffected
  • 3deff76095c4ac4252e27c537db3041f619c23a2 to before 98d9172822dc6f38138333941984bd759a89d419Affected
  • 3deff76095c4ac4252e27c537db3041f619c23a2 to before 355f16f756aad0c95cdaa0c14a34ab4137d32815Affected
  • 3deff76095c4ac4252e27c537db3041f619c23a2 to before 53b9bb1a00c4285ee7f58a11129dbea015db61bcAffected
  • 3deff76095c4ac4252e27c537db3041f619c23a2 to before 71fc0ad671a62c494d2aec731baeabd3bfe6c95dAffected
  • 3deff76095c4ac4252e27c537db3041f619c23a2 to before dd95f2239fc846795fc926787c3ae0ca701c9840Affected
LinuxLinux
  • 3.0Affected
  • before 3.0Not affected
  • 4.9.337 through 4.9.*Not affected
  • 4.14.303 through 4.14.*Not affected
  • 4.19.270 through 4.19.*Not affected
  • 5.4.229 through 5.4.*Not affected
  • 5.10.163 through 5.10.*Not affected
  • 5.15.86 through 5.15.*Not affected
  • 6.0.16 through 6.0.*Not affected
  • 6.1.2 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.