Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B70DD3009F0 for ; Mon, 15 Sep 2025 14:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946192; cv=none; b=CDi2nj8x+5nbb4g3Au8aSd5nYq8Vc2vMBRRKoOu8G6lxMxBozuSymeGP2yO/yZVPteDnNr7pT5rA7dslZLb44uunHY+QsWnFnpBfoI6+Dr5aqvyQTWUsdEONk/l/KVU64Vk3zEumHS5cSlXNnVacHTx/aMgOGaXAU/KdJCH9Xdw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946192; c=relaxed/simple; bh=UxZ12sHb2fEtFh8rHHhe/JXDfZFR2y9YNfqfEq7TbN0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dVm8zzUOcLU968Yb77sNtJIP6Z9VhowOpnkaUhKlPvpEmgJPWlfejw91nhQ4SZPBWfwedvdZEEHq6qNynbnXVA0I6nMRYC7dUrciQEFNpK3tDZ+/RCnJJkiATIf5lSBz7AUbpNNh4ZNZAqPRqe8fgbbsywiUr5D87glP+KHanhA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E3f2lPs+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="E3f2lPs+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9709C4CEF1; Mon, 15 Sep 2025 14:23:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946192; bh=UxZ12sHb2fEtFh8rHHhe/JXDfZFR2y9YNfqfEq7TbN0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E3f2lPs+zXELxJXqEzepMzMgAqw7jxM7LYH8Q0A1XAg9+BR710zAJ1D7afk2WY8tK bDM0eo3U5KTlJaB0otRgaYV/bG13qba1StZXF/5zbkkHtBT2AOAoqPuMUcNySiky62 jsVZLr1JEa2i7Rg9oc6mDvLVC0tPBArNTKsIZTqY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53199: wifi: ath9k: hif_usb: clean up skbs if ath9k_hif_usb_rx_stream() fails Date: Mon, 15 Sep 2025 16:21:33 +0200 Message-ID: <2025091509-CVE-2023-53199-8a8c@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3737; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=B3RLXZGNxxGS48lU571akIFnwOTOmSe0a56NXQpYB4w=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFK5uN/lXVfyeOfLgqaen9y77tjpWZI3roZd3FkX/b 5u7zfKRRUcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMZOVthrmyOsvz3E4dX3fl k3tz5j4B1u8xf3cwLDhxQbSpyOHL5fsBErF7GTv3FzqKHgAA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k: hif_usb: clean up skbs if ath9k_hif_usb_rx_stream() fails Syzkaller detected a memory leak of skbs in ath9k_hif_usb_rx_stream(). While processing skbs in ath9k_hif_usb_rx_stream(), the already allocated skbs in skb_pool are not freed if ath9k_hif_usb_rx_stream() fails. If we have an incorrect pkt_len or pkt_tag, the input skb is considered invalid and dropped. All the associated packets already in skb_pool should be dropped and freed. Added a comment describing this issue. The patch also makes remain_skb NULL after being processed so that it cannot be referenced after potential free. The initialization of hif_dev fields which are associated with remain_skb (rx_remain_len, rx_transfer_len and rx_pad_len) is moved after a new remain_skb is allocated. Found by Linux Verification Center (linuxtesting.org) with Syzkaller. The Linux kernel CVE team has assigned CVE-2023-53199 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.38 with commit 44b23b488d44e56d467764ecb661830e5b02b308 and fixed in 4.19.276 with commit 3fc6401fafde11712a83089fa2cc874cfd10e2cd Issue introduced in 2.6.38 with commit 44b23b488d44e56d467764ecb661830e5b02b308 and fixed in 5.4.235 with commit cd8316767099920a5d41feed1afab0c482a43e9f Issue introduced in 2.6.38 with commit 44b23b488d44e56d467764ecb661830e5b02b308 and fixed in 5.10.173 with commit f26dd69f61eff2eedf5df2d199bdd23108309947 Issue introduced in 2.6.38 with commit 44b23b488d44e56d467764ecb661830e5b02b308 and fixed in 5.15.99 with commit 61490d2710277e8a55009b7682456ae22f8087cf Issue introduced in 2.6.38 with commit 44b23b488d44e56d467764ecb661830e5b02b308 and fixed in 6.1.16 with commit 9acdec72787af1bc8ed92711b52118c8e3e638a2 Issue introduced in 2.6.38 with commit 44b23b488d44e56d467764ecb661830e5b02b308 and fixed in 6.2.3 with commit c766e37fccd5a5c5059be7efcd9618bf8a2c17c3 Issue introduced in 2.6.38 with commit 44b23b488d44e56d467764ecb661830e5b02b308 and fixed in 6.3 with commit 0af54343a76263a12dbae7fafb64eb47c4a6ad38 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2023-53199 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/wireless/ath/ath9k/hif_usb.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/3fc6401fafde11712a83089fa2cc874cfd10e2cd https://git.kernel.org/stable/c/cd8316767099920a5d41feed1afab0c482a43e9f https://git.kernel.org/stable/c/f26dd69f61eff2eedf5df2d199bdd23108309947 https://git.kernel.org/stable/c/61490d2710277e8a55009b7682456ae22f8087cf https://git.kernel.org/stable/c/9acdec72787af1bc8ed92711b52118c8e3e638a2 https://git.kernel.org/stable/c/c766e37fccd5a5c5059be7efcd9618bf8a2c17c3 https://git.kernel.org/stable/c/0af54343a76263a12dbae7fafb64eb47c4a6ad38