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 E800C330D23 for ; Wed, 24 Dec 2025 12:11:06 +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=1766578267; cv=none; b=i24MujMEJG0qtK4BLXUdBfDhAz0X0OAmx2J2n7p2hmeai3JWLeFEc7dL7TX6vxpPZwrI4VvnwP/GgwSC2LNPCeZ0I2pa4GPHKhG/h56WlhxXKWghxTvUbWqMHOrozP+jGvgJ+F6e7GjPGFzqiGq0+gQKYCyalkzWPIpJNvObyMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766578267; c=relaxed/simple; bh=ftJk7BZ7pVSuYucsjw1qgoOs969hfbAlcZAQcy2GSIE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BP4pZe2bgIss/H2NNh4dGXWvyh/SZyBg+hb/6uVva3msdBSyUKCQcTN7XwauI0UpfzEEtcB3Dx3zP2l280bOIZL+1t8au0EBfE8Wxjod7CoNMGX+r/rRnmnAyLwUPO+j+tkZZ3+Oci7zGFPhWYnWqp8Kvmke8SAtw9JWEPBq8h0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m0pKQUJN; 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="m0pKQUJN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00F2BC4CEFB; Wed, 24 Dec 2025 12:11:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766578266; bh=ftJk7BZ7pVSuYucsjw1qgoOs969hfbAlcZAQcy2GSIE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=m0pKQUJNzvTOS2ZIDrRtspkmVGphAGMCor2Ibc6zwwvSPEzPelozLDS5UNok3jr04 NYmbCgtenVFF6eO5K7EoGbr9+FO6gFZ34Pz7Jv+TeRmWt6LWv0Xd5XOR7Zq+QV63wV 84YJekh1aWYdr5EAhu9djAJEFaueKNohXIMbfiCM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68744: bpf: Free special fields when update [lru_,]percpu_hash maps Date: Wed, 24 Dec 2025 13:10:20 +0100 Message-ID: <2025122416-CVE-2025-68744-bf55@gregkh> X-Mailer: git-send-email 2.52.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=2554; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A7ipX8ULBFV/Yx4DrUrBimMpQ0G5o13O/YWSZ+LeNuc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneNzQEd7q+bv4UvW7jL+vwDbe2mk/bqOru/l/lVij3z Jk/Jt962xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATkV7MMIejbY+9rrnrvnZb j4ZM00p7owTPvQxzpT5s6djHVJmV5famSyTti615WeZVAA== 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: bpf: Free special fields when update [lru_,]percpu_hash maps As [lru_,]percpu_hash maps support BPF_KPTR_{REF,PERCPU}, missing calls to 'bpf_obj_free_fields()' in 'pcpu_copy_value()' could cause the memory referenced by BPF_KPTR_{REF,PERCPU} fields to be held until the map gets freed. Fix this by calling 'bpf_obj_free_fields()' after 'copy_map_value[,_long]()' in 'pcpu_copy_value()'. The Linux kernel CVE team has assigned CVE-2025-68744 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 65334e64a493c6a0976de7ad56bf8b7a9ff04b4a and fixed in 6.12.63 with commit 3bf1378747e251571e0de15e7e0a6bf2919044e7 Issue introduced in 6.4 with commit 65334e64a493c6a0976de7ad56bf8b7a9ff04b4a and fixed in 6.17.13 with commit 96a5cb7072cabbac5c66ac9318242c3bdceebb68 Issue introduced in 6.4 with commit 65334e64a493c6a0976de7ad56bf8b7a9ff04b4a and fixed in 6.18.2 with commit 4a03d69cece145e4fb527464be29c3806aa3221e Issue introduced in 6.4 with commit 65334e64a493c6a0976de7ad56bf8b7a9ff04b4a and fixed in 6.19-rc1 with commit 6af6e49a76c9af7d42eb923703e7648cb2bf401a 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-68744 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: kernel/bpf/hashtab.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/3bf1378747e251571e0de15e7e0a6bf2919044e7 https://git.kernel.org/stable/c/96a5cb7072cabbac5c66ac9318242c3bdceebb68 https://git.kernel.org/stable/c/4a03d69cece145e4fb527464be29c3806aa3221e https://git.kernel.org/stable/c/6af6e49a76c9af7d42eb923703e7648cb2bf401a