{"id":"CVE-2022-50829","state":"PUBLISHED","title":"wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()","description":"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->context 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.","publishedAt":"2025-12-30T12:10:51.434Z","updatedAt":"2026-05-11T19:25:55.400Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"5e8751a977a49a6e00cce1a8da5ca16da83f9c8c","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"f127c2b4c967025e5c3a4ce7e13b79135d46a33d","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"988bd27de2484faf17afe0408db2e3d9e5ac61fc","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"98d9172822dc6f38138333941984bd759a89d419","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"355f16f756aad0c95cdaa0c14a34ab4137d32815","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"53b9bb1a00c4285ee7f58a11129dbea015db61bc","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"71fc0ad671a62c494d2aec731baeabd3bfe6c95d","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"dd95f2239fc846795fc926787c3ae0ca701c9840","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath9k/hif_usb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.0","versionType":"semver"},{"version":"4.9.337","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.303","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.270","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.229","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.163","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.86","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath9k/hif_usb.c"]}],"references":["https://git.kernel.org/stable/c/5e8751a977a49a6e00cce1a8da5ca16da83f9c8c","https://git.kernel.org/stable/c/f127c2b4c967025e5c3a4ce7e13b79135d46a33d","https://git.kernel.org/stable/c/0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f","https://git.kernel.org/stable/c/988bd27de2484faf17afe0408db2e3d9e5ac61fc","https://git.kernel.org/stable/c/98d9172822dc6f38138333941984bd759a89d419","https://git.kernel.org/stable/c/355f16f756aad0c95cdaa0c14a34ab4137d32815","https://git.kernel.org/stable/c/53b9bb1a00c4285ee7f58a11129dbea015db61bc","https://git.kernel.org/stable/c/71fc0ad671a62c494d2aec731baeabd3bfe6c95d","https://git.kernel.org/stable/c/dd95f2239fc846795fc926787c3ae0ca701c9840"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50829.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50829","state":"PUBLISHED","datePublished":"2025-12-30T12:10:51.434Z","dateUpdated":"2026-05-11T19:25:55.400Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-30T12:06:07.132Z"},"containers":{"cna":{"title":"wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()","descriptions":[{"lang":"en","value":"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->context 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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"5e8751a977a49a6e00cce1a8da5ca16da83f9c8c","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"f127c2b4c967025e5c3a4ce7e13b79135d46a33d","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"988bd27de2484faf17afe0408db2e3d9e5ac61fc","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"98d9172822dc6f38138333941984bd759a89d419","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"355f16f756aad0c95cdaa0c14a34ab4137d32815","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"53b9bb1a00c4285ee7f58a11129dbea015db61bc","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"71fc0ad671a62c494d2aec731baeabd3bfe6c95d","versionType":"git"},{"version":"3deff76095c4ac4252e27c537db3041f619c23a2","status":"affected","lessThan":"dd95f2239fc846795fc926787c3ae0ca701c9840","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath9k/hif_usb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.0","versionType":"semver"},{"version":"4.9.337","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.303","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.270","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.229","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.163","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.86","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/ath/ath9k/hif_usb.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5e8751a977a49a6e00cce1a8da5ca16da83f9c8c"},{"url":"https://git.kernel.org/stable/c/f127c2b4c967025e5c3a4ce7e13b79135d46a33d"},{"url":"https://git.kernel.org/stable/c/0c8dd2ea4b419da96ab4953e4967e9363e2f8a4f"},{"url":"https://git.kernel.org/stable/c/988bd27de2484faf17afe0408db2e3d9e5ac61fc"},{"url":"https://git.kernel.org/stable/c/98d9172822dc6f38138333941984bd759a89d419"},{"url":"https://git.kernel.org/stable/c/355f16f756aad0c95cdaa0c14a34ab4137d32815"},{"url":"https://git.kernel.org/stable/c/53b9bb1a00c4285ee7f58a11129dbea015db61bc"},{"url":"https://git.kernel.org/stable/c/71fc0ad671a62c494d2aec731baeabd3bfe6c95d"},{"url":"https://git.kernel.org/stable/c/dd95f2239fc846795fc926787c3ae0ca701c9840"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:25:55.400Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"4.9.337"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"4.14.303"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"4.19.270"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"5.4.229"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"5.10.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"5.15.86"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"6.0.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"6.1.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}