From mboxrd@z Thu Jan 1 00:00:00 1970 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 8C3513FFFA5 for ; Tue, 9 Jun 2026 12:11:34 +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=1781007095; cv=none; b=TKwL/+A7jeLCic648E39G7HOTOm5Cg7DkgIwsnH8JZ7B8vdExl7Ll99k5rRgEtKbeV9TSLzIt+pU5lIuqIK+eXsW6TQ1fOzwc1txflckDM/fG7/WOisLSi1e0ZD3wE2whKe6NMj7v+jDEL8+d01VS77S3SX1s43lJ4TN20QL0fs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781007095; c=relaxed/simple; bh=Rc6qACHb6uuQwhKP41ZsTnhQDG4dIyl+anRY7E2tbT8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PoJoKWIlFh0aw2jcJsK+rYd0INImHdnsAKUZDk9E3vtWcX16rUfGiq1xodd+KmqRmkniN/U3w+dklSOHiB9nxI+ihHoGucUU9yH3W3K9Ob4IqHAR++CxbwOSpoTbrci+5my5NdgzJResy19qkTv2K6PmglMX+QNauaBliKhAXnQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JNa4J1Ht; 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="JNa4J1Ht" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3E461F00893; Tue, 9 Jun 2026 12:11:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781007094; bh=BfaqZR2oxmLMdZxNlsZBDpNvw7hI4kP09hO3IKexy14=; h=From:To:Cc:Subject:Date:Reply-To; b=JNa4J1HtEMs+ws2uKDAb6svCI7XncFUx3y2MI7wJyV0FxeIBI4Bf8A2jb7K2Ej5eN PAgOXb2b671mO1XATe6RgPvzn/yoq1hhgL9XqIDlNZdp9uCCNNsbmu0teM4S8ngEx0 TxcpZ3nm3Kbw0u/T55lVFxcP1IO7di+lhXxr7vKM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46320: tap: free page on error paths in tap_get_user_xdp() Date: Tue, 9 Jun 2026 14:10:26 +0200 Message-ID: <2026060925-CVE-2026-46320-71d9@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=2311; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XP+fkmy8Rk1pw7abN+CiK+9P0ybjlZ/sRP+K+AEkerU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkaTBsTv/0skkq7pf4rdPrFV9d7g5b9l1sW/mWGSMZGR /1JM3KyO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAic3YxzNM1rGTi7mf7YbK2 tXZy1ukPSj9bLRgWbGA59l9yFuf7lI1td77ekrwRrcoZBwA= 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: tap: free page on error paths in tap_get_user_xdp() tap_get_user_xdp() rejects a frame shorter than ETH_HLEN with -EINVAL, and returns -ENOMEM when build_skb() fails. Both paths jump to the err label without freeing the page that vhost_net_build_xdp() allocated for the frame. tap_sendmsg() discards the per-buffer return value and always returns 0, so vhost_tx_batch() takes the success path and never frees the page; each rejected frame in a batch leaks one page-frag chunk. Free the page on both error paths, before the skb is built. This is the tap counterpart of the same leak in tun_xdp_one(). The Linux kernel CVE team has assigned CVE-2026-46320 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 0efac27791ee068075d80f07c55a229b1335ce12 and fixed in 7.0.12 with commit 18a84c35842e19cd3c5534d8cee73d31863f696d Issue introduced in 4.20 with commit 0efac27791ee068075d80f07c55a229b1335ce12 and fixed in 7.1-rc6 with commit 3bcf7aec6a9d16438f2cec29f5d7c8d5b8edf9b2 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-46320 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/tap.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/18a84c35842e19cd3c5534d8cee73d31863f696d https://git.kernel.org/stable/c/3bcf7aec6a9d16438f2cec29f5d7c8d5b8edf9b2