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 ABC2E20E337 for ; Thu, 6 Mar 2025 16:22:56 +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=1741278176; cv=none; b=kXPahMHM5qvcZUna4aeujeWr79o0Pyzj/PzykOdm/kW/Rex5YkQF64Z78mugqfpQjpiNo+uQJjgz53lIRiDwk/DV5f3wtaKjgL/H41T6UrU88PDBdv14r6svR1a/+2kdWRsOg+klHhswaU3CbIvJzH7RZsYYZaeK7qbwgPke7aw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741278176; c=relaxed/simple; bh=Vkw6T/cx4UV6z+zxEUq08xN8+iMK4rmXB5Zad6uEtsw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RMIqGpI8kc83KfMFN3R53e8cRRxSVHS/LR9/tyVGLxeMY2xz4UJQDouI2PJ9SVB3fuDfUqlCygsSTOi69JczeStDnpOiu2dvizi5Eb4eNbEqGzKeyHBBwvlm+kcHEoFeu9m8utXy6v+IOXf1r/OERz6Kf6t2D45ZolY4F1mLi7I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qgPSKv2R; 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="qgPSKv2R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29F15C4CEE0; Thu, 6 Mar 2025 16:22:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741278176; bh=Vkw6T/cx4UV6z+zxEUq08xN8+iMK4rmXB5Zad6uEtsw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qgPSKv2RcPJ29g3duCvtOyg/ffBnrdW4pfp1DHjkNPujnns0QPTFLTYrVtMTvcRUo ghrzTkySgXjHIpaUlM6M7Fy8jVQKEb4b4mUspN7VokjGxNbsx0LUv5xGCHYbL3XuDQ Kp2yXWWBaJ+O9GuCyV9CA/74yMBErEiAcPCXmTyg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21834: seccomp: passthrough uretprobe systemcall without filtering Date: Thu, 6 Mar 2025 17:22:40 +0100 Message-ID: <2025030635-CVE-2025-21834-d92c@gregkh> X-Mailer: git-send-email 2.48.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=2905; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Vkw6T/cx4UV6z+zxEUq08xN8+iMK4rmXB5Zad6uEtsw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOknT5/5M+3EHs7p1qt0D87vLA6qOvPs5oZjM4pdvXfuM as86bmAuyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmckmGYX5JWqTa67kV7NeP 7Oc2nn94xbqjz3IYFjR80/NjerOY/09JpeEK8WsLwlYpnAAA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: seccomp: passthrough uretprobe systemcall without filtering When attaching uretprobes to processes running inside docker, the attached process is segfaulted when encountering the retprobe. The reason is that now that uretprobe is a system call the default seccomp filters in docker block it as they only allow a specific set of known syscalls. This is true for other userspace applications which use seccomp to control their syscall surface. Since uretprobe is a "kernel implementation detail" system call which is not used by userspace application code directly, it is impractical and there's very little point in forcing all userspace applications to explicitly allow it in order to avoid crashing tracked processes. Pass this systemcall through seccomp without depending on configuration. Note: uretprobe is currently only x86_64 and isn't expected to ever be supported in i386. [kees: minimized changes for easier backporting, tweaked commit log] The Linux kernel CVE team has assigned CVE-2025-21834 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit ff474a78cef5cb5f32be52fe25b78441327a2e7c and fixed in 6.12.14 with commit 5a262628f4cf2437d863fe41f9d427177b87664c Issue introduced in 6.11 with commit ff474a78cef5cb5f32be52fe25b78441327a2e7c and fixed in 6.13.3 with commit fa80018aa5be10c35e9fa896b7b4061a8dce3eed Issue introduced in 6.11 with commit ff474a78cef5cb5f32be52fe25b78441327a2e7c and fixed in 6.14-rc2 with commit cf6cb56ef24410fb5308f9655087f1eddf4452e6 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-21834 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/seccomp.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/5a262628f4cf2437d863fe41f9d427177b87664c https://git.kernel.org/stable/c/fa80018aa5be10c35e9fa896b7b4061a8dce3eed https://git.kernel.org/stable/c/cf6cb56ef24410fb5308f9655087f1eddf4452e6