{
  "id": "CVE-2026-46274",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-46274",
  "published_at": "2026-06-08T14:30:53.323Z",
  "title": "io-wq: check that the predecessor is hashed in io_wq_remove_pending()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nio-wq: check that the predecessor is hashed in io_wq_remove_pending()\n\nio_wq_remove_pending() needs to fix up wq-\u003ehash_tail[] if the cancelled\nwork was the tail of its hash bucket. When doing this, it checks whether\nthe preceding entry in acct-\u003ework_list has the same hash value, but\nnever checks that the predecessor is hashed at all. io_get_work_hash()\nis simply atomic_read(\u0026work-\u003eflags) \u003e\u003e IO_WQ_HASH_SHIFT, and the hash\nbits are never set for non-hashed work, so it returns 0. Thus, when a\nhashed bucket-0 work is cancelled while a non-hashed work is its list\npredecessor, the check spuriously passes and a pointer to the non-hashed\nio_kiocb is stored in wq-\u003ehash_tail[0].\n\nBecause non-hashed work is dequeued via the fast path in\nio_get_next_work(), which never touches hash_tail[], the stale pointer\nis never cleared. Therefore, after the non-hashed io_kiocb completes and\nis freed back to req_cachep, wq-\u003ehash_tail[0] is a dangling pointer. The\nio_wq is per-task (tctx-\u003eio_wq) and survives ring open/close, so the\ndangling pointer persists for the lifetime of the task; the next hashed\nbucket-0 enqueue dereferences it in io_wq_insert_work() and\nwq_list_add_after() writes through freed memory.\n\nAdd the missing io_wq_is_hashed() check so a non-hashed predecessor\nnever inherits a hash_tail[] slot.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc8:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 204361a77f4018627addd4a06877448f088ddfc0, \u003c d6bda9df0c0a3080804181464d5c0f4d78a4e769",
          "\u003e= 204361a77f4018627addd4a06877448f088ddfc0, \u003c 5a20ebf0c81b61f5ea3b1b529c100cad69b9f603",
          "\u003e= 204361a77f4018627addd4a06877448f088ddfc0, \u003c 252c5051dba9c709b6a72f2866f93e5e618b3f06",
          "\u003e= 204361a77f4018627addd4a06877448f088ddfc0, \u003c d376c131af7c7739a87ff037ed2fdb67c2542c8a",
          "\u003e= 204361a77f4018627addd4a06877448f088ddfc0, \u003c d6a2d7b04b5a093021a7a0e2e69e9d5237dfa8cc",
          "13f35a2c0fd5c6a4fcd8903542b053bcc914fcf5",
          "\u003e= 5.8.6, \u003c 5.9"
        ],
        "fixed_in": [
          "d6bda9df0c0a3080804181464d5c0f4d78a4e769",
          "5a20ebf0c81b61f5ea3b1b529c100cad69b9f603",
          "252c5051dba9c709b6a72f2866f93e5e618b3f06",
          "d376c131af7c7739a87ff037ed2fdb67c2542c8a",
          "d6a2d7b04b5a093021a7a0e2e69e9d5237dfa8cc",
          "5.9"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.9"
        ],
        "fixed_in": [
          "0",
          "6.6.141",
          "6.12.91",
          "6.18.33",
          "7.0.10",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to d6bda9df0c0a3080804181464d5c0f4d78a4e769 or 5a20ebf0c81b61f5ea3b1b529c100cad69b9f603 or 252c5051dba9c709b6a72f2866f93e5e618b3f06 or d376c131af7c7739a87ff037ed2fdb67c2542c8a or d6a2d7b04b5a093021a7a0e2e69e9d5237dfa8cc or 5.9 or later.",
      "Upgrade Linux to 0 or 6.6.141 or 6.12.91 or 6.18.33 or 7.0.10 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
