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 5DDBA3B8932 for ; Wed, 25 Mar 2026 10:32:28 +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=1774434748; cv=none; b=qG9AhwvDJWE8lrU2NOEnEVWRcZk/9fm3Gu2gNdbmTPHl6FcvntVX5erYnSeLPeWhR0cL8UQdPGySmKw8StL8vE9Ym9I91yUoY2Dg73g8GGeybD1/jdRGZhlUn16qLFXjcl1rSioSGQMG6UkYdjZ78KE8gtzDdAYRZgTEO4x6qSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434748; c=relaxed/simple; bh=XFrWnGZDfNXXDGC5Bkk05SrFNv1ARsHX0YsHVXSRm70=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AaXDCOo5geVo5mpRx1Jfi5WQJF4lrYHW5pyIGEtS30B4FZvS5rt+tFkq0srhCkjdVgsTCpTqNHWZTyhZEoMgcanNk3kKzv9yZk3+xQZ4LqIHAkJ55Gwdin+6ZVKk0T3L8oIo1WOBVcc34996Fnr1bMHtfnfFvgGTkfsxOcj2pdg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lSC5Lw7b; 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="lSC5Lw7b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D96BC4CEF7; Wed, 25 Mar 2026 10:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434748; bh=XFrWnGZDfNXXDGC5Bkk05SrFNv1ARsHX0YsHVXSRm70=; h=From:To:Cc:Subject:Date:Reply-To:From; b=lSC5Lw7bYw9JHefg8Cl3xQK8k1ls/e4fmflioqAivQccYV+eHiT7N/1FPjmau3VDC 401CZj/Fj0ikg0fAsZ+cVZOfdUwLeNcuqc4rUUdY/JAqJj96xYJYf3bEUGTslwMrec cpNoiNWqRJVyZcvUFfihMzTA2SVYVptN8UW8ImgE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23386: gve: fix incorrect buffer cleanup in gve_tx_clean_pending_packets for QPL Date: Wed, 25 Mar 2026 11:28:10 +0100 Message-ID: <2026032544-CVE-2026-23386-acc4@gregkh> X-Mailer: git-send-email 2.53.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=3636; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=K3ldwXUJMk7LyEoFQ+9a9GCVbUGGveuLdc7A7afGM6Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHd6REP/l1e/rSGazFZamPlm58w8vH0ahytpgl6OpZn pSX7wJndMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE/rxkWDCh4JReQfdGwdMd H/wc25cv5q8+/Ihhns7y67n3WqQmcVoH//v9xMdi/YGkZgA= 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: gve: fix incorrect buffer cleanup in gve_tx_clean_pending_packets for QPL In DQ-QPL mode, gve_tx_clean_pending_packets() incorrectly uses the RDA buffer cleanup path. It iterates num_bufs times and attempts to unmap entries in the dma array. This leads to two issues: 1. The dma array shares storage with tx_qpl_buf_ids (union). Interpreting buffer IDs as DMA addresses results in attempting to unmap incorrect memory locations. 2. num_bufs in QPL mode (counting 2K chunks) can significantly exceed the size of the dma array, causing out-of-bounds access warnings (trace below is how we noticed this issue). UBSAN: array-index-out-of-bounds in drivers/net/ethernet/drivers/net/ethernet/google/gve/gve_tx_dqo.c:178:5 index 18 is out of range for type 'dma_addr_t[18]' (aka 'unsigned long long[18]') Workqueue: gve gve_service_task [gve] Call Trace: dump_stack_lvl+0x33/0xa0 __ubsan_handle_out_of_bounds+0xdc/0x110 gve_tx_stop_ring_dqo+0x182/0x200 [gve] gve_close+0x1be/0x450 [gve] gve_reset+0x99/0x120 [gve] gve_service_task+0x61/0x100 [gve] process_scheduled_works+0x1e9/0x380 Fix this by properly checking for QPL mode and delegating to gve_free_tx_qpl_bufs() to reclaim the buffers. The Linux kernel CVE team has assigned CVE-2026-23386 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit a6fb8d5a8b6925f1e635818d3dd2d89531d4a058 and fixed in 6.6.130 with commit 71511dae56a75ce161aa746741e5c498feaea393 Issue introduced in 6.6 with commit a6fb8d5a8b6925f1e635818d3dd2d89531d4a058 and fixed in 6.12.78 with commit c171f90f58974c784db25e0606051541cb71b7f0 Issue introduced in 6.6 with commit a6fb8d5a8b6925f1e635818d3dd2d89531d4a058 and fixed in 6.18.17 with commit 07e0c80e17ef781799e7cd5c41a7bf44f1bf6a5f Issue introduced in 6.6 with commit a6fb8d5a8b6925f1e635818d3dd2d89531d4a058 and fixed in 6.19.7 with commit 3744ebd8ffaa542ae8110fb449adcac0202f4cc8 Issue introduced in 6.6 with commit a6fb8d5a8b6925f1e635818d3dd2d89531d4a058 and fixed in 7.0-rc2 with commit fb868db5f4bccd7a78219313ab2917429f715cea 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-23386 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/google/gve/gve_tx_dqo.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/71511dae56a75ce161aa746741e5c498feaea393 https://git.kernel.org/stable/c/c171f90f58974c784db25e0606051541cb71b7f0 https://git.kernel.org/stable/c/07e0c80e17ef781799e7cd5c41a7bf44f1bf6a5f https://git.kernel.org/stable/c/3744ebd8ffaa542ae8110fb449adcac0202f4cc8 https://git.kernel.org/stable/c/fb868db5f4bccd7a78219313ab2917429f715cea