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 581342820C5 for ; Wed, 18 Jun 2025 09:36:46 +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=1750239406; cv=none; b=gWpuBT8cZRaQr8Cb7F4PPacLhECL1GsjQqpCPJngBVjri+MCn7FmKx/FVrZSHkkywa/S4zBVTFKozwgLpYoz+9Qnv9dCn/OOA+N5xxvENnD1SUWDvWFYBRDN+x1rDIahD4EEHn057ZWueCYNZPZj7ioFYGO11f4EJp/D1KsjEX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239406; c=relaxed/simple; bh=19Hi6DavYQEWJkT7HEoOePSSkekC/cslmYNQauWwcPg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XhPmRecboFUEogf/8vPAxFMKbxJ+RcTm7V7KpFZk0M9kicwYgDBXSq+gpS/Uc+KdokHBUoTPtdyW3uZ8pO1ubx/AOEf1fYzG7AeYcBnYnSopNJz5951XDVt3UImWQRing0Aby8XBpfPDVYf45EuiYqW2FD86WBRrSXuOyhkXCL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B2+GuX2L; 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="B2+GuX2L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEC9BC4CEE7; Wed, 18 Jun 2025 09:36:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750239406; bh=19Hi6DavYQEWJkT7HEoOePSSkekC/cslmYNQauWwcPg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=B2+GuX2Ly2emAmsYsN0phpGi1CJn7NC2Dp5xz9gKga02x9hdgPqBQf/d4FrPjzdtO pcJkuP99jqiauvINrqiw7VjsiMDgVQKC41CiAifp92G5dqstuwwntyReWYXiO4WC7U 95PlJa/z+5sKmIAhysE1ayoBXeSKnPwmooWQlV7w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38061: net: pktgen: fix access outside of user given buffer in pktgen_thread_write() Date: Wed, 18 Jun 2025 11:33:56 +0200 Message-ID: <2025061835-CVE-2025-38061-caa2@gregkh> X-Mailer: git-send-email 2.49.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=2632; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=M2OjpCY/ba3T6XRLEiTKHAjvFeGUiiagA9oCk0n4eg4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlB7e9vf+G/ybrl2bHGA1vk81sanjWmlN463bzlGMvMi Et7Dq+P6ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJcBgyzI+snu2Zdv3X7SOG FjEbPjOrX83e+I5hnuqk6L+NvjrW5fyhl23ua3udCzXbDwA= 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: net: pktgen: fix access outside of user given buffer in pktgen_thread_write() Honour the user given buffer size for the strn_len() calls (otherwise strn_len() will access memory outside of the user given buffer). The Linux kernel CVE team has assigned CVE-2025-38061 to this issue. Affected and fixed versions =========================== Fixed in 5.4.294 with commit a3d89f1cfe1e6d4bb164db2595511fd33db21900 Fixed in 5.10.238 with commit 5bfa81539e22af4c40ae5d43d7212253462383a6 Fixed in 5.15.185 with commit 128cdb617a87767c29be43e4431129942fce41df Fixed in 6.1.141 with commit ef1158a6a650ecee72ab40851b1d52e04d3f9cb5 Fixed in 6.6.93 with commit c81c2ee1c3b050ed5c4e92876590cc7a259183f6 Fixed in 6.12.31 with commit 6b1d3e9db82d01a88de1795b879df67c2116b4f4 Fixed in 6.14.9 with commit 8fef258b555c75a467a6b4b7e3a3cbc46d5f4102 Fixed in 6.15 with commit 425e64440ad0a2f03bdaf04be0ae53dededbaa77 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-38061 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/core/pktgen.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/a3d89f1cfe1e6d4bb164db2595511fd33db21900 https://git.kernel.org/stable/c/5bfa81539e22af4c40ae5d43d7212253462383a6 https://git.kernel.org/stable/c/128cdb617a87767c29be43e4431129942fce41df https://git.kernel.org/stable/c/ef1158a6a650ecee72ab40851b1d52e04d3f9cb5 https://git.kernel.org/stable/c/c81c2ee1c3b050ed5c4e92876590cc7a259183f6 https://git.kernel.org/stable/c/6b1d3e9db82d01a88de1795b879df67c2116b4f4 https://git.kernel.org/stable/c/8fef258b555c75a467a6b4b7e3a3cbc46d5f4102 https://git.kernel.org/stable/c/425e64440ad0a2f03bdaf04be0ae53dededbaa77