CVE-2026-93252 (GCVE-0-2026-93252)
Vulnerability from cvelistv5
Published
2026-09-24 15:51
Modified
2026-10-19 09:08
Severity ?
Summary
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.
Impacted products
Vendor Product Version
Linux Linux Version: 16c8d569f5704a84164f30ff01b29879f3438065
Version: 16c8d569f5704a84164f30ff01b29879f3438065
Version: 16c8d569f5704a84164f30ff01b29879f3438065
Version: 16c8d569f5704a84164f30ff01b29879f3438065
Version: 16c8d569f5704a84164f30ff01b29879f3438065
Version: 16c8d569f5704a84164f30ff01b29879f3438065
Version: 16c8d569f5704a84164f30ff01b29879f3438065
Version: 16c8d569f5704a84164f30ff01b29879f3438065
Version: 15ac59a84750b3afc0a2b6f2636c4f7e6cbd6d5e
Version: b35bb8a41795caa05e09c3aacf7d78f1f20bac04
Version: 1d5fdc1307eeb04b334c5dc23e11dbd6068d90eb
Version: a66174eb4a149b7919d174d9a7ce6ad9909c5ee2
Version: 3.18.111   ≤
Version: 4.4.134   ≤
Version: 4.9.104   ≤
Version: 4.14.37   ≤
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/ocfs2/acl.c",
            "fs/ocfs2/acl.h",
            "fs/ocfs2/namei.c",
            "fs/ocfs2/xattr.c",
            "fs/ocfs2/xattr.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "4936d4464d1ae10b5fbba64374085a0dcc060560",
              "status": "affected",
              "version": "16c8d569f5704a84164f30ff01b29879f3438065",
              "versionType": "git"
            },
            {
              "lessThan": "caf3056936fb8b5ce92e419cf8b246ce9c437343",
              "status": "affected",
              "version": "16c8d569f5704a84164f30ff01b29879f3438065",
              "versionType": "git"
            },
            {
              "lessThan": "5b7b3c50c39ad0dc27e7418981e01c4183273f89",
              "status": "affected",
              "version": "16c8d569f5704a84164f30ff01b29879f3438065",
              "versionType": "git"
            },
            {
              "lessThan": "8d88f52fbbbcc18adf4091a955511d0cf605bf11",
              "status": "affected",
              "version": "16c8d569f5704a84164f30ff01b29879f3438065",
              "versionType": "git"
            },
            {
              "lessThan": "8931403ee3dcfe8a24a5267efec9d9460ab7a1b5",
              "status": "affected",
              "version": "16c8d569f5704a84164f30ff01b29879f3438065",
              "versionType": "git"
            },
            {
              "lessThan": "f8747d81aa6d3efe3ee339a9d912ff3ca6e4d758",
              "status": "affected",
              "version": "16c8d569f5704a84164f30ff01b29879f3438065",
              "versionType": "git"
            },
            {
              "lessThan": "1222f7a3183b35c0c566899fdaead5c7c4043076",
              "status": "affected",
              "version": "16c8d569f5704a84164f30ff01b29879f3438065",
              "versionType": "git"
            },
            {
              "lessThan": "bd7c05fb4a4776dff5a87b19008d28458647d15d",
              "status": "affected",
              "version": "16c8d569f5704a84164f30ff01b29879f3438065",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "15ac59a84750b3afc0a2b6f2636c4f7e6cbd6d5e",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "b35bb8a41795caa05e09c3aacf7d78f1f20bac04",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "1d5fdc1307eeb04b334c5dc23e11dbd6068d90eb",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "a66174eb4a149b7919d174d9a7ce6ad9909c5ee2",
              "versionType": "git"
            },
            {
              "lessThan": "3.19",
              "status": "affected",
              "version": "3.18.111",
              "versionType": "semver"
            },
            {
              "lessThan": "4.5",
              "status": "affected",
              "version": "4.4.134",
              "versionType": "semver"
            },
            {
              "lessThan": "4.10",
              "status": "affected",
              "version": "4.9.104",
              "versionType": "semver"
            },
            {
              "lessThan": "4.15",
              "status": "affected",
              "version": "4.14.37",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/ocfs2/acl.c",
            "fs/ocfs2/acl.h",
            "fs/ocfs2/namei.c",
            "fs/ocfs2/xattr.c",
            "fs/ocfs2/xattr.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.16"
            },
            {
              "lessThan": "4.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.221",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.188",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.157",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.110",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.52",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.270",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.221",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.188",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.157",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.110",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.52",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.6",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "4.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "3.18.111",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.4.134",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.9.104",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "4.14.37",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix circular locking dependency in ocfs2_init_acl()\n\nA lockdep warning indicates a circular locking dependency between\n`\u0026oi-\u003eip_xattr_sem` and `\u0026journal-\u003ej_trans_barrier`:\n\nWARNING: possible circular locking dependency detected\nis trying to acquire lock:\n (\u0026oi-\u003eip_xattr_sem){++++}-{4:4}, at: ocfs2_init_acl+0x2fd/0x7e0\n fs/ocfs2/acl.c:367\n\nbut task is already holding lock:\n (\u0026journal-\u003ej_trans_barrier){.+.+}-{4:4}, at: ocfs2_start_trans+0x3ab/0x700\n fs/ocfs2/journal.c:369\n\nThe deadlock involves two code paths: Path 1 (setxattr) where\n`ocfs2_xattr_set()` acquires `ip_xattr_sem` (write) and then starts a\ntransaction, which acquires `j_trans_barrier` (read); and Path 2\n(mkdir/mknod) where `ocfs2_mknod()` starts a transaction (`j_trans_barrier`\nread) and then calls `ocfs2_init_acl()`, which attempts to acquire\n`ip_xattr_sem` (read) on the parent directory to retrieve the default ACL.\n\nBecause rw_semaphores are subject to writer priority, a pending writer on\n`j_trans_barrier` (e.g., the journal commit thread) can cause Path 1 to\nblock, while Path 2 is blocked waiting for Path 1 to release\n`ip_xattr_sem`.\n\nThe patch fixes the lock ordering by precomputing the ACL state before\nstarting the OCFS2 transaction, while preserving POSIX ACL storage\nsemantics and the existing inode/security initialization order. By reading\nthe parent directory\u0027s default ACL and preparing the new inode\u0027s ACLs\noutside the transaction, `ip_xattr_sem` is always acquired before\n`j_trans_barrier`.\n\n`struct ocfs2_acl_state` encapsulates the prepared ACL state, while\n`ocfs2_acl_init_prepare()` and `ocfs2_acl_init_release()` avoid code\nduplication between `ocfs2_mknod()` and `ocfs2_init_security_and_acl()`.\n`ocfs2_calc_xattr_init()` and `ocfs2_init_acl()` use this precomputed\nstate, removing internal `ip_xattr_sem` acquisition and redundant disk\nreads.\n\nAdditionally, remove the `ip_xattr_sem` acquisition from\n`ocfs2_xattr_set_handle()`. This function is only used while initializing a\nnew inode that has not yet been inserted into the inode hash or attached to\na dentry, meaning there is no risk of concurrent access and the lock is\nunnecessary."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-19T09:08:05.879Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/4936d4464d1ae10b5fbba64374085a0dcc060560"
        },
        {
          "url": "https://git.kernel.org/stable/c/caf3056936fb8b5ce92e419cf8b246ce9c437343"
        },
        {
          "url": "https://git.kernel.org/stable/c/5b7b3c50c39ad0dc27e7418981e01c4183273f89"
        },
        {
          "url": "https://git.kernel.org/stable/c/8d88f52fbbbcc18adf4091a955511d0cf605bf11"
        },
        {
          "url": "https://git.kernel.org/stable/c/8931403ee3dcfe8a24a5267efec9d9460ab7a1b5"
        },
        {
          "url": "https://git.kernel.org/stable/c/f8747d81aa6d3efe3ee339a9d912ff3ca6e4d758"
        },
        {
          "url": "https://git.kernel.org/stable/c/1222f7a3183b35c0c566899fdaead5c7c4043076"
        },
        {
          "url": "https://git.kernel.org/stable/c/bd7c05fb4a4776dff5a87b19008d28458647d15d"
        }
      ],
      "title": "ocfs2: fix circular locking dependency in ocfs2_init_acl()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-93252",
    "datePublished": "2026-09-24T15:51:28.355Z",
    "dateReserved": "2026-09-17T16:02:15.096Z",
    "dateUpdated": "2026-10-19T09:08:05.879Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…