CVE-2026-98218 PUBLISHED

i2c: atr: fix dangling adapter pointer on add failure

Assigner: Linux
Reserved: 25.09.2026 Published: 06.10.2026 Updated: 06.10.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from a076a860acae77bbdcbd316541e5552e81fb1772 to 2f5e42edbd232bf705dc5d3a91e06344237e63bb (excl.)
  • affected from a076a860acae77bbdcbd316541e5552e81fb1772 to 1093835f6aef58a831298d93e0d93f244fa07b84 (excl.)
  • affected from a076a860acae77bbdcbd316541e5552e81fb1772 to eabf7a3d33cd9fad106d267d00cc842434de8e02 (excl.)
  • affected from a076a860acae77bbdcbd316541e5552e81fb1772 to a57d9592714506556e30188af72dd3bdb9f647b5 (excl.)
  • affected from a076a860acae77bbdcbd316541e5552e81fb1772 to ad34235808b63a70ca4989b7a2852923193d06ef (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.6 is affected
  • unaffected from 0 to 6.6 (excl.)
  • unaffected from 6.6.158 to 6.6.* (incl.)
  • unaffected from 6.12.112 to 6.12.* (incl.)
  • unaffected from 6.18.54 to 6.18.* (incl.)
  • unaffected from 7.2.8 to 7.2.* (incl.)
  • unaffected from 7.3-rc4 to * (incl.)

References