{"id":"CVE-2026-98218","summary":"i2c: atr: fix dangling adapter pointer on add failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: atr: fix dangling adapter pointer on add failure\n\ni2c_atr_add_adapter() stores atr-\u003eadapter[chan_id] before\ni2c_add_adapter() so that the I2C bus notifier can match child clients\nduring registration. On failure the channel is freed but the slot was\nleft pointing at freed memory, which can lead to use-after-free in\ni2c_atr_del_adapter() / cleanup and also block reuse with -EEXIST.\n\nClear the slot on the i2c_add_adapter() error path before freeing chan.","modified":"2026-10-08T02:52:54.197134464Z","published":"2026-10-06T08:44:54.034Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98218.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1093835f6aef58a831298d93e0d93f244fa07b84"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2f5e42edbd232bf705dc5d3a91e06344237e63bb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a57d9592714506556e30188af72dd3bdb9f647b5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ad34235808b63a70ca4989b7a2852923193d06ef"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eabf7a3d33cd9fad106d267d00cc842434de8e02"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98218.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98218"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a076a860acae77bbdcbd316541e5552e81fb1772"},{"fixed":"2f5e42edbd232bf705dc5d3a91e06344237e63bb"},{"fixed":"1093835f6aef58a831298d93e0d93f244fa07b84"},{"fixed":"eabf7a3d33cd9fad106d267d00cc842434de8e02"},{"fixed":"a57d9592714506556e30188af72dd3bdb9f647b5"},{"fixed":"ad34235808b63a70ca4989b7a2852923193d06ef"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98218.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.6.0"},{"fixed":"6.6.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98218.json"}}],"schema_version":"1.9.0"}