# CVE-2026-98938: rust: irq: pass RegistrationInner as cookie to request_irq

- Severity: not scored yet
- 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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-10-23T12:11:59.043Z
- Modified: 2026-10-23T13:17:14.720Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

rust: irq: pass RegistrationInner as cookie to request_irq

With commit ba268514ea14 ("rust: devres: fix race condition due to
nesting"), Devres::new() returns Result<Self> by value instead of
initializing in-place via PinInit. Because request_irq() is called
inside Devres::new(), registration.inner is still uninitialized when the
IRQ is enabled, so accessing registration.inner.device() in the IRQ
callback can read uninitialized memory.

Fix this by storing the Device and handler pointer in RegistrationInner
and passing RegistrationInner as the IRQ cookie after its fields are
initialized.

This is not needed in mainline because commit 98c63ce4d760 ("rust: irq:
make Registration compatible with lifetime-bound drivers") removed
Devres from irq::Registration and moved request_irq() after all fields
are initialized.

(As written by CVE List.)

## Affected

- Linux Linux: from 29e16fcd67ee5b1d0417a657294cf96fdf2f8df9 before 9a7931e847f338a687e96cde9f37e0cff83ddd84; 6.18 (not affected: before 6.18; from 7.2.10 up to 7.2.*)

## References

- <https://git.kernel.org/stable/c/9a7931e847f338a687e96cde9f37e0cff83ddd84>

## Sources

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

---

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