{"id":"CVE-2022-50829","summary":"wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()\n\nIt is possible that skb is freed in ath9k_htc_rx_msg(), then\nusb_submit_urb() fails and we try to free skb again. It causes\nuse-after-free bug. Moreover, if alloc_skb() fails, urb-\u003econtext becomes\nNULL but rx_buf is not freed and there can be a memory leak.\n\nThe patch removes unnecessary nskb and makes skb processing more clear: it\nis supposed that ath9k_htc_rx_msg() either frees old skb or passes its\nmanaging to another callback function.\n\nFound by Linux Verification Center (linuxtesting.org) with Syzkaller.","modified":"2026-04-02T08:28:47.075098Z","published":"2025-12-30T12:10:51.434Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50829.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/355f16f756aad0c95cdaa0c14a34ab4137d32815"},{"type":"WEB","url":"https://git.kernel.org/stable/c/53b9bb1a00c4285ee7f58a11129dbea015db61bc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5e8751a977a49a6e00cce1a8da5ca16da83f9c8c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/71fc0ad671a62c494d2aec731baeabd3bfe6c95d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/988bd27de2484faf17afe0408db2e3d9e5ac61fc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/98d9172822dc6f38138333941984bd759a89d419"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dd95f2239fc846795fc926787c3ae0ca701c9840"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f127c2b4c967025e5c3a4ce7e13b79135d46a33d"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50829.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50829"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3deff76095c4ac4252e27c537db3041f619c23a2"},{"fixed":"5e8751a977a49a6e00cce1a8da5ca16da83f9c8c"},{"fixed":"f127c2b4c967025e5c3a4ce7e13b79135d46a33d"},{"fixed":"0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f"},{"fixed":"988bd27de2484faf17afe0408db2e3d9e5ac61fc"},{"fixed":"98d9172822dc6f38138333941984bd759a89d419"},{"fixed":"355f16f756aad0c95cdaa0c14a34ab4137d32815"},{"fixed":"53b9bb1a00c4285ee7f58a11129dbea015db61bc"},{"fixed":"71fc0ad671a62c494d2aec731baeabd3bfe6c95d"},{"fixed":"dd95f2239fc846795fc926787c3ae0ca701c9840"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50829.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"4.9.337"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"4.14.303"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50829.json"}}],"schema_version":"1.7.5"}