net: mctp i3c: clean up notifier and buses if driver register fails
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 03d1057305ef17ac3f5936ac1580bc9a1a826e14, Kernel 49d15cfab247c0f60ce1800bdcd66850beea7b3a, Kernel a40e83a34eaa2be64372286040696f04eabcd09f and 1 more.
In the Linux kernel, the following vulnerability has been resolved: net: mctp i3c: clean up notifier and buses if driver register fails mctp_i3c_mod_init() registers the I3C bus notifier and then walks the existing buses with i3c_for_each_bus_locked(mctp_i3c_bus_add_new, NULL) before registering the I3C device driver. If i3c_driver_register() fails, the function returns the error directly, leaving the notifier registered and every mctp_i3c_bus object created for the existing buses allocated. The notifier is left pointing into the module that failed to load and the bus list is leaked. Mirror the module exit path on this failure: unregister the notifier and tear down the buses that were added before returning the error. This issue was identified during our ongoing static-analysis research while reviewing kernel code.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.7, >=c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 <03d1057305ef17ac3f5936ac1580bc9a1a826e14, >=c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 <49d15cfab247c0f60ce1800bdcd66850beea7b3a, >=c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 <a40e83a34eaa2be64372286040696f04eabcd09f, >=c8755b29b58ec65be17bcb8c40763d2dcb1f1db5 <a8bd8c109da5a87f0c5db0c23cf550d039fde77c | 03d1057305ef17ac3f5936ac1580bc9a1a826e14, 49d15cfab247c0f60ce1800bdcd66850beea7b3a, a40e83a34eaa2be64372286040696f04eabcd09f, a8bd8c109da5a87f0c5db0c23cf550d039fde77c |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket