目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-102957— PWM capture syscall leaves callback armed on a dead kernel stack frame when called with K_NO_WAIT

一分钟漏洞结论

影响对象
zephyrproject zephyr
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

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

CVSS 7.7 · High

影响版本矩阵 2

厂商产品 版本范围状态
zephyrproject zephyr 2.5.0< 4.3.2 affected
4.4.0< 4.5.0 affected
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-102957 基础信息

漏洞信息

Shenlong is analyzing...


对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
PWM capture syscall leaves callback armed on a dead kernel stack frame when called with K_NO_WAIT
来源: CVE Program / CVE List V5
Vulnerability Description
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_callback() with the dangling pointer. The callback writes into the expired kernel stack region and calls k_sem_give() on whatever memory now occupies it, which can corrupt live kernel stack frames and make the scheduler walk a forged wait queue. The result is kernel memory corruption from interrupt context, leading at least to a crash and possibly to privilege escalation out of the userspace sandbox. The fix rejects K_NO_WAIT with -EINVAL before any capture is configured.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
无效指针解引用
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
zephyrproject zephyr 2.5.0 ~ 4.3.2 -

二、漏洞 CVE-2026-102957 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-102957 的情报信息

请登录查看更多情报信息。

CVE-2026-102957 其他参考 (2)

同批安全公告 · zephyrproject · 2026-11-25 · 共 4 条

CVE-2026-102960 6.8 MEDIUM Stack buffer overflow in Grow R502-A fingerprint sensor driver UART RX handler
CVE-2026-102959 6.4 MEDIUM Stack use-after-return on RX timeout in Grow R502-A fingerprint sensor driver
CVE-2026-90592 4.6 MEDIUM Out-of-bounds read in it51xxx I2C target FIFO ISR on oversized read transaction

IV. Related Vulnerabilities