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 E8B3E4A2A72 for ; Thu, 24 Sep 2026 15:55:58 +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=1790265360; cv=none; b=g4AFvw6MvUoH5fs5oDWEQZL5lSHWS3tooGcWU18ejZ6zZzQO8UeEUBm6/u979GD9anYo1MWCUuHY6snlDzry/TKHTriAg1woQYsZ6hFBjMYboV48wpNA9uniGRqkyyQWQxafIsC3xxPCbPmGnRW9QbSJEfkIUmMJMGbc8I/5B5A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790265360; c=relaxed/simple; bh=lAkRrmwPBQzu+kS2csFILBV2c4ud/Xt+1T83xTt1bBw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZxxNo8yXP6T/6fcOToioVx7R1HoZ78rsOWrHQRdLq4TEfZEE9cJBGU+Y5b6GHO0kh60w2Ti9VKnPhXh1aG5vv7oEgyNy7uV4KGH90BwIGloFNl49+o/AKOz/cXUB6OhcI/3Pq5tx3/iXBx/NQMR03i+tljttOoGEX8bErx+e+3s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f1SuMvUp; 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="f1SuMvUp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 631801F000FF; Thu, 24 Sep 2026 15:55:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790265358; bh=S/enIfiylP1e49TZYltR0BMechvkTwVDnhsiwzaLOAY=; h=From:To:Cc:Subject:Date:Reply-To; b=f1SuMvUpy5bNHEAleZZeIxZg9FF1L00bCBmeJZSuMt66EdvCLB4QmaiKyZ6BqQhiY WiFJ+FTOv/0Fjniu0xTF6ufyBuibQjERzE5zjcnldNPelRJi3nTZ2vs1yCAOxuLB58 /f3ginQBoGFpkA5dk1gGjPU7PHWTiUvm+ya2/QFY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93252: ocfs2: fix circular locking dependency in ocfs2_init_acl() Date: Thu, 24 Sep 2026 17:51:12 +0200 Message-ID: <2026092407-CVE-2026-93252-dd16@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=5668; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=v8+gmWgyKoTHosNqpQ8zdrQ4U4JQc4O91LsybxEkYQ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlb3V7H7nsjv+7R/FWL9MXyLKydPxc+OTnjzsOFLC+jX //fcajYpiOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmEivDsGC3LEOUvc6055vv lT92bpJJPqSb0sgwz7zslKXXOzMbb32ZsHMbbod+Z1vHCQA= 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: ocfs2: fix circular locking dependency in ocfs2_init_acl() A lockdep warning indicates a circular locking dependency between `&oi->ip_xattr_sem` and `&journal->j_trans_barrier`: WARNING: possible circular locking dependency detected is trying to acquire lock: (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_init_acl+0x2fd/0x7e0 fs/ocfs2/acl.c:367 but task is already holding lock: (&journal->j_trans_barrier){.+.+}-{4:4}, at: ocfs2_start_trans+0x3ab/0x700 fs/ocfs2/journal.c:369 The deadlock involves two code paths: Path 1 (setxattr) where `ocfs2_xattr_set()` acquires `ip_xattr_sem` (write) and then starts a transaction, which acquires `j_trans_barrier` (read); and Path 2 (mkdir/mknod) where `ocfs2_mknod()` starts a transaction (`j_trans_barrier` read) and then calls `ocfs2_init_acl()`, which attempts to acquire `ip_xattr_sem` (read) on the parent directory to retrieve the default ACL. Because rw_semaphores are subject to writer priority, a pending writer on `j_trans_barrier` (e.g., the journal commit thread) can cause Path 1 to block, while Path 2 is blocked waiting for Path 1 to release `ip_xattr_sem`. The patch fixes the lock ordering by precomputing the ACL state before starting the OCFS2 transaction, while preserving POSIX ACL storage semantics and the existing inode/security initialization order. By reading the parent directory's default ACL and preparing the new inode's ACLs outside the transaction, `ip_xattr_sem` is always acquired before `j_trans_barrier`. `struct ocfs2_acl_state` encapsulates the prepared ACL state, while `ocfs2_acl_init_prepare()` and `ocfs2_acl_init_release()` avoid code duplication between `ocfs2_mknod()` and `ocfs2_init_security_and_acl()`. `ocfs2_calc_xattr_init()` and `ocfs2_init_acl()` use this precomputed state, removing internal `ip_xattr_sem` acquisition and redundant disk reads. Additionally, remove the `ip_xattr_sem` acquisition from `ocfs2_xattr_set_handle()`. This function is only used while initializing a new inode that has not yet been inserted into the inode hash or attached to a dentry, meaning there is no risk of concurrent access and the lock is unnecessary. The Linux kernel CVE team has assigned CVE-2026-93252 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 16c8d569f5704a84164f30ff01b29879f3438065 and fixed in 5.10.270 with commit 4936d4464d1ae10b5fbba64374085a0dcc060560 Issue introduced in 4.16 with commit 16c8d569f5704a84164f30ff01b29879f3438065 and fixed in 5.15.221 with commit caf3056936fb8b5ce92e419cf8b246ce9c437343 Issue introduced in 4.16 with commit 16c8d569f5704a84164f30ff01b29879f3438065 and fixed in 6.1.188 with commit 5b7b3c50c39ad0dc27e7418981e01c4183273f89 Issue introduced in 4.16 with commit 16c8d569f5704a84164f30ff01b29879f3438065 and fixed in 6.6.157 with commit 8d88f52fbbbcc18adf4091a955511d0cf605bf11 Issue introduced in 4.16 with commit 16c8d569f5704a84164f30ff01b29879f3438065 and fixed in 6.12.110 with commit 8931403ee3dcfe8a24a5267efec9d9460ab7a1b5 Issue introduced in 4.16 with commit 16c8d569f5704a84164f30ff01b29879f3438065 and fixed in 6.18.52 with commit f8747d81aa6d3efe3ee339a9d912ff3ca6e4d758 Issue introduced in 4.16 with commit 16c8d569f5704a84164f30ff01b29879f3438065 and fixed in 7.2.6 with commit 1222f7a3183b35c0c566899fdaead5c7c4043076 Issue introduced in 4.16 with commit 16c8d569f5704a84164f30ff01b29879f3438065 and fixed in 7.3-rc1 with commit bd7c05fb4a4776dff5a87b19008d28458647d15d Issue introduced in 3.18.111 with commit 15ac59a84750b3afc0a2b6f2636c4f7e6cbd6d5e Issue introduced in 4.4.134 with commit b35bb8a41795caa05e09c3aacf7d78f1f20bac04 Issue introduced in 4.9.104 with commit 1d5fdc1307eeb04b334c5dc23e11dbd6068d90eb Issue introduced in 4.14.37 with commit a66174eb4a149b7919d174d9a7ce6ad9909c5ee2 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-93252 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/ocfs2/acl.c fs/ocfs2/acl.h fs/ocfs2/namei.c fs/ocfs2/xattr.c fs/ocfs2/xattr.h 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/4936d4464d1ae10b5fbba64374085a0dcc060560 https://git.kernel.org/stable/c/caf3056936fb8b5ce92e419cf8b246ce9c437343 https://git.kernel.org/stable/c/5b7b3c50c39ad0dc27e7418981e01c4183273f89 https://git.kernel.org/stable/c/8d88f52fbbbcc18adf4091a955511d0cf605bf11 https://git.kernel.org/stable/c/8931403ee3dcfe8a24a5267efec9d9460ab7a1b5 https://git.kernel.org/stable/c/f8747d81aa6d3efe3ee339a9d912ff3ca6e4d758 https://git.kernel.org/stable/c/1222f7a3183b35c0c566899fdaead5c7c4043076 https://git.kernel.org/stable/c/bd7c05fb4a4776dff5a87b19008d28458647d15d