GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2022-50668 (GCVE-0-2022-50668)

Vulnerability from cvelistv5 – Published: 2025-12-09 01:29 – Updated: 2026-08-05 08:59
VLAI
Title
ext4: fix deadlock due to mbcache entry corruption
Summary
In the Linux kernel, the following vulnerability has been resolved: ext4: fix deadlock due to mbcache entry corruption When manipulating xattr blocks, we can deadlock infinitely looping inside ext4_xattr_block_set() where we constantly keep finding xattr block for reuse in mbcache but we are unable to reuse it because its reference count is too big. This happens because cache entry for the xattr block is marked as reusable (e_reusable set) although its reference count is too big. When this inconsistency happens, this inconsistent state is kept indefinitely and so ext4_xattr_block_set() keeps retrying indefinitely. The inconsistent state is caused by non-atomic update of e_reusable bit. e_reusable is part of a bitfield and e_reusable update can race with update of e_referenced bit in the same bitfield resulting in loss of one of the updates. Fix the problem by using atomic bitops instead. This bug has been around for many years, but it became *much* easier to hit after commit 65f8b80053a1 ("ext4: fix race when reusing xattr blocks").
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 6048c64b26097a0ffbd966866b599f990e674e9b , < efaa0ca678f56d47316a08030b2515678cebbc50 (git)
Affected: 6048c64b26097a0ffbd966866b599f990e674e9b , < af53065276376750dfac35a7248af18806404c5d (git)
Affected: 6048c64b26097a0ffbd966866b599f990e674e9b , < 1be16a0c2f10186df505e28b0cc92d7f3366e2a8 (git)
Affected: 6048c64b26097a0ffbd966866b599f990e674e9b , < 5bc0b2fda4b47c86278f7c6d30c211f425bf51cf (git)
Affected: 6048c64b26097a0ffbd966866b599f990e674e9b , < 127b80cefb941a81255c72f11081123f3a705369 (git)
Affected: 6048c64b26097a0ffbd966866b599f990e674e9b , < cc1538c693d25e282bed8c54b65c914a04023a78 (git)
Affected: 6048c64b26097a0ffbd966866b599f990e674e9b , < a44e84a9b7764c72896f7241a0ec9ac7e7ef38dd (git)
guessed Create a notification for this product.
Linux Linux Affected: 4.6
Unaffected: 0 , < 4.6 (semver)
Unaffected: 4.19.270 , ≤ 4.19.* (semver)
Unaffected: 5.4.229 , ≤ 5.4.* (semver)
Unaffected: 5.10.163 , ≤ 5.10.* (semver)
Unaffected: 5.15.87 , ≤ 5.15.* (semver)
Unaffected: 6.0.18 , ≤ 6.0.* (semver)
Unaffected: 6.1.4 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/ext4/xattr.c",
            "fs/mbcache.c",
            "include/linux/mbcache.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "efaa0ca678f56d47316a08030b2515678cebbc50",
              "status": "affected",
              "version": "6048c64b26097a0ffbd966866b599f990e674e9b",
              "versionType": "git"
            },
            {
              "lessThan": "af53065276376750dfac35a7248af18806404c5d",
              "status": "affected",
              "version": "6048c64b26097a0ffbd966866b599f990e674e9b",
              "versionType": "git"
            },
            {
              "lessThan": "1be16a0c2f10186df505e28b0cc92d7f3366e2a8",
              "status": "affected",
              "version": "6048c64b26097a0ffbd966866b599f990e674e9b",
              "versionType": "git"
            },
            {
              "lessThan": "5bc0b2fda4b47c86278f7c6d30c211f425bf51cf",
              "status": "affected",
              "version": "6048c64b26097a0ffbd966866b599f990e674e9b",
              "versionType": "git"
            },
            {
              "lessThan": "127b80cefb941a81255c72f11081123f3a705369",
              "status": "affected",
              "version": "6048c64b26097a0ffbd966866b599f990e674e9b",
              "versionType": "git"
            },
            {
              "lessThan": "cc1538c693d25e282bed8c54b65c914a04023a78",
              "status": "affected",
              "version": "6048c64b26097a0ffbd966866b599f990e674e9b",
              "versionType": "git"
            },
            {
              "lessThan": "a44e84a9b7764c72896f7241a0ec9ac7e7ef38dd",
              "status": "affected",
              "version": "6048c64b26097a0ffbd966866b599f990e674e9b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/ext4/xattr.c",
            "fs/mbcache.c",
            "include/linux/mbcache.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.6"
            },
            {
              "lessThan": "4.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.87",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.18",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.87",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.18",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.4",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix deadlock due to mbcache entry corruption\n\nWhen manipulating xattr blocks, we can deadlock infinitely looping\ninside ext4_xattr_block_set() where we constantly keep finding xattr\nblock for reuse in mbcache but we are unable to reuse it because its\nreference count is too big. This happens because cache entry for the\nxattr block is marked as reusable (e_reusable set) although its\nreference count is too big. When this inconsistency happens, this\ninconsistent state is kept indefinitely and so ext4_xattr_block_set()\nkeeps retrying indefinitely.\n\nThe inconsistent state is caused by non-atomic update of e_reusable bit.\ne_reusable is part of a bitfield and e_reusable update can race with\nupdate of e_referenced bit in the same bitfield resulting in loss of one\nof the updates. Fix the problem by using atomic bitops instead.\n\nThis bug has been around for many years, but it became *much* easier\nto hit after commit 65f8b80053a1 (\"ext4: fix race when reusing xattr\nblocks\")."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The vulnerable ext4 xattr reuse path is reachable via VFS setxattr, and the same operations are driven remotely through in-kernel servers such as ksmbd and nfsd on an ext4-backed writable export, a reasonable severe deployment for file servers.\nAC:L - The attacker controls both sides of the race by issuing concurrent setxattr/removexattr operations that update e_reusable and e_referenced on a shared mbcache entry; creating ~1024 files with identical xattrs to reach REFCOUNT_MAX is also attacker-controlled.\nPR:N - In the most severe reasonable deployment, a guest/anonymous writable network export exposes create and xattr operations without real authentication; AUTH_SYS NFS UID spoofing similarly requires no privileged credentials.\nUI:N - The attacker triggers the bug directly by issuing filesystem requests; no separate victim action such as mounting a crafted image is required.\nS:U - The hang remains within the kernel/filesystem security authority with no VM escape, IOMMU bypass, or other cross-boundary impact.\nC:N - The bug only corrupts mbcache flag state into an inconsistent reusable/refcount combination; it does not disclose kernel or filesystem contents.\nI:N - There is no exploitable memory corruption or attacker-controlled data modification; the inconsistent flags only cause an infinite retry loop, not integrity compromise of stored data.\nA:H - ext4_xattr_block_set() loops indefinitely while holding a journal handle and inode xattr_sem, causing hung tasks and filesystem-wide denial of service; deadlock/infinite loop is high availability impact."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:59:19.230Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/efaa0ca678f56d47316a08030b2515678cebbc50"
        },
        {
          "url": "https://git.kernel.org/stable/c/af53065276376750dfac35a7248af18806404c5d"
        },
        {
          "url": "https://git.kernel.org/stable/c/1be16a0c2f10186df505e28b0cc92d7f3366e2a8"
        },
        {
          "url": "https://git.kernel.org/stable/c/5bc0b2fda4b47c86278f7c6d30c211f425bf51cf"
        },
        {
          "url": "https://git.kernel.org/stable/c/127b80cefb941a81255c72f11081123f3a705369"
        },
        {
          "url": "https://git.kernel.org/stable/c/cc1538c693d25e282bed8c54b65c914a04023a78"
        },
        {
          "url": "https://git.kernel.org/stable/c/a44e84a9b7764c72896f7241a0ec9ac7e7ef38dd"
        }
      ],
      "title": "ext4: fix deadlock due to mbcache entry corruption",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50668",
    "datePublished": "2025-12-09T01:29:19.526Z",
    "dateReserved": "2025-12-09T01:26:45.990Z",
    "dateUpdated": "2026-08-05T08:59:19.230Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50668",
      "date": "2026-09-16",
      "epss": "0.00808",
      "percentile": "0.55074"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50668\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-09T16:17:18.830\",\"lastModified\":\"2026-08-04T10:18:20.807\",\"vulnStatus\":\"Deferred\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\next4: fix deadlock due to mbcache entry corruption\\n\\nWhen manipulating xattr blocks, we can deadlock infinitely looping\\ninside ext4_xattr_block_set() where we constantly keep finding xattr\\nblock for reuse in mbcache but we are unable to reuse it because its\\nreference count is too big. This happens because cache entry for the\\nxattr block is marked as reusable (e_reusable set) although its\\nreference count is too big. When this inconsistency happens, this\\ninconsistent state is kept indefinitely and so ext4_xattr_block_set()\\nkeeps retrying indefinitely.\\n\\nThe inconsistent state is caused by non-atomic update of e_reusable bit.\\ne_reusable is part of a bitfield and e_reusable update can race with\\nupdate of e_referenced bit in the same bitfield resulting in loss of one\\nof the updates. Fix the problem by using atomic bitops instead.\\n\\nThis bug has been around for many years, but it became *much* easier\\nto hit after commit 65f8b80053a1 (\\\"ext4: fix race when reusing xattr\\nblocks\\\").\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/ext4/xattr.c\",\"fs/mbcache.c\",\"include/linux/mbcache.h\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6048c64b26097a0ffbd966866b599f990e674e9b\",\"lessThan\":\"efaa0ca678f56d47316a08030b2515678cebbc50\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6048c64b26097a0ffbd966866b599f990e674e9b\",\"lessThan\":\"af53065276376750dfac35a7248af18806404c5d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6048c64b26097a0ffbd966866b599f990e674e9b\",\"lessThan\":\"1be16a0c2f10186df505e28b0cc92d7f3366e2a8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6048c64b26097a0ffbd966866b599f990e674e9b\",\"lessThan\":\"5bc0b2fda4b47c86278f7c6d30c211f425bf51cf\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6048c64b26097a0ffbd966866b599f990e674e9b\",\"lessThan\":\"127b80cefb941a81255c72f11081123f3a705369\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6048c64b26097a0ffbd966866b599f990e674e9b\",\"lessThan\":\"cc1538c693d25e282bed8c54b65c914a04023a78\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6048c64b26097a0ffbd966866b599f990e674e9b\",\"lessThan\":\"a44e84a9b7764c72896f7241a0ec9ac7e7ef38dd\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/ext4/xattr.c\",\"fs/mbcache.c\",\"include/linux/mbcache.h\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"4.6\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"4.6\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"4.19.270\",\"lessThanOrEqual\":\"4.19.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.4.229\",\"lessThanOrEqual\":\"5.4.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.163\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.87\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.0.18\",\"lessThanOrEqual\":\"6.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.4\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":7.5,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":3.6}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/127b80cefb941a81255c72f11081123f3a705369\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1be16a0c2f10186df505e28b0cc92d7f3366e2a8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5bc0b2fda4b47c86278f7c6d30c211f425bf51cf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a44e84a9b7764c72896f7241a0ec9ac7e7ef38dd\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/af53065276376750dfac35a7248af18806404c5d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/cc1538c693d25e282bed8c54b65c914a04023a78\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/efaa0ca678f56d47316a08030b2515678cebbc50\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-04T19:37:31+00:00",
      "cve": "CVE-2022-50668",
      "id": "CVE-2022-50668",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:fixed": "321",
      "product_status:known_affected": "52",
      "product_status:known_not_affected": "104",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: ext4: fix deadlock due to mbcache entry corruption",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50668.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-29T02:19:32Z",
      "cve": "CVE-2022-50668",
      "id": "CVE-2022-50668",
      "initial_release_date": "2025-12-10T00:38:24Z",
      "product_status:known_affected": "501",
      "product_status:known_not_affected": "213",
      "product_status:recommended": "284",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-50668",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-50668.json",
      "version": "40"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…