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 F2713318120 for ; Wed, 24 Dec 2025 10:37:13 +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=1766572634; cv=none; b=swTRzmSfle5bLUcQiWB9tZ427HMWkG6lXAZX+n6dUWBTI093YxGZlKYsIV/0ecP0wnAPnzLaU08jVoQPWt8Pvr9lrPY2S0OK8Mw+4vziR+MgUulGlj3qepwm/36E4ujjCJPtN5BdacIW+c41xXqYeRYgooYeo3Q8g7yxpLTOvL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572634; c=relaxed/simple; bh=6zONY08c+n7XXQaz4Lsaum5LyLH6zAc8atGzrqRTdTg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GrrUB3GPp6Bgz+m30vtLHB6CnVmXCZqnMr0/pgTG9P5OCXKnLQ176/+UTBkp2XMTjN9K+zk5W1hPG0qpsFIxsImdYmfMgG3egCwU8LkfdeFcfdh6u+hrMCf9KUluSuVwssN39xhB+73MMmCgmZKJC+UQCXytdE6ngvD+FOrnpQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SGK447Kv; 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="SGK447Kv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6892FC4CEFB; Wed, 24 Dec 2025 10:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572633; bh=6zONY08c+n7XXQaz4Lsaum5LyLH6zAc8atGzrqRTdTg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=SGK447KvsVFr3nv8X7u1q5MC5bZ1KDd5P8+PgPYjvSEccrMCzqdhLmVJV7ygy6YZK u7uvyYjTPIo1lfbV5L4xKfTJJg8D8znVeJNFqvly5SINQH0764vWMUjmkHMW7e4d7t EtImktutXk+LDV29gadYkMjT8Zm+2+awaPjTu1Bw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68378: bpf: Fix stackmap overflow check in __bpf_get_stackid() Date: Wed, 24 Dec 2025 11:35:23 +0100 Message-ID: <2025122403-CVE-2025-68378-60d1@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=2827; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aLKnRXiMt13OknizrWSJqsejiUtKuR4eLYZeXTRJ1sQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB6/v3DubZcJF640rZumHeqwXEfrOfZ7xRkWETNgNu dm7trvVdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1M0Z5sp3sDb8DO6peRZ2 P3b97Y1LNvsvcWSYK3sgKfpBnNYsySuCNd8z3q449s9ZFQA= 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: Fix stackmap overflow check in __bpf_get_stackid() Syzkaller reported a KASAN slab-out-of-bounds write in __bpf_get_stackid() when copying stack trace data. The issue occurs when the perf trace contains more stack entries than the stack map bucket can hold, leading to an out-of-bounds write in the bucket's data array. The Linux kernel CVE team has assigned CVE-2025-68378 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit ee2a098851bfbe8bcdd964c0121f4246f00ff41e and fixed in 6.12.63 with commit d1f424a77b6bd27b361737ed73df49a0158f1590 Issue introduced in 5.18 with commit ee2a098851bfbe8bcdd964c0121f4246f00ff41e and fixed in 6.17.13 with commit 2a008f6de163279deffd488c1deab081bce5667c Issue introduced in 5.18 with commit ee2a098851bfbe8bcdd964c0121f4246f00ff41e and fixed in 6.18.2 with commit 4669a8db976c8cbd5427fe9945f12c5fa5168ff3 Issue introduced in 5.18 with commit ee2a098851bfbe8bcdd964c0121f4246f00ff41e and fixed in 6.19-rc1 with commit 23f852daa4bab4d579110e034e4d513f7d490846 Issue introduced in 5.10.110 with commit 90805175a206f784b6a77f16f07b07f6803e286b Issue introduced in 5.15.33 with commit 398ac11f4425d1e52aaf0d05d4fc90524e1a5b5e Issue introduced in 5.16.19 with commit e750f78c4ed7cefbcefb9769b3b9e08033db39da Issue introduced in 5.17.2 with commit 6c4f243b58f5362e983386488b2d563764c567af 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-68378 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/stackmap.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/d1f424a77b6bd27b361737ed73df49a0158f1590 https://git.kernel.org/stable/c/2a008f6de163279deffd488c1deab081bce5667c https://git.kernel.org/stable/c/4669a8db976c8cbd5427fe9945f12c5fa5168ff3 https://git.kernel.org/stable/c/23f852daa4bab4d579110e034e4d513f7d490846