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 748572ECD08 for ; Fri, 25 Jul 2025 12:56:45 +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=1753448205; cv=none; b=qWfbH8v3fJs+NkesE75BotxLIJE4kRGAoA1qvBiX47WHGaJNnKH7hqH28tUAyEMAeCRuzpi6mzka9HiL37vFcGu+KXc+jCFByf+HsLVntEf4AiKifNsrtQ2CONWjIiRAVd+oW/SKNfJN4auYNps9uSP73ls1b32KHd0chJE19uQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753448205; c=relaxed/simple; bh=okkEk7VJ0bK4DlTXFi2Mm6r1fZMmQufGqrTkwMPkLbE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jR0BkARG11VLlJeLl8mP5gnaAlzv4fjorgbzu7+lNmMpBBZxdam3tU2+oYaGjb4UkRnfWN+jmpZyWlc11HzQfoU7SacaeTUvkDyUUYzh51eUopq+H8cLsdDU3l3J+K/oXffZGfFByTm7dlwNc3ibHHjx2jsA8SxpMwVzxJcRuzo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j3vafuNT; 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="j3vafuNT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDD4DC4CEE7; Fri, 25 Jul 2025 12:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753448205; bh=okkEk7VJ0bK4DlTXFi2Mm6r1fZMmQufGqrTkwMPkLbE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=j3vafuNTlYT55Qg/j+knYIeWRuK/qrZQe2819H18tsMqQWnWK960niianjFz1Fd0p 2T3SqaIL3Klb9uK/J34/IKTtwJtsaNNotM0LAwZWJZhS65mP7XZf+TRdtvMxU0jtmB qLl4O5jrUcfWTEVIoRnmy9F/MFoYCNadCT5jJPB0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38375: virtio-net: ensure the received length does not exceed allocated size Date: Fri, 25 Jul 2025 14:55:06 +0200 Message-ID: <2025072503-CVE-2025-38375-3faa@gregkh> X-Mailer: git-send-email 2.50.1 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=2915; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Dw4gIWgdjsNDpZUWfvxslBkNGJjdOYCb8kzYNaHNJ2w=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNdSvEpdmu1Tlz1jvr/Sn0+Hsj/Ugr769J9x+naMprP Ln4XPlmRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEm4dhfu1VQce4wulP5y3u KshVa58yZz8nL8OC3tT7zxb6Si7furN8xoGzwnyagqabAA== 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: virtio-net: ensure the received length does not exceed allocated size In xdp_linearize_page, when reading the following buffers from the ring, we forget to check the received length with the true allocate size. This can lead to an out-of-bound read. This commit adds that missing check. The Linux kernel CVE team has assigned CVE-2025-38375 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 5.15.189 with commit 982beb7582c193544eb9c6083937ec5ac1c9d651 Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 6.1.144 with commit 6aca3dad2145e864dfe4d1060f45eb1bac75dd58 Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 6.6.97 with commit 80b971be4c37a4d23a7f1abc5ff33dc7733d649b Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 6.12.37 with commit bc68bc3563344ccdc57d1961457cdeecab8f81ef Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 6.15.6 with commit 11f2d0e8be2b5e784ac45fa3da226492c3e506d8 Issue introduced in 4.14 with commit 4941d472bf95b4345d6e38906fcf354e74afa311 and fixed in 6.16-rc5 with commit 315dbdd7cdf6aa533829774caaf4d25f1fd20e73 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-38375 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/virtio_net.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/982beb7582c193544eb9c6083937ec5ac1c9d651 https://git.kernel.org/stable/c/6aca3dad2145e864dfe4d1060f45eb1bac75dd58 https://git.kernel.org/stable/c/80b971be4c37a4d23a7f1abc5ff33dc7733d649b https://git.kernel.org/stable/c/bc68bc3563344ccdc57d1961457cdeecab8f81ef https://git.kernel.org/stable/c/11f2d0e8be2b5e784ac45fa3da226492c3e506d8 https://git.kernel.org/stable/c/315dbdd7cdf6aa533829774caaf4d25f1fd20e73