Bug 2517071 (CVE-2026-74461) - CVE-2026-74461 kernel: i2c: imx: Cancel hrtimer before clearing slave pointer
Summary: CVE-2026-74461 kernel: i2c: imx: Cancel hrtimer before clearing slave pointer
Keywords:
Status: NEW
Alias: CVE-2026-74461
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-15 12:48 UTC by OSIDB Bzimport
Modified: 2026-08-19 15:33 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-15 12:48:11 UTC
In the Linux kernel, the following vulnerability has been resolved:

i2c: imx: Cancel hrtimer before clearing slave pointer

In i2c_imx_unreg_slave(), the slave pointer is set to NULL after
disabling interrupts.  However, a pending interrupt might already
have started the hrtimer (i2c_imx_slave_timeout) before the pointer
was cleared.  If the hrtimer fires after i2c_imx->slave is set to
NULL, the timer callback i2c_imx_slave_finish_op() will call
i2c_imx_slave_event() with a NULL slave pointer, which results in a
use-after-free / NULL pointer dereference.

Fix by canceling the hrtimer and waiting for it to complete after
disabling interrupts, before clearing the slave pointer.

Comment 1 Mauro Matteo Cascella 2026-08-19 15:29:04 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026081532-CVE-2026-74461-5a10@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.