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 897D33191DA for ; Fri, 5 Sep 2025 17:24:36 +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=1757093076; cv=none; b=blsjbrGJMRnMzubSKEmrZRHypiQVPF99z32S9s6adW+3uQyVwc2Z/Blo7tda/IzzqwAQeR41gCVEB7glPBS/AQfvIIJo4i+ec5XT+PQKHwTdp7dR0G7PFH1XIBu0NyaP+hyHTg6mYjMbLr//gx1sy9vcCWHk3mxirr6gKPzvrmE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757093076; c=relaxed/simple; bh=QSZ6U2+c0my4m/WrXZWLZI7cwoeh0LYMGaWKw9yrXak=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tYel2A5LslDUo9qIzVOEV7pbiXGYjdxH6ocW+LsqTThkL/2VPajCkvS6g1SdfF8zruWHAJOAKo1bSLhKENihhDvABoyRLevaSGa7eTfgWjxaQPcnlpWf94f9ziaHzUbDcvYQGf5ZzHO4DOwFZfp/xlPJHadnFAq8rgx2bD5ZEsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cIpv/NMM; 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="cIpv/NMM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB98EC4CEF7; Fri, 5 Sep 2025 17:24:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757093076; bh=QSZ6U2+c0my4m/WrXZWLZI7cwoeh0LYMGaWKw9yrXak=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cIpv/NMMQ0BnlaMAVzv2GTZOjI8wnlhmKOXCIIpyxFg7Cp2vsBR3nXj8c8DWcc9a/ OfW5v2/wZDxBgndof+EpwQ+cCpNuEdzr/plMbzR8BL9vl3qVQwyv48JhK7MKkSVHXz Ikgx00sv9xT3Z/IwJVGQ2ArKHvn1f9+oPwj0tUvY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39718: vsock/virtio: Validate length in packet header before skb_put() Date: Fri, 5 Sep 2025 19:21:31 +0200 Message-ID: <2025090551-CVE-2025-39718-2e2c@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2879; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uL9XO7H4nNcbLmjfoPSBr8EPRilDCYqk9XzzrF+N2ak=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm7pT//Z175Rjru84fiFBnVnJhXW5/bT14ysZZRhff92 w8Ry7cZdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEfnUzLJjrJJL8OTmzdqVB 7GmPuacz4ma1qDHMU3hl3/rgVPyW846HdveWydi8OHTFDAA= 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: Validate length in packet header before skb_put() When receiving a vsock packet in the guest, only the virtqueue buffer size is validated prior to virtio_vsock_skb_rx_put(). Unfortunately, virtio_vsock_skb_rx_put() uses the length from the packet header as the length argument to skb_put(), potentially resulting in SKB overflow if the host has gone wonky. Validate the length as advertised by the packet header before calling virtio_vsock_skb_rx_put(). The Linux kernel CVE team has assigned CVE-2025-39718 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.63 with commit baddcc2c71572968cdaeee1c4ab3dc0ad90fa765 and fixed in 6.1.149 with commit 969b06bd8b7560efb100a34227619e7d318fbe05 Issue introduced in 6.3 with commit 71dc9ec9ac7d3eee785cdc986c3daeb821381e20 and fixed in 6.6.103 with commit ee438c492b2e0705d819ac0e25d04fae758d8f8f Issue introduced in 6.3 with commit 71dc9ec9ac7d3eee785cdc986c3daeb821381e20 and fixed in 6.12.44 with commit faf332a10372390ce65d0b803888f4b25a388335 Issue introduced in 6.3 with commit 71dc9ec9ac7d3eee785cdc986c3daeb821381e20 and fixed in 6.16.4 with commit 676f03760ca1d69c2470cef36c44dc152494b47c Issue introduced in 6.3 with commit 71dc9ec9ac7d3eee785cdc986c3daeb821381e20 and fixed in 6.17-rc1 with commit 0dab92484474587b82e8e0455839eaf5ac7bf894 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-2025-39718 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.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/969b06bd8b7560efb100a34227619e7d318fbe05 https://git.kernel.org/stable/c/ee438c492b2e0705d819ac0e25d04fae758d8f8f https://git.kernel.org/stable/c/faf332a10372390ce65d0b803888f4b25a388335 https://git.kernel.org/stable/c/676f03760ca1d69c2470cef36c44dc152494b47c https://git.kernel.org/stable/c/0dab92484474587b82e8e0455839eaf5ac7bf894