# CVE-2026-138935: i3c: master: adi: free the IRQ before unregistering the master

- 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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:26:21.053Z
- Modified: 2026-11-30T14:17:54.133Z
- Assigned by: Linux

## Description

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

i3c: master: adi: free the IRQ before unregistering the master

adi_i3c_master_irq() is requested with devm_request_irq(), so it stays
registered when adi_i3c_master_remove() runs, and the writes masking the
controller IRQ sources do not synchronize with a handler that is already
running on another CPU. i3c_master_unregister() then frees the
struct i3c_dev_desc objects that master->ibi.slots[] still point to, so
the IBI path in adi_i3c_master_handle_ibi() can dereference freed memory.

Fix this by storing the IRQ number in the private structure and calling
devm_free_irq() after the IRQ sources are masked, so a running handler
is finished before the master is torn down.

This issue was found by an in-house static analysis tool.

(As written by CVE List.)

## Affected

- Linux Linux: from a79ac2cdc91d6be3010f2e9a3b2a2ccfc26e2086 before d4e9b82ddc6fded1bbcc0b7453fce6b06738ff0b; from a79ac2cdc91d6be3010f2e9a3b2a2ccfc26e2086 before 1d9f1c71725d3e18ee4f2351bde68fff1d0c3f57; from a79ac2cdc91d6be3010f2e9a3b2a2ccfc26e2086 before 1c1e2d90aa452764df66bb1dd774aa0d06d89cc8; 6.18 (not affected: before 6.18; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/d4e9b82ddc6fded1bbcc0b7453fce6b06738ff0b>
- <https://git.kernel.org/stable/c/1d9f1c71725d3e18ee4f2351bde68fff1d0c3f57>
- <https://git.kernel.org/stable/c/1c1e2d90aa452764df66bb1dd774aa0d06d89cc8>

## Sources

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

---

Page: https://cve.day/CVE-2026-138935 · Whole record: https://cve.day/CVE-2026-138935.json · Rebuilt by cve.day 2026-11-30T14:32:24.185Z
