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 D1F9E312837 for ; Wed, 24 Jun 2026 16: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=1782318849; cv=none; b=rt0z4ExBW9Li3/I18iKRUGWHcPbjS+PQ+wDrXoJ8Nbocljli++Me3prYCs648PGK2Grxm+lMw+tRVSkieDdw8cxjMvxPD+b12UZii5jllNdBZsKE4QYEhE/XRiBErAoqsW4Zp7vUI0x/VNeSTjD0JZyI1p7Pqjh0C3bTGmZ4qLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318849; c=relaxed/simple; bh=J+KlTWDa1RV5gbuEWOoZX9gRAwQjbTceYaKEmUqUJZk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lAf0kNdXHkx4hw51OM/EN8k7hq0tLj92LodpN18QZan6LIwXd1Z/YREkwafkPuFOl0uyzGNAxpb3OmUP13nruPo6WBZMZxSgWjjTVjF+Rox9GQLd84tSP8RcQJlcMT0JC1uWS8ZtZ17SkCeivvn7xHYmqqEfEMdf+VamdIx49Fk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xDFdLAW/; 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="xDFdLAW/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19C2D1F000E9; Wed, 24 Jun 2026 16:34:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318848; bh=OS61lYYi4pFJEw3nW/lEHjcG5gnxQDfEXWd7y1IpKF4=; h=From:To:Cc:Subject:Date:Reply-To; b=xDFdLAW/Ohamt9//MGRjfYqO7cqY6Wof55oYaerMhq2UtiwgB16bBI5RrBvn6VZuq 8vR/ThGg9hzUsxctGuGTK/Vsc08OrLHIFq2um1t5S85vxUicglx6UkAL2vtr3nbP4p yZrgntFNb8+3kO8sQitHO5tUnH7/fY88Wj2azKvQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52994: vsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting Date: Wed, 24 Jun 2026 17:30:18 +0100 Message-ID: <2026062445-CVE-2026-52994-fe3c@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=2669; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0DnU5NQ9lZM6oFTmjtG68b5ui0bcBlmLf3JM8iGXOIQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2rD/f8xWrykQmxWWxrnI+/0G6nfc1V/+vltKqSzOtb i+4wmLREcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOpzGKY7xMTacfwYYVzlXHq fJ2tmuLnK9yqGBb0u4c/4NPmUrH75XD95QnTqPVLp04CAA== 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 MSG_ZEROCOPY pinned-pages accounting virtio_transport_init_zcopy_skb() uses iter->count as the size argument for msg_zerocopy_realloc(), which in turn passes it to mm_account_pinned_pages() for RLIMIT_MEMLOCK accounting. However, this function is called after virtio_transport_fill_skb() has already consumed the iterator via __zerocopy_sg_from_iter(), so on the last skb, iter->count will be 0, skipping the RLIMIT_MEMLOCK enforcement. Pass pkt_len (the total bytes being sent) as an explicit parameter to virtio_transport_init_zcopy_skb() instead of reading the already-consumed iter->count. This matches TCP and UDP, which both call msg_zerocopy_realloc() with the original message size. The Linux kernel CVE team has assigned CVE-2026-52994 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 6.18.33 with commit 6af1736b5810bc8a4a43a8518530113f5a757dc1 Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 7.0.10 with commit d0117950075f0a9d5944980784c719d8ebcd4bff Issue introduced in 6.7 with commit 581512a6dc939ef122e49336626ae159f3b8a345 and fixed in 7.1 with commit 1cb36e252211506f51095fe7ced8286cc77b4c80 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-52994 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/6af1736b5810bc8a4a43a8518530113f5a757dc1 https://git.kernel.org/stable/c/d0117950075f0a9d5944980784c719d8ebcd4bff https://git.kernel.org/stable/c/1cb36e252211506f51095fe7ced8286cc77b4c80