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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxa79ac2cdc91d6be3010f2e9a3b2a2ccfc26e2086 to before d4e9b82ddc6fded1bbcc0b7453fce6b06738ff0b Affecteda79ac2cdc91d6be3010f2e9a3b2a2ccfc26e2086 to before 1d9f1c71725d3e18ee4f2351bde68fff1d0c3f57 Affecteda79ac2cdc91d6be3010f2e9a3b2a2ccfc26e2086 to before 1c1e2d90aa452764df66bb1dd774aa0d06d89cc8 Affected
Linux Linux6.18 Affectedbefore 6.18 Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.