From mboxrd@z Thu Jan 1 00:00:00 1970 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 454DE182 for ; Wed, 21 Aug 2024 00:07:55 +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=1724198876; cv=none; b=Rz0MH7th2K6Y+/ZzENBM+v839owzmvKsvrxghtcXFdSGPFUqFRTjlLwcvr3YdfBpWD01sJnaMrtwMWhUbpMvAoAcgi1Uy6KRyBtXavIVb4iupcDig41Z1kPYFLy+ASq7fewuoGqgI7b4Y3XfuoFJBhP5YdAXKMRankQpUaKkVXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724198876; c=relaxed/simple; bh=ykTvatvPKzVidlY9ERrv6GkuLPp/gXGQRwKwn8DQ9Cc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=by6hg5a7IxVYdtZcS/TJOIHAoGhw4K6wLKLKwiTw66k0iYCzEYsQTcBA7RzwPDwM2EqlUfz06K0gSNUn0dVMYKxb0g8ys1BgI+PsyszzZguf7MeGYFRX7yInHrpZ/UmKCyOaNCzlWvJOqjeVxwu/WYrcpaQJral2V/1wtReX4/0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CLFB66aV; 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="CLFB66aV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EA23C4AF09; Wed, 21 Aug 2024 00:07:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724198875; bh=ykTvatvPKzVidlY9ERrv6GkuLPp/gXGQRwKwn8DQ9Cc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CLFB66aVG5zoPfwvaZIp+5qiSdY1+MuRREp3X19jMI/jEc3frYzJj/gt391OeBVeo JI/pPddTfYivyYdpCd37S3dcInD0XeaiWrC+/Siqrftp0qh1QUwYAt/uDwZseZtyzo wRvLmYt8VkeAySNLoWpuEu9jLz0ZFrZ22Lpcck3w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43881: wifi: ath12k: change DMA direction while mapping reinjected packets Date: Wed, 21 Aug 2024 08:07:45 +0800 Message-ID: <2024082138-CVE-2024-43881-ead4@gregkh> X-Mailer: git-send-email 2.46.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=2427; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ykTvatvPKzVidlY9ERrv6GkuLPp/gXGQRwKwn8DQ9Cc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlH9U8FLE9q8P807+HsP1PvzV06/dZDhnTd367r/zfLd bV9n3ZatyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm4pvOML/QLOvjlKCtj0rv Jx74Es8kevnQlSMM88yWOZt8/PzsgFJa95Oqkr/KG5s5rQE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: change DMA direction while mapping reinjected packets For fragmented packets, ath12k reassembles each fragment as a normal packet and then reinjects it into HW ring. In this case, the DMA direction should be DMA_TO_DEVICE, not DMA_FROM_DEVICE. Otherwise, an invalid payload may be reinjected into the HW and subsequently delivered to the host. Given that arbitrary memory can be allocated to the skb buffer, knowledge about the data contained in the reinjected buffer is lacking. Consequently, there’s a risk of private information being leaked. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.1.1-00209-QCAHKSWPL_SILICONZ-1 The Linux kernel CVE team has assigned CVE-2024-43881 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit d889913205cf and fixed in 6.6.44 with commit e99d9b16ff15 Issue introduced in 6.3 with commit d889913205cf and fixed in 6.10.3 with commit 6925320fcd40 Issue introduced in 6.3 with commit d889913205cf and fixed in 6.11-rc1 with commit 33322e3ef074 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-2024-43881 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/ath12k/dp_rx.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/e99d9b16ff153de9540073239d24adc3b0a3a997 https://git.kernel.org/stable/c/6925320fcd40d8042d32bf4ede8248e7a5315c3b https://git.kernel.org/stable/c/33322e3ef07409278a18c6919c448e369d66a18e