GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2026-89764 (GCVE-0-2026-89764)

Vulnerability from cvelistv5 – Published: 2026-09-11 19:47 – Updated: 2026-09-13 06:34
VLAI
Title
rust: devres: fix race between concurrent revokers
Summary
In the Linux kernel, the following vulnerability has been resolved: rust: devres: fix race between concurrent revokers There is a potential race condition when two paths try to revoke a Devres concurrently. The driver core's devres_release_all() calls Revocable::revoke() via the release callback, while Devres::drop() calls revoke_nosync() on another CPU. The revoker that does not claim the is_available swap returns immediately, but the revoker that did may still be executing drop_in_place() on the inner data. This can cause a use-after-free when the other revoker's caller proceeds to drop adjacent resources that drop_in_place() still references (e.g., Devres<DmaMappedSgt> racing with SGTable freeing the backing sg_table and pages). Fix this by adding a Completion. The release callback signals the Completion after revoke() finishes, and Devres::drop() waits for it when it loses the is_available swap. This ensures the wrapped object is fully torn down before Devres::drop() returns.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 05aa6fb1c21d7fb9df735da24096d793223789d5 , < c7e3d57c705ab1053a6a1bbef96795e792da1540 (git)
Affected: 05aa6fb1c21d7fb9df735da24096d793223789d5 , < acc516dfa1972d31836b50abc0115216cd0fccc5 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.18
Unaffected: 0 , < 6.18 (semver)
Unaffected: 7.2.4 , ≤ 7.2.* (semver)
Unaffected: 7.3-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "rust/kernel/devres.rs"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "c7e3d57c705ab1053a6a1bbef96795e792da1540",
              "status": "affected",
              "version": "05aa6fb1c21d7fb9df735da24096d793223789d5",
              "versionType": "git"
            },
            {
              "lessThan": "acc516dfa1972d31836b50abc0115216cd0fccc5",
              "status": "affected",
              "version": "05aa6fb1c21d7fb9df735da24096d793223789d5",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "rust/kernel/devres.rs"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.18"
            },
            {
              "lessThan": "6.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.4",
                  "versionStartIncluding": "6.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3-rc1",
                  "versionStartIncluding": "6.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nrust: devres: fix race between concurrent revokers\n\nThere is a potential race condition when two paths try to revoke a\nDevres concurrently.\n\nThe driver core\u0027s devres_release_all() calls Revocable::revoke() via the\nrelease callback, while Devres::drop() calls revoke_nosync() on another\nCPU.\n\nThe revoker that does not claim the is_available swap returns\nimmediately, but the revoker that did may still be executing\ndrop_in_place() on the inner data. This can cause a use-after-free when\nthe other revoker\u0027s caller proceeds to drop adjacent resources that\ndrop_in_place() still references (e.g., Devres\u003cDmaMappedSgt\u003e racing with\nSGTable freeing the backing sg_table and pages).\n\nFix this by adding a Completion. The release callback signals the\nCompletion after revoke() finishes, and Devres::drop() waits for it when\nit loses the is_available swap. This ensures the wrapped object is fully\ntorn down before Devres::drop() returns."
        }
      ],
      "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 - The race is in the Rust Devres teardown path (Devres::drop vs devres_release_all release callback), reached by local driver unbind/rmmod/sysfs unbind or hot-unplug of Rust-using devices (nova-core NVIDIA GPU, TH1520 PWM, PCI/platform samples). It is not reachable from network packets or a remote protocol.\nAC:L - The attacker can drive both sides: one CPU in device_unbind_cleanup()/devres_release_all() calling Revocable::revoke() (which sleeps in synchronize_rcu(), widening the window), and another dropping the Devres-containing object (SGTable, Arc\u003cirq::Registration\u003e, PWM Chip data). That is an attacker-controlled race, not an uncontrolled layout condition.\nPR:L - Unbind/rmmod is privileged, but per driver-removal UAF scoring an unprivileged local user with the device (DRM render node, PWM sysfs on TH1520 boards, IRQ-generating I/O) can hold/drop Devres-backed objects or keep the other CPU in teardown while the device is unbound. This does not require init-namespace root or a user-namespace capability.\nUI:N - Exploitation does not need a separate victim action such as opening a file or clicking UI. The attacker performs device I/O or holds extra refs themselves while routine unbind, module unload, or hot-unplug runs.\nS:U - Impact is kernel memory corruption and privilege escalation on the same host. It does not cross a VM, IOMMU, or other distinct security-authority boundary.\nC:H - The bug is a use-after-free: the losing revoker returns while drop_in_place() still uses inner data (e.g. dma_unmap_sgtable on SGTable pages, free_irq cookie, IoMem). UAF of those objects yields an arbitrary kernel read primitive.\nI:H - The same UAF of sg_table/pages, IRQ Registration handler state, or MMIO mappings is heap corruption exploitable for writes and control-flow hijack, not a bounded or integrity-neutral fault.\nA:H - Use-after-free of DMA mappings, IRQ registrations, or iomem during unbind can oops/panic the kernel even if not fully exploited, so availability impact is complete."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-09-13T06:34:08.821Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/c7e3d57c705ab1053a6a1bbef96795e792da1540"
        },
        {
          "url": "https://git.kernel.org/stable/c/acc516dfa1972d31836b50abc0115216cd0fccc5"
        }
      ],
      "title": "rust: devres: fix race between concurrent revokers",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-89764",
    "datePublished": "2026-09-11T19:47:05.092Z",
    "dateReserved": "2026-09-11T19:38:34.764Z",
    "dateUpdated": "2026-09-13T06:34:08.821Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-89764",
      "date": "2026-09-14",
      "epss": "0.00143",
      "percentile": "0.03968"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-89764\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-09-11T20:20:07.637\",\"lastModified\":\"2026-09-13T07:17:40.843\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nrust: devres: fix race between concurrent revokers\\n\\nThere is a potential race condition when two paths try to revoke a\\nDevres concurrently.\\n\\nThe driver core\u0027s devres_release_all() calls Revocable::revoke() via the\\nrelease callback, while Devres::drop() calls revoke_nosync() on another\\nCPU.\\n\\nThe revoker that does not claim the is_available swap returns\\nimmediately, but the revoker that did may still be executing\\ndrop_in_place() on the inner data. This can cause a use-after-free when\\nthe other revoker\u0027s caller proceeds to drop adjacent resources that\\ndrop_in_place() still references (e.g., Devres\u003cDmaMappedSgt\u003e racing with\\nSGTable freeing the backing sg_table and pages).\\n\\nFix this by adding a Completion. The release callback signals the\\nCompletion after revoke() finishes, and Devres::drop() waits for it when\\nit loses the is_available swap. This ensures the wrapped object is fully\\ntorn down before Devres::drop() returns.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"rust/kernel/devres.rs\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"05aa6fb1c21d7fb9df735da24096d793223789d5\",\"lessThan\":\"c7e3d57c705ab1053a6a1bbef96795e792da1540\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"05aa6fb1c21d7fb9df735da24096d793223789d5\",\"lessThan\":\"acc516dfa1972d31836b50abc0115216cd0fccc5\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"rust/kernel/devres.rs\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.18\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.18\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2.4\",\"lessThanOrEqual\":\"7.2.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.3-rc1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/acc516dfa1972d31836b50abc0115216cd0fccc5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c7e3d57c705ab1053a6a1bbef96795e792da1540\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-09-13T06:52:59+00:00",
      "cve": "CVE-2026-89764",
      "id": "CVE-2026-89764",
      "initial_release_date": "2026-09-11T19:47:05.092000+00:00",
      "product_status:known_affected": "2",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: Linux kernel (rust devres): Use-after-free due to race condition in concurrent resource revocation",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89764.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-13T16:56:19Z",
      "cve": "CVE-2026-89764",
      "id": "CVE-2026-89764",
      "initial_release_date": "2026-09-12T16:21:58Z",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-89764",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-89764.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…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…