High-Signal Threat Activity (CVE-2026-102957)
Summary
z_impl_pwm_capture_cycles() in drivers/pwm/pwm_capture.c stores its capture context (struct z_pwm_capture_cb_data, including a struct k_sem) on its own stack and registers a pointer to it as the driver capture callback's user_data. When called with a K_NO_WAIT timeout, k_sem_take() returns -EBUSY, which the function did not handle: it fell through, returned the uninitialized status field, copied uninitialized period/pulse values to the caller when that status happened to be zero, and returned without disabling the capture or clearing the callback. pwm_capture_cycles() is a system call, and z_vrfy_pwm_capture_cycles() passes the caller's timeout through unchanged. With CONFIG_USERSPACE and CONFIG_PWM_CAPTURE enabled, an unprivileged user-mode thread that has been granted access to a capture-capable PWM device can pass K_NO_WAIT to trigger the defect. Without userspace the function is only reachable from trusted application code. The uninitialized values come from the thread's privileged (kernel) stack, so a user-mode caller can read up to 8 bytes of stale kernel stack memory per call. More seriously, when the capture later completes, the driver ISR invokes z_pwm_capture_cycles_ca...
Verified Mitigations & Rulepacks
- Sigma
SIGMA-AITH-ADV-2026-0664(DRL-1.1): Detection rule for AITH-ADV-2026-0664 on dmz_sensor (sha256:d15e64bd0cd13c99...) - YARA
YARA-AITH-ADV-2026-0664(Apache-2.0): Payload signature for AITH-ADV-2026-0664 (sha256:5e99313627cd93ff...)
Canonical Advisory URL: https://openaw.org/p/aitherium-security/advisories/AITH-ADV-2026-0664