net: mctp: i3c: serialize probe with bus removal
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel’s MCTP I3C probe can use a freed bus pointer if bus removal occurs concurrently. This race can cause a list node to be added through the freed pointer. The input does not establish how an attacker could trigger the race or whether authentication or user interaction is required.
Operators of Linux kernels with MCTP I3C support should check their versions; affected versions are not specified.