PT-2026-159538
CVE-2026-102957
·
Published
2026-11-25
·
Updated
2026-11-25
Description by
CVSS 3.1
7.7
HighMetricsAV:L/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:H
Name of the Vulnerable Software and Affected Versions
Zephyr OS (affected versions not specified)
Description
The function
z impl pwm capture cycles() in drivers/pwm/pwm capture.c fails to handle the -EBUSY return value from k sem take() when called with a K NO WAIT timeout. This leads to the function returning uninitialized status, period, and pulse values. When CONFIG USERSPACE and CONFIG PWM CAPTURE are enabled, an unprivileged user-mode thread with access to a capture-capable PWM device can trigger this behavior. This allows a user-mode caller to read up to 8 bytes of stale kernel stack memory. Furthermore, when the capture completes, the driver ISR invokes z pwm capture cycles callback() using a dangling pointer, causing the callback to write into an expired kernel stack region and call k sem give() on arbitrary memory. This results in kernel memory corruption from an interrupt context, which can lead to a system crash or privilege escalation from the userspace sandbox.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Found an issue in the description? Have something to add? Feel free to write us 👾