# CVE-2026-89764: rust: devres: fix race between concurrent revokers

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-09-11T19:47:05.092Z
- Modified: 2026-10-19T09:18:19.613Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 05aa6fb1c21d7fb9df735da24096d793223789d5 before e7930d857cc7930fc39b487ea9f3a453eca3713e; from 05aa6fb1c21d7fb9df735da24096d793223789d5 before c7e3d57c705ab1053a6a1bbef96795e792da1540; from 05aa6fb1c21d7fb9df735da24096d793223789d5 before acc516dfa1972d31836b50abc0115216cd0fccc5; 6.18 (not affected: before 6.18; from 6.18.56 up to 6.18.*; from 7.2.4 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/e7930d857cc7930fc39b487ea9f3a453eca3713e>
- <https://git.kernel.org/stable/c/c7e3d57c705ab1053a6a1bbef96795e792da1540>
- <https://git.kernel.org/stable/c/acc516dfa1972d31836b50abc0115216cd0fccc5>

## Sources

- CVE List: [CVE-2026-89764](https://www.cve.org/CVERecord?id=CVE-2026-89764), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-89764](https://nvd.nist.gov/vuln/detail/CVE-2026-89764), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-89764 · Whole record: https://cve.day/CVE-2026-89764.json · Rebuilt by cve.day 2026-11-25T22:59:38.141Z
