net: mctp: i3c: serialize probe with bus removal
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.111, 6.18.53, 7.2.7
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: net: mctp: i3c: serialize probe with bus removal mctp_i3c_probe() drops busdevs_lock after finding the matching bus. A concurrent I3C_NOTIFY_BUS_REMOVE can then unregister and free the bus netdev before probe passes its private data to mctp_i3c_add_device(). The latter consequently adds a list node through a freed mbus pointer. Keep busdevs_lock held until the device has been added. This also satisfies the __must_hold annotation on mctp_i3c_add_device().
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 · fixed in e6541b2747682fdb2c6ded4a7cf7c39c4067a35c; From c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 · fixed in 765c5e357e67916a7aac8ead4ac2fa7d2bffe000; From c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 · fixed in 906d8dbafabfa81a30e3ade420cb9912f223a5e1; From c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 · fixed in 2b4707a149a55e8fa75c9ef32b359d60f470a566
- Linux Linux
6.7
- KernelLinux
From 6.7.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.53; From 6.19.0 · fixed in 7.2.7