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 6F3CE349CF8 for ; Mon, 13 Jul 2026 17:34:08 +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=1783964049; cv=none; b=EGG2anAxQNVge/AtRBQWsgTFbkK+9UcQee69MebAJnauqLZ0l1c74OxNEIUo/EjnW1ekt7eJD1CZ/tW4x8mdggXUKJcx2G3Dc//0Vlof0Bh0QTHHeVw8GNEjEnhuRsyqj0xNTkkphWwXDmqAALS8JoMSt+ICV89y1EdcMPDchjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783964049; c=relaxed/simple; bh=yRQvd1UbgC8OL7GOIow9BuFHT5FEuuCk5E/crpRz3qI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VKEqatrCKNm5ZbramqaOMcDF7XoeklXSVfYo+pblTMPgZZU8z5nbvYS1Pq0pQqTnQeJHOOJyOOQ36Y3imgUle3xt+hv+DkIn7F9JqkYTQvuUNINM2555+MZZgMxyDyPOyfA5z0qIf7S9f0M3Kt3EyIF6dCmAMoMRiOoX/KjpbM8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ECryt41s; 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="ECryt41s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD5C21F000E9; Mon, 13 Jul 2026 17:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1783964048; bh=qKR43GQJIJbFDyOKyGRcrIf74+sLiQ8vZ/tf539gXAA=; h=From:To:Cc:Subject:Date:Reply-To; b=ECryt41s8Y6FhcsOSgYXlAbqIgREBiNXpww+kLUYSLmdFrBlHYkIYGTTZ51x02vVB EKFVqLTVgetk9qu9URb/W/XAPom5Pn43JlpwWYMDQhlsLDMnEw0WcDf7UerYNMttWX gc4gJc2YDcBMwtXBpqqRb74wa+wE+SzvADToxc9M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53365: vsock/virtio: fix zerocopy completion for multi-skb sends Date: Mon, 13 Jul 2026 19:33:53 +0200 Message-ID: <2026071353-CVE-2026-53365-c6d2@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=2998; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pcw1HgbzVjYh437M5A6pv5okp3aQ0sYrOxWlQuWLxxw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmhio3v90dGrYpo2nn7lPmUubWN50+mFXyavfTu4mimV z9W3K5/3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATOa3BsGASE2+35BXjKSf1 Aw6IHL/xdvlnexOG+Yk9ET1JK9ey98mEPVJ5t4/15dJ1oQA= 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: vsock/virtio: fix zerocopy completion for multi-skb sends When a large message is fragmented into multiple skbs, the zerocopy uarg is only allocated and attached to the last skb in the loop. Non-final skbs carry pinned user pages with no completion tracking, so the kernel has no way to notify userspace when those pages are safe to reuse. If the loop breaks early the uarg is never allocated at all, leaking pinned pages with no completion notification. Fix this by following the approach used by TCP: allocate the zerocopy uarg (if not provided by the caller) before the send loop and attach it to every skb via skb_zcopy_set(), which takes a reference per skb. Each skb's completion properly decrements the refcount, and the notification only fires after the last skb is freed. On failure, if no data was sent, the uarg is cleanly aborted via net_zcopy_put_abort(). This issue was initially discovered by sashiko while reviewing commit 1cb36e252211 ("vsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting") but was pre-existing. The Linux kernel CVE team has assigned CVE-2026-53365 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 6.18.34 with commit 76b995bc57bd90cb6e954e1966fbd8786da47f0d Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 7.0.11 with commit b3155f2b78db21e99256bcf7eb902f24ff6d5338 Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 7.1 with commit ae38d9179190a956e2a87a69ef1dd6f451b51c4d 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-53365 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: net/vmw_vsock/virtio_transport_common.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/76b995bc57bd90cb6e954e1966fbd8786da47f0d https://git.kernel.org/stable/c/b3155f2b78db21e99256bcf7eb902f24ff6d5338 https://git.kernel.org/stable/c/ae38d9179190a956e2a87a69ef1dd6f451b51c4d