{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "dc48e56d761610da4ea1088d1bea0a030b8e3e43"
            },
            {
              "fixed": "8a8b40a5fc1f0ccf2e41d36ca64e22b5aab76389"
            },
            {
              "fixed": "59bb5ecfd2fcfcfd5e7c97f6e68442dd7cb65c6f"
            },
            {
              "fixed": "16bcb0f363328d80e03b0c93ffbda548a17a1fe1"
            },
            {
              "fixed": "eac29989106057e848dfd435e9a20a907436adba"
            },
            {
              "fixed": "12710a697096e51c66b988bb47b3c5aef2d7349c"
            },
            {
              "fixed": "ac4b449b39e605123c12ea10042cafc9b6f39603"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0b8b97704fbe442b3bba7a2c7eba9113122abafd"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "147c00b31dfeaeb83f917b29a4c05b605b68a8e0"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "b393b2aa50b3f85cab80fd11de00849917861b93"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.12.44"
            },
            {
              "fixed": "3.13"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "3.16.57"
            },
            {
              "fixed": "3.17"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "4.0.6"
            },
            {
              "fixed": "4.1"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "4.1.0"
            },
            {
              "fixed": "5.10.276"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.227"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143173.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\naio: don't let exit_aio() return before complete() is done\n\nexit_aio() kills all contexts in one go and waits for them with a\nsingle on-stack struct ctx_rq_wait. The count starts at table-\u003enr, each\nkilled context drops one count in free_ioctx_reqs() and exit_aio()\nsubtracts the empty slots afterwards. Whoever drops the last count\neither calls complete() or, if it is exit_aio(), skips the wait.\n\nWith a full table skipped is zero and atomic_sub_and_test(0, ...) only\ntells us whether the count already hit zero. free_ioctx_reqs() runs from\nthe percpu_ref RCU callback, so if exit_aio() is off the CPU long enough\nthe last callback can have done its atomic_dec_and_test() but not yet\ncalled complete():\n\n    free_ioctx_reqs()                    exit_aio()\n    atomic_dec_and_test() // 1 -\u003e 0\n                                         atomic_sub_and_test(0) // true\n                                         kfree(table)\n                                         return\n    complete(\u0026wait.comp)\n\ncomplete() then locks and writes a completion on a stack frame that is\ngone. So hold an extra count for exit_aio() itself. Then the last count\nis always dropped by exit_aio() after it waited, or by a callback while\nexit_aio() waits for it. An unprivileged user gets there with four\nio_setup() calls and an exit without io_destroy().",
  "id": "CVE-2026-143173",
  "modified": "2026-12-03T10:45:47.648341648Z",
  "published": "2026-12-03T09:20:08.250Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/12710a697096e51c66b988bb47b3c5aef2d7349c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/16bcb0f363328d80e03b0c93ffbda548a17a1fe1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/59bb5ecfd2fcfcfd5e7c97f6e68442dd7cb65c6f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8a8b40a5fc1f0ccf2e41d36ca64e22b5aab76389"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ac4b449b39e605123c12ea10042cafc9b6f39603"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/eac29989106057e848dfd435e9a20a907436adba"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143173.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143173"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "aio: don't let exit_aio() return before complete() is done"
}