i2c: atr: fix dangling adapter pointer on add failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel eabf7a3d33cd9fad106d267d00cc842434de8e02, Kernel 1093835f6aef58a831298d93e0d93f244fa07b84, Kernel 2f5e42edbd232bf705dc5d3a91e06344237e63bb and 6 more.
In the Linux kernel, the following vulnerability has been resolved: i2c: atr: fix dangling adapter pointer on add failure i2c_atr_add_adapter() stores atr->adapter[chan_id] before i2c_add_adapter() so that the I2C bus notifier can match child clients during registration. On failure the channel is freed but the slot was left pointing at freed memory, which can lead to use-after-free in i2c_atr_del_adapter() / cleanup and also block reuse with -EEXIST. Clear the slot on the i2c_add_adapter() error path before freeing chan.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=a076a860acae77bbdcbd316541e5552e81fb1772 <eabf7a3d33cd9fad106d267d00cc842434de8e02, >=a076a860acae77bbdcbd316541e5552e81fb1772 <1093835f6aef58a831298d93e0d93f244fa07b84, >=a076a860acae77bbdcbd316541e5552e81fb1772 <2f5e42edbd232bf705dc5d3a91e06344237e63bb, >=a076a860acae77bbdcbd316541e5552e81fb1772 <a57d9592714506556e30188af72dd3bdb9f647b5, >=a076a860acae77bbdcbd316541e5552e81fb1772 <ad34235808b63a70ca4989b7a2852923193d06ef, =6.6 | eabf7a3d33cd9fad106d267d00cc842434de8e02, 1093835f6aef58a831298d93e0d93f244fa07b84, 2f5e42edbd232bf705dc5d3a91e06344237e63bb, a57d9592714506556e30188af72dd3bdb9f647b5, ad34235808b63a70ca4989b7a2852923193d06ef |
| linux-kernel: Kernel | >=6.19.0 <7.2.8, >=6.6.0 <6.6.158, >=6.7.0 <6.12.112, >=6.13.0 <6.18.54 | 7.2.8, 6.6.158, 6.12.112, 6.18.54 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket