Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 802883D16FD for ; Mon, 10 Aug 2026 12:10:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363847; cv=none; b=ZxV19rjNXiYJcR5+Vaazk8m+n1b5PyeWezAn3KPkXx/kRWYbLEOKaBPi8jC6Ca7OEYhe/GmuOXNJII0JwDTyU1JsKMLsxldYEBQidC1LKYxk7VY18vc0O8ifONEagWUAXfV8hYdOiGXWlp/hio8UOqC1VUrHn6cBpmeG3GY0FJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363847; c=relaxed/simple; bh=fma2CKLuCJElSVZnKnUrreI3Ivs4S5YtjdP1zaXw8fg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=IRt0epDO9EdjYxRAtZUCfW67ADwGjaKvBXXE8RC8Q0t0NqfDLCc75F5AKgXyqV+dj3BZb04SuKOZqEIE/gNh74VRKtataipfkYIPYsP7NwrNAG3EdHA6kmS18Ju6FwGSquUfJ6KY9T/033OYpJOG0GupInvxiQuTUXdEtoy9goc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eJmN+Nxv; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="eJmN+Nxv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 016311F000E9; Mon, 10 Aug 2026 12:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363846; bh=1YC5wO8zheXPNrLRa5NQ1lkNy2o/iKOJlXStVUjIyqU=; h=From:To:Cc:Subject:Date:Reply-To; b=eJmN+Nxv9nOX9P1sWieS73cBLklpeN1l6qpAzNeg9yo+yVvHWoBh04eOJgKZ7WYvN SLBacHUHIzDhCcfDqqZfcATEOX1Wqeiq51akmSuUm8pC0VyahrGPEmtNO8XmA3EQsQ CxTbwGtXqs7UPusxFTq6FmDk3qwfLoK7xa/Vhgv0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68330: net: airoha: Fix DMA direction for NPU mailbox buffer Date: Mon, 10 Aug 2026 14:00:47 +0200 Message-ID: <2026081035-CVE-2026-68330-b794@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3317; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wEZiqU21gXyaklW8zZVvwV7XAeKsD/6TPSjMYNARXw0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe9YHuDkmzNv1+com1mXqiVfi0nh6ztVwdWa6LpKWK 064o6HXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMJXc0wP3TtrXfGnDMvH74f 90IokJs5/ZNuKsOCrSdf1c5z8+Rocj1htmbl7W0dJz69BgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: airoha: Fix DMA direction for NPU mailbox buffer airoha_npu_send_msg() always maps the mailbox buffer with DMA_TO_DEVICE, but some callers expect the NPU to write response data back into the same buffer: - airoha_npu_wlan_msg_get() (NPU_OP_GET): NPU writes response into the buffer, then the caller reads it via memcpy() - airoha_npu_ppe_stats_setup() (NPU_OP_SET): NPU writes back npu_stats_addr field in the response On non-cache-coherent architectures like EN7581 (Cortex-A53 without hardware cache coherency for NPU DMA), DMA_TO_DEVICE unmap is a no-op — it does not invalidate the CPU cache. If the NPU-written cache line is still present in the CPU cache when the caller reads the buffer, the CPU observes stale data instead of the NPU response. This is a timing-sensitive bug: small mailbox buffers (~24 bytes) typically fit in a single cache line and may survive in the cache until the caller reads them, producing silent data corruption rather than a crash. The bug is more likely to trigger when the caller reads the response immediately after dma_unmap_single() without intervening cache-evicting operations. Fix by using DMA_BIDIRECTIONAL for both map and unmap, which ensures dma_unmap_single() invalidates the CPU cache on non-coherent systems. The mailbox buffers are small so there is no performance concern. The Linux kernel CVE team has assigned CVE-2026-68330 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit c52918744ee1e49cea86622a2633b9782446428f and fixed in 6.18.42 with commit 76fc5604308a109bf5838c2a0a0eb3ac6819f1ea Issue introduced in 6.16 with commit c52918744ee1e49cea86622a2633b9782446428f and fixed in 7.1.6 with commit 4c4d866a64f36718cbcdf20add372a599dd44311 Issue introduced in 6.16 with commit c52918744ee1e49cea86622a2633b9782446428f and fixed in 7.2-rc5 with commit 6f884eb87a79e0c482baef2ad96c96b81d024235 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-2026-68330 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/ethernet/airoha/airoha_npu.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/76fc5604308a109bf5838c2a0a0eb3ac6819f1ea https://git.kernel.org/stable/c/4c4d866a64f36718cbcdf20add372a599dd44311 https://git.kernel.org/stable/c/6f884eb87a79e0c482baef2ad96c96b81d024235