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 C1095360ED2 for ; Thu, 28 May 2026 09:38:10 +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=1779961091; cv=none; b=NMO+fz9vTOmLDb8u3NdlcG4zzeiuifQjvZhCN90jNL8pbVUD5Fu25EhNfYMxc155stKZCqP2dPgPMZzlx8Wb0mXr9CBQINz8e0xCPqpzJsSoRjQaE13mpq7vYXmc92l+BVnqOdJ//+qTEzONV1xyCt0ocrZ/UxLhLR5gwWaZbEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961091; c=relaxed/simple; bh=QDDut1eFTFlXUJPRERZE9QonitCYRd90U0ctuI/IskQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IHs7/eLxP/xbXmrkfaMfARInB2elowWVC2yEauab3EeZdQubzGaySrpxjWpqZhwGgHrDO0KnBShTatDODhNb8XHJrY5ET2DMz03rRiKxHFKrKNZl+BFAsiuldD2A3VsXZ7z/N3HqguyNnoiBzMEpt+IOiu3/ss2XYOyinoBQS7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NsTOSboo; 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="NsTOSboo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D63F31F00A3A; Thu, 28 May 2026 09:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961090; bh=ts+B6KoybsDLiX6o5GHuXziBOPDDcik7qz+ZmzqKqAI=; h=From:To:Cc:Subject:Date:Reply-To; b=NsTOSbooKmzVQo/QIc6o15JgyciHidmUCUmEESNCAJvQrPiEdv08qkENMG1V90Kxy OUkNemgcrQ4QZ2GAY+Yx+tbrcbu8dQzIMi5IIuXsbwpJ5mf5FkqHS/W0v0H6SvRevc UPwaZqX33fHgEk9WtkxjSANIiRHe1GWstZR6g6YU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46123: Bluetooth: virtio_bt: clamp rx length before skb_put Date: Thu, 28 May 2026 11:36:28 +0200 Message-ID: <2026052815-CVE-2026-46123-5d70@gregkh> X-Mailer: git-send-email 2.54.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=4044; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Y4j5KJtn/rISWNhDYOCZBwmA7N8+F3e4udRQF3PvM8M=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPP3STBLzNTZpT9lw2SH8RSNX1Y6F926uMNyfWWvJs HJ5e+CRjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIgfMMC477rnoTHnbnsPU5 /1VfBewMOxZxH2aYp2Rb3/KooL3rTIj/keQ1mzRCfu2+BAA= 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: Bluetooth: virtio_bt: clamp rx length before skb_put virtbt_rx_work() calls skb_put(skb, len) where len comes directly from virtqueue_get_buf() with no validation against the buffer we posted to the device. The RX skb is allocated in virtbt_add_inbuf() and exposed to virtio as exactly 1000 bytes via sg_init_one(). Checking len against skb_tailroom(skb) is not sufficient because alloc_skb() can leave more tailroom than the 1000 bytes actually handed to the device. A malicious or buggy backend can therefore report used.len between 1001 and skb_tailroom(skb), causing skb_put() to include uninitialized kernel heap bytes that were never written by the device. The same path also accepts len == 0, in which case skb_put(skb, 0) leaves the skb empty but virtbt_rx_handle() still reads the pkt_type byte from skb->data, consuming uninitialized memory. Define VIRTBT_RX_BUF_SIZE once and reuse it in alloc_skb() and sg_init_one(), and gate virtbt_rx_work() on that same constant so the bound checked matches the buffer actually exposed to the device. Reject used.len == 0 in the same gate so an empty completion can no longer reach virtbt_rx_handle(). Use bt_dev_err_ratelimited() because the length value comes from an untrusted backend that can otherwise flood the kernel log. Same class of bug as commit c04db81cd028 ("net/9p: Fix buffer overflow in USB transport layer"), which hardened the USB 9p transport against unchecked device-reported length. The Linux kernel CVE team has assigned CVE-2026-46123 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 160fbcf3bfb93c3c086427f9f4c8bc70f217e9be and fixed in 6.6.140 with commit ed41c81d30b211a671667259c3b5feeba0e062d5 Issue introduced in 6.1 with commit 160fbcf3bfb93c3c086427f9f4c8bc70f217e9be and fixed in 6.12.88 with commit 6c1730099a6fc18b183bd6c1adad3b54adcaeda9 Issue introduced in 6.1 with commit 160fbcf3bfb93c3c086427f9f4c8bc70f217e9be and fixed in 6.18.30 with commit b40cdd1b1370d76e9e760af4490cb4a351cceead Issue introduced in 6.1 with commit 160fbcf3bfb93c3c086427f9f4c8bc70f217e9be and fixed in 7.0.7 with commit e6b4296f170d949ebba937cf6a3f247ec9550d2c Issue introduced in 6.1 with commit 160fbcf3bfb93c3c086427f9f4c8bc70f217e9be and fixed in 7.1-rc3 with commit 21bd244b6de5d2fe1063c23acc93fbdd2b20d112 Issue introduced in 5.15.78 with commit cf2719a21fdb9d4c8e9c834d279163609bef575d Issue introduced in 6.0.8 with commit 9b67438e315b925a699f0178f4a48baf3d2d6ef4 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-46123 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/bluetooth/virtio_bt.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/ed41c81d30b211a671667259c3b5feeba0e062d5 https://git.kernel.org/stable/c/6c1730099a6fc18b183bd6c1adad3b54adcaeda9 https://git.kernel.org/stable/c/b40cdd1b1370d76e9e760af4490cb4a351cceead https://git.kernel.org/stable/c/e6b4296f170d949ebba937cf6a3f247ec9550d2c https://git.kernel.org/stable/c/21bd244b6de5d2fe1063c23acc93fbdd2b20d112