Linux
i3c: master: adi: initialize the lock before enabling interrupts
In the Linux kernel, the following vulnerability has been resolved: i3c: master: adi: initialize the lock before enabling interrupts adi_i3c_master_probe() requests the IRQ and unmasks REG_IRQ_PENDING_CMDR before the controller's IBI state, transfer queue list and transfer queue lock are initialized. A pending CMDR interrupt can therefore run adi_i3c_master_irq() and take master->xferqueue.lock before the dynamic lock has been initialized. This issue was found by our static analysis tool and then manually reviewed against the current tree. The grounded PoC kept the probe ordering and the IRQ path adi_i3c_master_probe() -> adi_i3c_master_irq() -> xferqueue.lock, with a pending CMDR interrupt arriving after REG_IRQ_PENDING_CMDR is unmasked. Lockdep reported: INFO: trying to register non-static key. you didn't initialize this object before use? lock_acquire+0xbb/0x290 _raw_spin_lock_irqsave+0x36/0x60 adi_i3c_master_irq+0x32/0x56 [vuln_msv] adi_i3c_master_probe+0x5a/0xf47 [vuln_msv] Initialize the transfer queue and IBI state before requesting and unmasking the IRQ.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= a79ac2cdc91d6be3010f2e9a3b2a2ccfc26e2086, < a15a1b95de980362c14f32f519b293b0d12ce86f
- >= a79ac2cdc91d6be3010f2e9a3b2a2ccfc26e2086, < de8c32b0a246bbb4b44ec29e12769496a0bf66f7
- >= a79ac2cdc91d6be3010f2e9a3b2a2ccfc26e2086, < 8a53f9102a0d3eeb8784999f925028acf339c276
Fixed in a15a1b95de980362c14f32f519b293b0d12ce86f, de8c32b0a246bbb4b44ec29e12769496a0bf66f7, 8a53f9102a0d3eeb8784999f925028acf339c276
- 6.18
Fixed in 0, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to a15a1b95de980362c14f32f519b293b0d12ce86f or de8c32b0a246bbb4b44ec29e12769496a0bf66f7 or 8a53f9102a0d3eeb8784999f925028acf339c276 or later.
Upgrade Linux to 0 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.