CVE-2026-12365: Zephyr Work Delayable Abort Race

Using z_abort_timeout() when unscheduling delayable work can race with an in-flight timeout handler on SMP systems, causing use-after-free. Use z_try_abort_timeout() and handle in-flight timeouts.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-12365-zephyr-work-delayable-abort-race --engine opengrep

Description

Using z_abort_timeout() when unscheduling delayable work can race with an in-flight timeout handler on SMP systems, causing use-after-free. Use z_try_abort_timeout() and handle in-flight timeouts.