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 7A82A316197 for ; Fri, 24 Oct 2025 12:25:09 +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=1761308709; cv=none; b=Pq/rI/cf+hHvmK0xWNeEfTVyuHS4Ys7XUUfZVOWR+4trw1jAwnluEVvi5wMmrPME+1GbXbi0ypRnjnOooDhW9Bb5EcQZdNBH3ivFZaRtOTTZ8G8a4M6/YxTPgMxShw9ognnDvKW9gfJZ6U9oOf4hgMXOlfEq/KbBSqJBnjwdrgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761308709; c=relaxed/simple; bh=cKbB1Xq+Vp68c7ilJoNGH5tQyhBkWE6xvamNsDSfsjE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EYxOhlawJ0UkzlnwNcz5VgCGAt4zHD/qsJ374WR2xtI+V7T9s3fFkd8swTGhwfJezGsg7sKqlcxicVeMoPCDNPJ14ZgrWnubIzJfFn/9zvJLcqKk6OaQNzWvWz7DZXaV/dqU5HeeMjw6uzN3uHKHEtqsCebLR3l7piKZ2Sut5/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eyWp7Zuz; 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="eyWp7Zuz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F9FBC4CEF1; Fri, 24 Oct 2025 12:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761308708; bh=cKbB1Xq+Vp68c7ilJoNGH5tQyhBkWE6xvamNsDSfsjE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eyWp7Zuz06T0iATPmkYiLYfQMfji+nD81ik3Bi+Ww4GzJcJRrMq1EvHcut9w6k5QM rik1wOGiH6r0f4nP3Rn7PJqZMAnj55VNdBAVHbMhJSMKgZU2H18P774ZuwzCc8VwhH UdUOog22HvFHmayUpGfXPGfAMZ0O7x9hyfj4PHUY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40021: tracing: dynevent: Add a missing lockdown check on dynevent Date: Fri, 24 Oct 2025 14:25:04 +0200 Message-ID: <2025102403-CVE-2025-40021-fbe1@gregkh> X-Mailer: git-send-email 2.51.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=3074; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+cV/q35qxT1CZ9WUzc7DSNqOcOQiZaBLmokDfFPsq+A=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm/CxQ0DTiWHT7ufetOnagAw5Ojf2xvNBhvdG/L6dkY4 rlN0/lSRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk7jbDgq2TtBn1NwtKO0+K clz4xeGQ7ce35xnmx/XOtXi9hWdumoT/+22a72/dS3qxBAA= 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: tracing: dynevent: Add a missing lockdown check on dynevent Since dynamic_events interface on tracefs is compatible with kprobe_events and uprobe_events, it should also check the lockdown status and reject if it is set. The Linux kernel CVE team has assigned CVE-2025-40021 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 17911ff38aa58d3c95c07589dbf5d3564c4cf3c5 and fixed in 5.10.245 with commit f3ac1f4eaba58e57943efa3e8b8d71fa7aab0abf Issue introduced in 5.4 with commit 17911ff38aa58d3c95c07589dbf5d3564c4cf3c5 and fixed in 5.15.194 with commit 0d41604d2d53c1abe27fefb54b37a8f6642a4d74 Issue introduced in 5.4 with commit 17911ff38aa58d3c95c07589dbf5d3564c4cf3c5 and fixed in 6.1.155 with commit 07b1f63b5f86765793fab44d3d4c2be681cddafb Issue introduced in 5.4 with commit 17911ff38aa58d3c95c07589dbf5d3564c4cf3c5 and fixed in 6.6.109 with commit 3887f3814c0e770e6b73567fe0f83a2c01a6470c Issue introduced in 5.4 with commit 17911ff38aa58d3c95c07589dbf5d3564c4cf3c5 and fixed in 6.12.50 with commit 573b1e39edfcb7b4eecde0f1664455a1f4462eee Issue introduced in 5.4 with commit 17911ff38aa58d3c95c07589dbf5d3564c4cf3c5 and fixed in 6.16.10 with commit b47c4e06687a5a7b6c6ef4bd303fcfe4430b26bb Issue introduced in 5.4 with commit 17911ff38aa58d3c95c07589dbf5d3564c4cf3c5 and fixed in 6.17 with commit 456c32e3c4316654f95f9d49c12cbecfb77d5660 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-40021 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/trace/trace_dynevent.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/f3ac1f4eaba58e57943efa3e8b8d71fa7aab0abf https://git.kernel.org/stable/c/0d41604d2d53c1abe27fefb54b37a8f6642a4d74 https://git.kernel.org/stable/c/07b1f63b5f86765793fab44d3d4c2be681cddafb https://git.kernel.org/stable/c/3887f3814c0e770e6b73567fe0f83a2c01a6470c https://git.kernel.org/stable/c/573b1e39edfcb7b4eecde0f1664455a1f4462eee https://git.kernel.org/stable/c/b47c4e06687a5a7b6c6ef4bd303fcfe4430b26bb https://git.kernel.org/stable/c/456c32e3c4316654f95f9d49c12cbecfb77d5660