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 A96DD16EB46 for ; Fri, 12 Jul 2024 12:28:57 +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=1720787337; cv=none; b=cqQF4fiJkPs95atOjE9QLo7zkeHHB6MbR+FqULJyLMa/NMl9zDA174QzE+c0oTo6L8tau7dp+oi0kpHMuFWS7Zov7A+ZiPGIIGPt2GLmk1amBIwppQbihlGWhu1RyB3bDb6+m8tuPQFINlhs9NOyY3h2dd/h5Z/DBG1aCh0uv3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787337; c=relaxed/simple; bh=L3nuIbngN7smbrp8hMyEPZwJ779BFGdfK0oHqE1JmjI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eQG2awX+bFBm+bxGvEniLO+O5jQTBOthjuRPekbSRyjj3h80kCoyvxsh8P+OvqcBiN/VM7hjEqGO/6Q1LuvcbseRAelU3GIdmQF07KjLEY6s3e798/GZjO6Y042W7+BbbghatAOIicUAit7C95Si0042d1jwSVfUCVVcaufkCCc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WBHeTkp4; 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="WBHeTkp4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CE49C32782; Fri, 12 Jul 2024 12:28:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787337; bh=L3nuIbngN7smbrp8hMyEPZwJ779BFGdfK0oHqE1JmjI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WBHeTkp4sfLo2+cIXU6s0oatdmh5c8gWf8/XD7cacTPmK47XazPrYJLfvNthWnG1P wTllnHCQm/F/QfLak71Tmit93J/gynz8t8BEfWn3YABraV25U6D9age76JGsAGpCgy lSFpJtjF21sZNb7Uvs5u0C4puj2teHiQw3WLZe4A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40938: landlock: Fix d_parent walk Date: Fri, 12 Jul 2024 14:27:36 +0200 Message-ID: <2024071218-CVE-2024-40938-1619@gregkh> X-Mailer: git-send-email 2.45.2 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=2324; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=L3nuIbngN7smbrp8hMyEPZwJ779BFGdfK0oHqE1JmjI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTFdUkd4gvbN+z3sbE8scaB4G7byMVXx2cefnYqbYJP yNDJ62c2xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT8T/FsKB1mcRcxn8yrqeK RP6ohC+4X7pG1olhwcXN3jv3z/68sEHxFNMEX3uZ5tey3wA= 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: landlock: Fix d_parent walk The WARN_ON_ONCE() in collect_domain_accesses() can be triggered when trying to link a root mount point. This cannot work in practice because this directory is mounted, but the VFS check is done after the call to security_path_link(). Do not use source directory's d_parent when the source directory is the mount point. [mic: Fix commit message] The Linux kernel CVE team has assigned CVE-2024-40938 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit b91c3e4ea756 and fixed in 6.1.95 with commit b6e5e6964358 Issue introduced in 5.19 with commit b91c3e4ea756 and fixed in 6.6.35 with commit cc30d05b34f9 Issue introduced in 5.19 with commit b91c3e4ea756 and fixed in 6.9.6 with commit c7618c7b0b8c Issue introduced in 5.19 with commit b91c3e4ea756 and fixed in 6.10-rc2 with commit 88da52ccd66e 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-2024-40938 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/fs.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/b6e5e696435832b33e40775f060ef5c95f4fda1f https://git.kernel.org/stable/c/cc30d05b34f9a087a6928d09b131f7b491e9ab11 https://git.kernel.org/stable/c/c7618c7b0b8c45bcef34410cc1d1e953eb17f8f6 https://git.kernel.org/stable/c/88da52ccd66e65f2e63a6c35c9dff55d448ef4dc