CVE-2026-53400

i2c: core: fix adapter registration race

State
Published
Severity
7.8 High
Published
Jul 19, 2026
Updated
Oct 19, 2026
Reserved
Jun 9, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

i2c: core: fix adapter registration race

Adapters can be looked up based on their id using i2c_get_adapter() which takes a reference to the embedded struct device.

Make sure that the adapter (including its struct device) has been initialised before adding it to the IDR to avoid accessing uninitialised data which could, for example, lead to NULL-pointer dereferences or use-after-free.

Note that the i2c-dev chardev, which is registered from a bus notifier, currently uses i2c_get_adapter() so the adapter needs to be added to the IDR before registration.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Affected Products

ProductVersions
LinuxLinux
  • 6e13e641841833cc2aa5baefe89bb04bc388801b to before 2e57c788e71f1763445f812eba4e0b4a2fbd0646Affected
  • 6e13e641841833cc2aa5baefe89bb04bc388801b to before a4365bc41baaf67f3a5aa8556d23544e6ec7480aAffected
  • 6e13e641841833cc2aa5baefe89bb04bc388801b to before 1febb174815bcae56d73587e99e8f87e02f0784dAffected
  • 6e13e641841833cc2aa5baefe89bb04bc388801b to before da9d8d9711f78deebc202d0cffcf577e45ee8621Affected
  • 6e13e641841833cc2aa5baefe89bb04bc388801b to before 78793c75dc6d0ff2e4d50ad617349b328a99054eAffected
  • 6e13e641841833cc2aa5baefe89bb04bc388801b to before 6a946038f2a5a8c29048c6af369d4e391448a5c5Affected
  • 6e13e641841833cc2aa5baefe89bb04bc388801b to before a4c8094bbf4c6fa68b17e3b16f6a0a1b7a14f3e0Affected
  • 6e13e641841833cc2aa5baefe89bb04bc388801b to before ba14d7cf2fe7284610a29854bdff22b2537d3ce6Affected
LinuxLinux
  • 2.6.22Affected
  • before 2.6.22Not affected
  • 5.10.261 through 5.10.*Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.95 through 6.12.*Not affected
  • 6.18.38 through 6.18.*Not affected
  • 7.1.3 through 7.1.*Not affected
  • 7.2 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.