CVE-2026-98218

i2c: atr: fix dangling adapter pointer on add failure

State
Published
Severity
Not scored
Published
Oct 6, 2026
Updated
Oct 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a076a860acae77bbdcbd316541e5552e81fb1772 to before 2f5e42edbd232bf705dc5d3a91e06344237e63bbAffected
  • a076a860acae77bbdcbd316541e5552e81fb1772 to before 1093835f6aef58a831298d93e0d93f244fa07b84Affected
  • a076a860acae77bbdcbd316541e5552e81fb1772 to before eabf7a3d33cd9fad106d267d00cc842434de8e02Affected
  • a076a860acae77bbdcbd316541e5552e81fb1772 to before a57d9592714506556e30188af72dd3bdb9f647b5Affected
  • a076a860acae77bbdcbd316541e5552e81fb1772 to before ad34235808b63a70ca4989b7a2852923193d06efAffected
LinuxLinux
  • 6.6Affected
  • before 6.6Not affected
  • 6.6.158 through 6.6.*Not affected
  • 6.12.112 through 6.12.*Not affected
  • 6.18.54 through 6.18.*Not affected
  • 7.2.8 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.