CVE-2026-99800 (GCVE-0-2026-99800)

Vulnerability from cvelistv5 – Published: 2026-11-20 07:02 – Updated: 2026-11-22 11:10
VLAI
Title
io_uring: free the task context after a grace period
Summary
In the Linux kernel, the following vulnerability has been resolved: io_uring: free the task context after a grace period A task other than the owner can free a request, io_ring_exit_work() running the local task_work of a DEFER_TASKRUN ring for example, or io_do_iopoll() reaping completions. io_put_task() then takes the else branch: percpu_counter_sub(&tctx->inflight, 1); if (unlikely(atomic_read(&tctx->in_cancel))) wake_up(&tctx->wait); put_task_struct(tctx->task); The first line is what lets the owner leave io_uring_cancel_generic(), and on exec it frees the tctx right after. Nothing holds that off for the remaining three lines, the task reference only covers a tctx freed along with the task_struct. It used to work out because io_uring_del_tctx_node() took the uring_lock that the freeing side holds across io_put_task(), until that moved to tctx_lock. Free the tctx with kfree_rcu(), and enter an RCU read section in io_put_task() before the count is dropped.
Impacted products
Vendor Product Version
Linux Linux Affected: 5623eb1ed035f01dfa620366a82b667545b10c82 , < 953174dcb862a7a364efdb65e178dcd3aea5562e (git)
Affected: 5623eb1ed035f01dfa620366a82b667545b10c82 , < 9f5315d3f4368590c9fe06d4313b7247470bcf15 (git)
Create a notification for this product.
Linux Linux Affected: 6.19
Unaffected: 0 , < 6.19 (semver)
Unaffected: 7.3.2 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/linux/io_uring_types.h",
            "io_uring/io_uring.c",
            "io_uring/tctx.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "953174dcb862a7a364efdb65e178dcd3aea5562e",
              "status": "affected",
              "version": "5623eb1ed035f01dfa620366a82b667545b10c82",
              "versionType": "git"
            },
            {
              "lessThan": "9f5315d3f4368590c9fe06d4313b7247470bcf15",
              "status": "affected",
              "version": "5623eb1ed035f01dfa620366a82b667545b10c82",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/linux/io_uring_types.h",
            "io_uring/io_uring.c",
            "io_uring/tctx.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.19"
            },
            {
              "lessThan": "6.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.2",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: free the task context after a grace period\n\nA task other than the owner can free a request, io_ring_exit_work()\nrunning the local task_work of a DEFER_TASKRUN ring for example, or\nio_do_iopoll() reaping completions. io_put_task() then takes the else\nbranch:\n\n    percpu_counter_sub(\u0026tctx-\u003einflight, 1);\n    if (unlikely(atomic_read(\u0026tctx-\u003ein_cancel)))\n            wake_up(\u0026tctx-\u003ewait);\n    put_task_struct(tctx-\u003etask);\n\nThe first line is what lets the owner leave io_uring_cancel_generic(),\nand on exec it frees the tctx right after. Nothing holds that off for\nthe remaining three lines, the task reference only covers a tctx freed\nalong with the task_struct. It used to work out because\nio_uring_del_tctx_node() took the uring_lock that the freeing side holds\nacross io_put_task(), until that moved to tctx_lock.\n\nFree the tctx with kfree_rcu(), and enter an RCU read section in\nio_put_task() before the count is dropped."
        }
      ],
      "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 - io_put_task() is reached from io_do_iopoll() via io_uring_enter(), or from io_ring_exit_work() after close() of a DEFER_TASKRUN ring, and the owner frees the tctx in io_uring_free_tctx() from execve()-\u003ebegin_new_exec()-\u003eio_uring_task_cancel(). Nothing in that race is a field parsed from a remote protocol message.\nAC:L - The same user drives both sides: execve() makes io_uring_cancel_generic() call io_uring_free_tctx() once percpu_counter_sub() zeroes tctx-\u003einflight, while that user\u0027s io_uring_enter() iopoll or the iou_wq exit worker is still in io_put_task(). io_uring_del_tctx_node() takes tctx_lock, so the uring_lock held across the put no longer blocks the free, and the race can be retried.\nPR:L - io_uring_setup() calls io_uring_allowed(), which succeeds for any task when sysctl_io_uring_disabled is 0, the static default. IORING_SETUP_DEFER_TASKRUN and the execve() path through begin_new_exec() do not check CAP_SYS_ADMIN or any other capability.\nUI:N - The attacker itself calls io_uring_setup(), io_uring_enter() or close(), and execve() on its own tasks. No other user has to open a file, mount an image, or accept a prompt.\nS:U - The freed object is the caller\u0027s own kernel io_uring_task. The resulting memory corruption escalates that local user inside the same kernel and does not cross a KVM guest-to-host or IOMMU boundary.\nC:H - io_uring_free_tctx() kfree\u0027s the tctx while io_put_task() still executes atomic_read(\u0026tctx-\u003ein_cancel), wake_up(\u0026tctx-\u003ewait), and put_task_struct(tctx-\u003etask). Reclaiming that slab supplies the task pointer, and put_task_struct() then reads task-\u003eusage and, if it hits zero, the rest of the object in __put_task_struct().\nI:H - wake_up(\u0026tctx-\u003ewait) locks and walks the wait_queue_head embedded in the freed io_uring_task, calling waiter-\u003efunc if the reclaimed list is non-empty, and put_task_struct() does refcount_dec_and_test() on whatever pointer now sits in tctx-\u003etask, invoking __put_task_struct() when the count hits zero.\nA:H - io_put_task() still takes the spinlock in tctx-\u003ewait and dereferences tctx-\u003etask after io_uring_free_tctx() has returned the slab, so a poisoned or reused io_uring_task oopses or panics the kernel."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-22T11:10:13.035Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/953174dcb862a7a364efdb65e178dcd3aea5562e"
        },
        {
          "url": "https://git.kernel.org/stable/c/9f5315d3f4368590c9fe06d4313b7247470bcf15"
        }
      ],
      "title": "io_uring: free the task context after a grace period",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99800",
    "datePublished": "2026-11-20T07:02:22.819Z",
    "dateReserved": "2026-09-25T10:25:14.435Z",
    "dateUpdated": "2026-11-22T11:10:13.035Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99800",
      "date": "2026-11-23",
      "epss": "0.00212",
      "percentile": "0.1149"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "include/linux/io_uring_types.h",
                  "io_uring/io_uring.c",
                  "io_uring/tctx.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "953174dcb862a7a364efdb65e178dcd3aea5562e",
                    "status": "affected",
                    "version": "5623eb1ed035f01dfa620366a82b667545b10c82",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "9f5315d3f4368590c9fe06d4313b7247470bcf15",
                    "status": "affected",
                    "version": "5623eb1ed035f01dfa620366a82b667545b10c82",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "include/linux/io_uring_types.h",
                  "io_uring/io_uring.c",
                  "io_uring/tctx.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.19"
                  },
                  {
                    "lessThan": "6.19",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: free the task context after a grace period\n\nA task other than the owner can free a request, io_ring_exit_work()\nrunning the local task_work of a DEFER_TASKRUN ring for example, or\nio_do_iopoll() reaping completions. io_put_task() then takes the else\nbranch:\n\n    percpu_counter_sub(\u0026tctx-\u003einflight, 1);\n    if (unlikely(atomic_read(\u0026tctx-\u003ein_cancel)))\n            wake_up(\u0026tctx-\u003ewait);\n    put_task_struct(tctx-\u003etask);\n\nThe first line is what lets the owner leave io_uring_cancel_generic(),\nand on exec it frees the tctx right after. Nothing holds that off for\nthe remaining three lines, the task reference only covers a tctx freed\nalong with the task_struct. It used to work out because\nio_uring_del_tctx_node() took the uring_lock that the freeing side holds\nacross io_put_task(), until that moved to tctx_lock.\n\nFree the tctx with kfree_rcu(), and enter an RCU read section in\nio_put_task() before the count is dropped."
          }
        ],
        "id": "CVE-2026-99800",
        "lastModified": "2026-11-22T11:17:10.623",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-20T08:18:37.647",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/953174dcb862a7a364efdb65e178dcd3aea5562e"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/9f5315d3f4368590c9fe06d4313b7247470bcf15"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-11-23T15:48:03+00:00",
      "cve": "CVE-2026-99800",
      "id": "CVE-2026-99800",
      "initial_release_date": "2026-11-20T07:02:22.819000+00:00",
      "product_status:known_not_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Privilege escalation via use-after-free in io_uring",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99800.json",
      "version": "3"
    }
  }
}



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…

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…