CVE-2022-50234 (GCVE-0-2022-50234)
Vulnerability from cvelistv5
Published
2025-09-15 14:01
Modified
2026-08-05 08:57
Summary
In the Linux kernel, the following vulnerability has been resolved: io_uring/af_unix: defer registered files gc to io_uring release Instead of putting io_uring's registered files in unix_gc() we want it to be done by io_uring itself. The trick here is to consider io_uring registered files for cycle detection but not actually putting them down. Because io_uring can't register other ring instances, this will remove all refs to the ring file triggering the ->release path and clean up with io_ring_ctx_free(). [axboe: add kerneldoc comment to skb, fold in skb leak fix]
Impacted products
Vendor Product Version
Linux Linux Version: 6b06314c47e141031be043539900d80d2c7ba10f
Version: 6b06314c47e141031be043539900d80d2c7ba10f
Version: 6b06314c47e141031be043539900d80d2c7ba10f
Version: 6b06314c47e141031be043539900d80d2c7ba10f
Version: 6b06314c47e141031be043539900d80d2c7ba10f
Version: 6b06314c47e141031be043539900d80d2c7ba10f
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/linux/skbuff.h",
            "io_uring/rsrc.c",
            "net/unix/garbage.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "04df9719df1865f6770af9bc7880874af0e594b2",
              "status": "affected",
              "version": "6b06314c47e141031be043539900d80d2c7ba10f",
              "versionType": "git"
            },
            {
              "lessThan": "c378c479c5175833bb22ff71974cda47d7b05401",
              "status": "affected",
              "version": "6b06314c47e141031be043539900d80d2c7ba10f",
              "versionType": "git"
            },
            {
              "lessThan": "813d8fe5d30388f73a21d3a2bf46b0a1fd72498c",
              "status": "affected",
              "version": "6b06314c47e141031be043539900d80d2c7ba10f",
              "versionType": "git"
            },
            {
              "lessThan": "b4293c01ee0d0ecdd3cb5801e13f62271144667a",
              "status": "affected",
              "version": "6b06314c47e141031be043539900d80d2c7ba10f",
              "versionType": "git"
            },
            {
              "lessThan": "75e94c7e8859e58aadc15a98cc9704edff47d4f2",
              "status": "affected",
              "version": "6b06314c47e141031be043539900d80d2c7ba10f",
              "versionType": "git"
            },
            {
              "lessThan": "0091bfc81741b8d3aeb3b7ab8636f911b2de6e80",
              "status": "affected",
              "version": "6b06314c47e141031be043539900d80d2c7ba10f",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/linux/skbuff.h",
            "io_uring/rsrc.c",
            "net/unix/garbage.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.1"
            },
            {
              "lessThan": "5.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.220",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.150",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.75",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.17",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.220",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.150",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.75",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.17",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.3",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring/af_unix: defer registered files gc to io_uring release\n\nInstead of putting io_uring\u0027s registered files in unix_gc() we want it\nto be done by io_uring itself. The trick here is to consider io_uring\nregistered files for cycle detection but not actually putting them down.\nBecause io_uring can\u0027t register other ring instances, this will remove\nall refs to the ring file triggering the -\u003erelease path and clean up\nwith io_ring_ctx_free().\n\n[axboe: add kerneldoc comment to skb, fold in skb leak fix]"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The bug is reached only through local io_uring syscalls (io_uring_setup/register/enter) combined with AF_UNIX SCM_RIGHTS cycle construction; it is not reachable via network packets or a remote protocol parser.\nAC:L - The attacker fully controls both sides of the race\u2014stalling the in-flight io_uring request (userfaultfd/FUSE/inode lock) and triggering unix_gc via crafted inflight cycles\u2014so success does not depend on conditions outside their influence; public exploits demonstrate reliable triggering.\nPR:L - io_uring_setup, IORING_REGISTER_FILES, and AF_UNIX socket operations require only an unprivileged local account with no capabilities; the vulnerable kernels had no io_uring_disabled gate.\nUI:N - The attacker drives the entire sequence (ring setup, file registration, cycle creation, stalled request, and GC trigger) themselves with no action required from another user.\nS:U - This is a host-kernel use-after-free of struct file enabling local privilege escalation within the same kernel authority; it is not a VM escape, IOMMU bypass, or other cross-boundary compromise.\nC:H - The UAF leaves a dangling struct file pointer reclaimable via heap spray (DirtyCred), giving the attacker control over file object contents and enabling arbitrary file/credential disclosure primitives.\nI:H - Replacing the freed writable file with a privileged read-only file (e.g. /etc/passwd) after permission checks allows arbitrary file writes and reliable local privilege escalation, as shown by public exploits.\nA:H - Use of the dangling registered-file pointer after unix_gc frees it causes kernel oops/panic even without a full exploit, so availability impact is high."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:57:50.462Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/04df9719df1865f6770af9bc7880874af0e594b2"
        },
        {
          "url": "https://git.kernel.org/stable/c/c378c479c5175833bb22ff71974cda47d7b05401"
        },
        {
          "url": "https://git.kernel.org/stable/c/813d8fe5d30388f73a21d3a2bf46b0a1fd72498c"
        },
        {
          "url": "https://git.kernel.org/stable/c/b4293c01ee0d0ecdd3cb5801e13f62271144667a"
        },
        {
          "url": "https://git.kernel.org/stable/c/75e94c7e8859e58aadc15a98cc9704edff47d4f2"
        },
        {
          "url": "https://git.kernel.org/stable/c/0091bfc81741b8d3aeb3b7ab8636f911b2de6e80"
        }
      ],
      "title": "io_uring/af_unix: defer registered files gc to io_uring release",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50234",
    "datePublished": "2025-09-15T14:01:38.199Z",
    "dateReserved": "2025-06-18T10:57:27.432Z",
    "dateUpdated": "2026-08-05T08:57:50.462Z",
    "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…