CVE-2026-98018: net: mctp: i3c: serialize probe with bus removal
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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().
The Linux kernel CVE team has assigned CVE-2026-98018 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.7 with commit c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 and fixed in 6.12.111 with commit e6541b2747682fdb2c6ded4a7cf7c39c4067a35c Issue introduced in 6.7 with commit c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 and fixed in 6.18.53 with commit 765c5e357e67916a7aac8ead4ac2fa7d2bffe000 Issue introduced in 6.7 with commit c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 and fixed in 7.2.7 with commit 906d8dbafabfa81a30e3ade420cb9912f223a5e1 Issue introduced in 6.7 with commit c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 and fixed in 7.3-rc3 with commit 2b4707a149a55e8fa75c9ef32b359d60f470a566
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98018
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/mctp/mctp-i3c.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/e6541b2747682fdb2c6ded4a7cf7c39c4067a35c https://git.kernel.org/stable/c/765c5e357e67916a7aac8ead4ac2fa7d2bffe000 https://git.kernel.org/stable/c/906d8dbafabfa81a30e3ade420cb9912f223a5e1 https://git.kernel.org/stable/c/2b4707a149a55e8fa75c9ef32b359d60f470a566