i2c: core: fix adapter registration race
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.261, Kernel 5.15.212, Kernel 6.1.178 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: i2c: core: fix adapter registration race Adapters can be looked up based on their id using i2c_get_adapter() which takes a reference to the embedded struct device. Make sure that the adapter (including its struct device) has been initialised before adding it to the IDR to avoid accessing uninitialised data which could, for example, lead to NULL-pointer dereferences or use-after-free. Note that the i2c-dev chardev, which is registered from a bus notifier, currently uses i2c_get_adapter() so the adapter needs to be added to the IDR before registration.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2.6.22 <5.10.261, >=5.11 <5.15.212, >=5.16 <6.1.178, >=6.13 <6.18.38, >=6.19 <7.1.3, >=6.2 <6.6.145, >=6.7 <6.12.95, >=6e13e641841833cc2aa5baefe89bb04bc388801b <2e57c788e71f1763445f812eba4e0b4a2fbd0646, >=6e13e641841833cc2aa5baefe89bb04bc388801b <6a946038f2a5a8c29048c6af369d4e391448a5c5, >=6e13e641841833cc2aa5baefe89bb04bc388801b <78793c75dc6d0ff2e4d50ad617349b328a99054e, >=6e13e641841833cc2aa5baefe89bb04bc388801b <a4365bc41baaf67f3a5aa8556d23544e6ec7480a, >=6e13e641841833cc2aa5baefe89bb04bc388801b <a4c8094bbf4c6fa68b17e3b16f6a0a1b7a14f3e0, >=6e13e641841833cc2aa5baefe89bb04bc388801b <ba14d7cf2fe7284610a29854bdff22b2537d3ce6, >=6e13e641841833cc2aa5baefe89bb04bc388801b <da9d8d9711f78deebc202d0cffcf577e45ee8621, =2.6.22, >=6e13e641841833cc2aa5baefe89bb04bc388801b <1febb174815bcae56d73587e99e8f87e02f0784d | 5.10.261, 5.15.212, 6.1.178, 6.18.38, 7.1.3, 6.6.145, 6.12.95, 2e57c788e71f1763445f812eba4e0b4a2fbd0646, 6a946038f2a5a8c29048c6af369d4e391448a5c5, 78793c75dc6d0ff2e4d50ad617349b328a99054e, a4365bc41baaf67f3a5aa8556d23544e6ec7480a, a4c8094bbf4c6fa68b17e3b16f6a0a1b7a14f3e0, ba14d7cf2fe7284610a29854bdff22b2537d3ce6, da9d8d9711f78deebc202d0cffcf577e45ee8621, 1febb174815bcae56d73587e99e8f87e02f0784d |
| linux-kernel: Kernel | >=2.6.22 <5.10.261, >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.38, >=6.19.0 <7.1.3, >=6.2.0 <6.6.145, >=6.7.0 <6.12.95 | 5.10.261, 5.15.212, 6.1.178, 6.18.38, 7.1.3, 6.6.145, 6.12.95 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket