{"id":"CVE-2026-80678","aliases":["CVE-2026-80678"],"related":[],"kind":"vulnerability","state":"published","title":"i2c: imx: Fix slave registration race and error handling","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: imx: Fix slave registration race and error handling\n\nIn i2c_imx_reg_slave(), the slave pointer was assigned before\npm_runtime_resume_and_get().  If pm_runtime_resume_and_get() failed,\nthe error path returned without clearing i2c_imx->slave, leaving it\nnon-NULL and causing all subsequent registration attempts to fail\nwith -EBUSY.\n\nAdditionally, because this driver uses a shared IRQ, the interrupt\nhandler i2c_imx_isr() can execute concurrently and, after acquiring\nslave_lock, dereference i2c_imx->slave.  The previous fix attempt\nadded a lockless i2c_imx->slave = NULL on the error path, but that\ncould race with the ISR under the lock and still cause a NULL pointer\ndereference.\n\nFix both issues by deferring the assignment of i2c_imx->slave and\ni2c_imx->last_slave_event to after a successful resume, and by\nperforming the assignment inside the slave_lock critical section.\nThis guarantees that the slave pointer is never left stale on the\nerror path and is always valid when observed by the interrupt handler.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: imx: Fix slave registration race and error handling\n\nIn i2c_imx_reg_slave(), the slave pointer was assigned before\npm_runtime_resume_and_get().  If pm_runtime_resume_and_get() failed,\nthe error path returned without clearing i2c_imx->slave, leaving it\nnon-NULL and causing all subsequent registration attempts to fail\nwith -EBUSY.\n\nAdditionally, because this driver uses a shared IRQ, the interrupt\nhandler i2c_imx_isr() can execute concurrently and, after acquiring\nslave_lock, dereference i2c_imx->slave.  The previous fix attempt\nadded a lockless i2c_imx->slave = NULL on the error path, but that\ncould race with the ISR under the lock and still cause a NULL pointer\ndereference.\n\nFix both issues by deferring the assignment of i2c_imx->slave and\ni2c_imx->last_slave_event to after a successful resume, and by\nperforming the assignment inside the slave_lock critical section.\nThis guarantees that the slave pointer is never left stale on the\nerror path and is always valid when observed by the interrupt handler.","source":"cvelist"}],"published":"2026-08-28T06:52:47.077Z","modified":"2026-10-16T20:18:05.967Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f7414cd6923fd7f78e57086fc964ba2dc25db5c1","fixed":"754bc62f72fd64b202462367134ac8ce95b005de","status":"affected"},{"type":"git","introduced":"f7414cd6923fd7f78e57086fc964ba2dc25db5c1","fixed":"cfdf6e13518589f911b7eace6ccb788e4ed87397","status":"affected"},{"type":"git","introduced":"f7414cd6923fd7f78e57086fc964ba2dc25db5c1","fixed":"b9f6f4883b9ac86654e75899d0dbf8a7a96ad5d8","status":"affected"},{"type":"git","introduced":"f7414cd6923fd7f78e57086fc964ba2dc25db5c1","fixed":"d6748f6802f3eebafaa16a5e5dcfbfb9b3bc173f","status":"affected"},{"type":"git","introduced":"f7414cd6923fd7f78e57086fc964ba2dc25db5c1","fixed":"12a4f0950a158d98552cbaeacc35edccd8d975fa","status":"affected"},{"type":"git","introduced":"f7414cd6923fd7f78e57086fc964ba2dc25db5c1","fixed":"614ca6594e301ff682999797c2216e9685558a2b","status":"affected"},{"type":"git","introduced":"f7414cd6923fd7f78e57086fc964ba2dc25db5c1","fixed":"d64ec362c369bbc33833f7936d5f3a706b0d5c45","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.15.217","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.151","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.103","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.44","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.8","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/754bc62f72fd64b202462367134ac8ce95b005de","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cfdf6e13518589f911b7eace6ccb788e4ed87397","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9f6f4883b9ac86654e75899d0dbf8a7a96ad5d8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d6748f6802f3eebafaa16a5e5dcfbfb9b3bc173f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/12a4f0950a158d98552cbaeacc35edccd8d975fa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/614ca6594e301ff682999797c2216e9685558a2b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d64ec362c369bbc33833f7936d5f3a706b0d5c45","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T19:19:46.218Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80678","url":"https://www.cve.org/CVERecord?id=CVE-2026-80678","licence":"CVE Terms of Use","modified":"2026-10-16T19:26:32.757Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80678","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80678","licence":"Public domain","modified":"2026-10-16T20:18:05.967Z"}],"updatedAt":"2026-11-25T22:59:35.609Z","epss":{"score":0.00142,"percentile":0.037,"date":"2026-12-01T12:00:22.000Z"}}