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 C955536C5A9 for ; Sat, 15 Aug 2026 06:24:50 +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=1786775091; cv=none; b=p6IIdBZ9Mt0l+kLxKzq/RM+hdojxXVo6SO9HMYaT8hdhRso3ucIe9mgD0dI6nqh8ZosTg/r35Fwcj5u9fqICfmAvNVTkIn56wUzEK5vdLSrCmrBMnRPjr4sBvDIF75S6ZVFASDrclxcxaMi0F1yrvm5HZsdvE1oYr/U6/v6I24s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775091; c=relaxed/simple; bh=TFpN7K8GBt9cqh5Iuv2GZsTtjspVJY6uU9obU2VLcQk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=q9kU5whOA0K0uSSEizLsPVhiExRtWrZkOQTpWzlw997kGPR4CE+qXYXNoP4i/VhvfM4gKp+6qTqZLsj+KsT99ST0HjHdnkbQvcl66bJwfGRC23zGgyRLgqVpOVM0boDAvT/cIgB9SmVI0bRtbs028JJnGjgDRDLMDRCsqfTEPk4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=s4PvOMsi; 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="s4PvOMsi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25F511F000E9; Sat, 15 Aug 2026 06:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775090; bh=sBxmahfsLzZOXAB+5ibDf+0hWzJU5GWEL4RTfab/YjU=; h=From:To:Cc:Subject:Date:Reply-To; b=s4PvOMsikhkI4+QUWJ060XEVVy1nQiuc0Fxz/NFWFyicMaN42vldD64AXLzYzSV/A JV1lL0ZK0/EGzX+C/kWgjVYuR6SS/Zo/SkQI9rcc8IDW8cTRybWn793QkE8OWLavmy i0WhHQefxnhLZGbDa+9x5wHGQ9VEBeWcRl1+0hkc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72368: cachefiles: Fix double unlock in nomem_d_alloc error path Date: Sat, 15 Aug 2026 15:07:27 +0900 Message-ID: <2026081515-CVE-2026-72368-ca7c@gregkh> X-Mailer: git-send-email 2.55.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=2581; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=P2ghKRgreKFlX4XvWu+2WWCvVDhdXHeLHqrUL0sjBdg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDM9bjU7cXbbyoHnm52cRXjLpu43rXE+9bJPuTTnzR v07E9fkjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgI23qGOXx9d/mCSz7clXKf cOWUvvSDNYXrHzHMd7918JPokgctRWd2LxaUnPng3o3v/gA= 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: cachefiles: Fix double unlock in nomem_d_alloc error path When start_creating() fails and returns -ENOMEM, it has already released the parent directory lock in __start_dirop(): static struct dentry *__start_dirop(...) { ... inode_lock_nested(dir, I_MUTEX_PARENT); dentry = lookup_one_qstr_excl(name, parent, lookup_flags); if (IS_ERR(dentry)) inode_unlock(dir); <-- Lock released on error return dentry; } However, the nomem_d_alloc error path in cachefiles_get_directory() unconditionally calls inode_unlock(d_inode(dir)) again, causing a double unlock that corrupts the rwsem state. This is a leftover from commit 7ab96df840e60 which replaced manual locking with start_creating() but failed to update the nomem_d_alloc path (while correctly updating mkdir_error and lookup_error paths). The Linux kernel CVE team has assigned CVE-2026-72368 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit 7ab96df840e60eb933abfe65fc5fe44e72f16dc0 and fixed in 7.1.5 with commit 26757dac15175f2a42e3537f1ba86e62456d48f1 Issue introduced in 6.19 with commit 7ab96df840e60eb933abfe65fc5fe44e72f16dc0 and fixed in 7.2-rc2 with commit 8c256fba2b46020004201c500b2a1fbc707a33ef 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-72368 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: fs/cachefiles/namei.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/26757dac15175f2a42e3537f1ba86e62456d48f1 https://git.kernel.org/stable/c/8c256fba2b46020004201c500b2a1fbc707a33ef