Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 41AB1280318 for ; Wed, 27 May 2026 13:03:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887028; cv=none; b=Uyz2iQhqlgF+4ZM81N8uYyLEyKLADrSU0GSXoXamP14HD8lzZ/YoWRV15svJQCY7FHJEmbx5RRLcCwauVk7NqAuH9BHnmF+dR9iCyGmIUKOQjlDav4o2NxV1wIzDoxlBiY0My3XGSKqFgaLQ1XbkFO0Tot0qO2DZu3gVkkBSNP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779887028; c=relaxed/simple; bh=YqGw2r+0bjsSdLZBnahN5gncOvXZFp6lm8Ii0cFiCLs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=np6r8SZkR1Fuf2HkOVWk90WuZJ5yiz8nqzQYgLv933RlLz8JqbENmVuGuXxURHwQjwi6vF7EMN+VAZRb65bJOWgbHvwyftxkNIOQhv4SAVYhrh5ePcAZWbVX6HIN1wIzUAVG3I7eAN9mZyEdqJ5e8nbtvkKSx0zYutBdtQzNiDw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GNSy2OFE; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GNSy2OFE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F3AB1F000E9; Wed, 27 May 2026 13:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779887027; bh=eornbC6bPLuX9W49z2kMXOJp6nXkDjbzCmaBCSsrySA=; h=From:To:Cc:Subject:Date:Reply-To; b=GNSy2OFEUNfHj1JseBaFxIuVNHFm5rYAaBcDy4Yq3om3tLfJUg13q/6i4t/TmAUU1 b/T52hsHbXDRynP3bXVIb/d6VRkricvbEFqIxWcYP9EQwMQlZGytFIgkpJFHK4vHUW gVkd9DV9KytswO+CmJOsLi3JG7H/bmL9B+iCURYY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46057: landlock: Fix LOG_SUBDOMAINS_OFF inheritance across fork() Date: Wed, 27 May 2026 14:59:48 +0200 Message-ID: <2026052755-CVE-2026-46057-9504@gregkh> X-Mailer: git-send-email 2.54.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=2731; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DQtSCx6Yn/dDBV6oeYgd4JzhYeIMbBY4woRmn4RS0qY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlir/qvRy3cmCTZed27yPnA3n8KSuwpDfuXaJUtMDjRm /vcJyC3I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZip8Ywh+uGyJ8Zrjv8xRwD mG5c423J+mXtxzDfqUPseoxjTY7X1Q3/OWVjDJ5krMoAAA== 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: landlock: Fix LOG_SUBDOMAINS_OFF inheritance across fork() hook_cred_transfer() only copies the Landlock security blob when the source credential has a domain. This is inconsistent with landlock_restrict_self() which can set LOG_SUBDOMAINS_OFF on a credential without creating a domain (via the ruleset_fd=-1 path): the field is committed but not preserved across fork() because the child's prepare_creds() calls hook_cred_transfer() which skips the copy when domain is NULL. This breaks the documented use case where a process mutes subdomain logs before forking sandboxed children: the children lose the muting and their domains produce unexpected audit records. Fix this by unconditionally copying the Landlock credential blob. The Linux kernel CVE team has assigned CVE-2026-46057 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit ead9079f75696a028aea8860787770c80eddb8f9 and fixed in 6.18.27 with commit 2fcde49092aac55d5beef43fdd3633217672f7d1 Issue introduced in 6.15 with commit ead9079f75696a028aea8860787770c80eddb8f9 and fixed in 7.0.4 with commit 1c513b8a00df13d231021e74ad92babb3fedf64a Issue introduced in 6.15 with commit ead9079f75696a028aea8860787770c80eddb8f9 and fixed in 7.1-rc1 with commit 874c8f83826c95c62c21d9edfe9ef43e5c346724 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-2026-46057 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: security/landlock/cred.c tools/testing/selftests/landlock/audit_test.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/2fcde49092aac55d5beef43fdd3633217672f7d1 https://git.kernel.org/stable/c/1c513b8a00df13d231021e74ad92babb3fedf64a https://git.kernel.org/stable/c/874c8f83826c95c62c21d9edfe9ef43e5c346724