{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99798",
  "modified": "2026-11-23T05:30:01Z",
  "upstream": [
    "CVE-2026-99798"
  ],
  "published": "2026-11-20T07:02:30Z",
  "summary": "io_uring: defer foreign io-wq enqueues to task_work",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: defer foreign io-wq enqueues to task_work\n\nAn IOPOLL ring without DEFER_TASKRUN can be reaped by a task other than\nthe one that submitted the I/O. If a polled request is marked\nREQ_F_REISSUE, io_free_batch_list() calls io_queue_iowq() with the\noriginal tctx. Ordinary task exit can tear down tctx->io_wq after\ndraining only the tracked requests. The live request pins the task, but\nnot its io-wq, so the foreign task can race io_wq_put_and_exit() and\nenqueue through a freed or NULL queue.\n\nForward foreign userspace enqueues to the owning task before accessing\ntctx->io_wq. Use a dedicated task_work callback so reissues still go\nstraight to io-wq, and fail them if task_work is running in cancellation\nmode. Preserve the existing PF_KTHREAD cancellation path. This also\ncovers the other callers of io_queue_iowq() without changing the\nworker-owned enqueue path.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:13",
        "name": "linux"
      },
      "versions": [
        "1:6.18.29-1+rpt1",
        "1:6.18.33-1+rpt1",
        "1:6.18.34-1+rpt1",
        "1:6.18.39-1+rpt1",
        "1:6.18.50-1+rpt1",
        "1:6.18.60-1+rpt1"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-2712",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-v6",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-v7",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-v8",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-2712",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-v6",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-v7",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-v8",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-2712",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-v6",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-v7",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-v8",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-2712",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-v6",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-v7",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-v8",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-2712",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-v6",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-v7",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-v8",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.60+rpt-rpi-2712",
            "binary_version": "1:6.18.60-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.60+rpt-rpi-v6",
            "binary_version": "1:6.18.60-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.60+rpt-rpi-v7",
            "binary_version": "1:6.18.60-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.60+rpt-rpi-v8",
            "binary_version": "1:6.18.60-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.60+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.60-1+rpt1"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.18.29-1+rpt1": {
            "linux_commit": "66318c5b5cd8145a662303af12ed39ac07eb27cc",
            "upstream_version": "6.18.29",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          },
          "1:6.18.33-1+rpt1": {
            "linux_commit": "95b85bebbedcaedfa7ca79116ed38b7376fba412",
            "upstream_version": "6.18.33",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          },
          "1:6.18.34-1+rpt1": {
            "linux_commit": "c8c7494100e99ee05b11aaa4f0588a223a63d1af",
            "upstream_version": "6.18.34",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          },
          "1:6.18.39-1+rpt1": {
            "linux_commit": "60ea684a8ace97bb0db1a16e20753bdd6ab371ff",
            "upstream_version": "6.18.39",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          },
          "1:6.18.50-1+rpt1": {
            "linux_commit": "cff533aec2fa601846766b32ff57204e0a61bed7",
            "upstream_version": "6.18.50",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          },
          "1:6.18.60-1+rpt1": {
            "linux_commit": "0b41724521c9adf5399409d02aece6c1df0a4432",
            "upstream_version": "6.18.60",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99798"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/0ac8f069a8bd7a507df59c505182065ae720e946"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/5f7e7afd5418c63473f6ac3a05219e9e6e8a59d9"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3de16279b43dc285ed2222aba06cebdc82fdb28b"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-22T11:18:26Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - A local caller of io_uring_enter() reaps an IORING_SETUP_IOPOLL ring whose setup flags leave IORING_SETUP_DEFER_TASKRUN clear, which io_allowed_run_tw() permits for a task other than the submitter. The reap runs io_iopoll_check(), io_do_iopoll(), __io_submit_flush_completions(), and io_free_batch_list(), and that last function calls io_queue_iowq() when REQ_F_REISSUE is set.\nAC:L - The attacker owns both tasks and can fill the poll-queue tags. A REQ_NOWAIT bio then fails in blk_mq_get_new_requests(), bio_wouldblock_error() completes it with BLK_STS_AGAIN, and io_complete_rw_iopoll() sets REQ_F_REISSUE. do_exit() calls io_uring_files_cancel(); io_uring_cancel_generic() returns at inflight_tracked zero, so io_uring_clean_tctx() frees io_wq while the other task runs io_free_batch_list().\nPR:L - io_uring_setup() and io_uring_enter() are open to an unprivileged uid: io_uring_allowed() returns success when sysctl kernel.io_uring_disabled is 0, the compiled default. The second reaper is another thread of that same process and needs no extra capability to call io_uring_enter() on the shared ring fd.\nUI:N - The attacker opens an O_DIRECT file they can already access, creates the IOPOLL ring, submits the read or write, and reaps it from a second thread of the same process while the submitter calls exit. Every step is the attacker's own syscall.\nS:U - The object io_wq_enqueue() uses after io_wq_destroy() is the submitter's struct io_wq in the same kernel that hosts the attacker, so the resulting privilege change stays inside that kernel.\nC:H - io_uring_clean_tctx() kfree()s tctx->io_wq in io_wq_destroy() while the live request only pins the task. io_wq_enqueue() reads wq->state and the acct from the freed slot, and io_wq_insert_work() writes kernel list pointers into it, so a reclaim of struct io_wq is a kernel memory disclosure primitive.\nI:H - On that same freed struct io_wq, io_wq_enqueue() raw_spin_lock()s acct->lock and io_wq_insert_work() writes acct->work_list, and a clear IO_WQ_BIT_EXIT leads to io_wq_create_worker(). Those are heap writes and a worker-creation primitive from attacker-reclaimed memory.\nA:H - A load of tctx->io_wq after the NULL store makes io_wq_enqueue() dereference wq->state and oops. A load in the window after kfree() and before that store locks and links the freed struct io_wq. Both outcomes crash the kernel."
    }
  }
}
