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

CVE-2022-50829
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.28 % · centile 21 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Deferred

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.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 3deff76095c4ac4252e27c537db3041f619c23a2 < 5e8751a977a49a6e00cce1a8da5ca16da83f9c8c ; affected 3deff76095c4ac4252e27c537db3041f619c23a2 < f127c2b4c967025e5c3a4ce7e13b79135d46a33d ; affected 3deff76095c4ac4252e27c537db3041f619c23a2 < 0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f ; affected 3deff76095c4ac4252e27c537db3041f619c23a2 < 988bd27de2484faf17afe0408db2e3d9e5ac61fc ; affected 3deff76095c4ac4252e27c537db3041f619c23a2 < 98d9172822dc6f38138333941984bd759a89d419 ; affected 3deff76095c4ac4252e27c537db3041f619c23a2 < 355f16f756aad0c95cdaa0c14a34ab4137d32815
Linux · Linuxaffected 3.0 ; unaffected 0 < 3.0 ; unaffected 4.9.337 ≤ 4.9.* ; unaffected 4.14.303 ≤ 4.14.* ; unaffected 4.19.270 ≤ 4.19.* ; unaffected 5.4.229 ≤ 5.4.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD