FKIE_CVE-2026-143173

Vulnerability from fkie_nvd - Published: 2026-12-03 10:17 - Updated: 2026-12-04 04:17
Summary
In the Linux kernel, the following vulnerability has been resolved: aio: don't let exit_aio() return before complete() is done exit_aio() kills all contexts in one go and waits for them with a single on-stack struct ctx_rq_wait. The count starts at table->nr, each killed context drops one count in free_ioctx_reqs() and exit_aio() subtracts the empty slots afterwards. Whoever drops the last count either calls complete() or, if it is exit_aio(), skips the wait. With a full table skipped is zero and atomic_sub_and_test(0, ...) only tells us whether the count already hit zero. free_ioctx_reqs() runs from the percpu_ref RCU callback, so if exit_aio() is off the CPU long enough the last callback can have done its atomic_dec_and_test() but not yet called complete(): free_ioctx_reqs() exit_aio() atomic_dec_and_test() // 1 -> 0 atomic_sub_and_test(0) // true kfree(table) return complete(&wait.comp) complete() then locks and writes a completion on a stack frame that is gone. So hold an extra count for exit_aio() itself. Then the last count is always dropped by exit_aio() after it waited, or by a callback while exit_aio() waits for it. An unprivileged user gets there with four io_setup() calls and an exit without io_destroy().
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/aio.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8a8b40a5fc1f0ccf2e41d36ca64e22b5aab76389",
              "status": "affected",
              "version": "dc48e56d761610da4ea1088d1bea0a030b8e3e43",
              "versionType": "git"
            },
            {
              "lessThan": "59bb5ecfd2fcfcfd5e7c97f6e68442dd7cb65c6f",
              "status": "affected",
              "version": "dc48e56d761610da4ea1088d1bea0a030b8e3e43",
              "versionType": "git"
            },
            {
              "lessThan": "16bcb0f363328d80e03b0c93ffbda548a17a1fe1",
              "status": "affected",
              "version": "dc48e56d761610da4ea1088d1bea0a030b8e3e43",
              "versionType": "git"
            },
            {
              "lessThan": "eac29989106057e848dfd435e9a20a907436adba",
              "status": "affected",
              "version": "dc48e56d761610da4ea1088d1bea0a030b8e3e43",
              "versionType": "git"
            },
            {
              "lessThan": "12710a697096e51c66b988bb47b3c5aef2d7349c",
              "status": "affected",
              "version": "dc48e56d761610da4ea1088d1bea0a030b8e3e43",
              "versionType": "git"
            },
            {
              "lessThan": "ac4b449b39e605123c12ea10042cafc9b6f39603",
              "status": "affected",
              "version": "dc48e56d761610da4ea1088d1bea0a030b8e3e43",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "0b8b97704fbe442b3bba7a2c7eba9113122abafd",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "147c00b31dfeaeb83f917b29a4c05b605b68a8e0",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "b393b2aa50b3f85cab80fd11de00849917861b93",
              "versionType": "git"
            },
            {
              "lessThan": "3.13",
              "status": "affected",
              "version": "3.12.44",
              "versionType": "semver"
            },
            {
              "lessThan": "3.17",
              "status": "affected",
              "version": "3.16.57",
              "versionType": "semver"
            },
            {
              "lessThan": "4.1",
              "status": "affected",
              "version": "4.0.6",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/aio.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.1"
            },
            {
              "lessThan": "4.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.276",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.227",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.120",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.66",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc3",
              "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\naio: don\u0027t 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",
  "lastModified": "2026-12-04T04:17:40.467",
  "metrics": {
    "cvssMetricV31": [
      {
        "cvssData": {
          "attackComplexity": "HIGH",
          "attackVector": "LOCAL",
          "availabilityImpact": "HIGH",
          "baseScore": 7.0,
          "baseSeverity": "HIGH",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "privilegesRequired": "LOW",
          "scope": "UNCHANGED",
          "userInteraction": "NONE",
          "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
          "version": "3.1"
        },
        "exploitabilityScore": 1.0,
        "impactScore": 5.9,
        "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "type": "Secondary"
      }
    ]
  },
  "published": "2026-12-03T10:17:52.990",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/12710a697096e51c66b988bb47b3c5aef2d7349c"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/16bcb0f363328d80e03b0c93ffbda548a17a1fe1"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/59bb5ecfd2fcfcfd5e7c97f6e68442dd7cb65c6f"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/8a8b40a5fc1f0ccf2e41d36ca64e22b5aab76389"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/ac4b449b39e605123c12ea10042cafc9b6f39603"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/eac29989106057e848dfd435e9a20a907436adba"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    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.