# CVE-2026-98218: i2c: atr: fix dangling adapter pointer on add failure

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-06T08:44:54.034Z
- Modified: 2026-10-19T10:18:22.583Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from a076a860acae77bbdcbd316541e5552e81fb1772 before 2f5e42edbd232bf705dc5d3a91e06344237e63bb; from a076a860acae77bbdcbd316541e5552e81fb1772 before 1093835f6aef58a831298d93e0d93f244fa07b84; from a076a860acae77bbdcbd316541e5552e81fb1772 before eabf7a3d33cd9fad106d267d00cc842434de8e02; from a076a860acae77bbdcbd316541e5552e81fb1772 before a57d9592714506556e30188af72dd3bdb9f647b5; from a076a860acae77bbdcbd316541e5552e81fb1772 before ad34235808b63a70ca4989b7a2852923193d06ef; 6.6 (not affected: before 6.6; from 6.6.158 up to 6.6.*; from 6.12.112 up to 6.12.*; from 6.18.54 up to 6.18.*; from 7.2.8 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/2f5e42edbd232bf705dc5d3a91e06344237e63bb>
- <https://git.kernel.org/stable/c/1093835f6aef58a831298d93e0d93f244fa07b84>
- <https://git.kernel.org/stable/c/eabf7a3d33cd9fad106d267d00cc842434de8e02>
- <https://git.kernel.org/stable/c/a57d9592714506556e30188af72dd3bdb9f647b5>
- <https://git.kernel.org/stable/c/ad34235808b63a70ca4989b7a2852923193d06ef>

## Sources

- CVE List: [CVE-2026-98218](https://www.cve.org/CVERecord?id=CVE-2026-98218), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98218](https://nvd.nist.gov/vuln/detail/CVE-2026-98218), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98218 · Whole record: https://cve.day/CVE-2026-98218.json · Rebuilt by cve.day 2026-11-25T22:59:42.292Z
