{"schema":"vulnpedia.research/1","cve":"CVE-2026-102957","references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/cad8ad3ed2511d2816a3e8ce63e8028f7c3a1a1e","tags":["patch"],"source":"mitre","sourceId":"zephyr","modified":"2026-11-25T20:27:16.717Z","origins":[{"source":"mitre","sourceId":"zephyr","modified":"2026-11-25T20:27:16.717Z","tags":["patch"],"url":"https://github.com/zephyrproject-rtos/zephyr/commit/cad8ad3ed2511d2816a3e8ce63e8028f7c3a1a1e"},{"source":"nvd","sourceId":"CVE-2026-102957","modified":"2026-11-25T21:17:15.900","url":"https://github.com/zephyrproject-rtos/zephyr/commit/cad8ad3ed2511d2816a3e8ce63e8028f7c3a1a1e"}]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gmqw-xpww-374m","source":"mitre","sourceId":"zephyr","modified":"2026-11-25T20:27:16.717Z","origins":[{"source":"mitre","sourceId":"zephyr","modified":"2026-11-25T20:27:16.717Z","url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gmqw-xpww-374m"},{"source":"nvd","sourceId":"CVE-2026-102957","modified":"2026-11-25T21:17:15.900","url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gmqw-xpww-374m"}],"tags":[]},{"source":"euvd","sourceId":"EUVD-2026-135784","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-135784","tags":["ADVISORY"],"origins":[{"source":"euvd","sourceId":"EUVD-2026-135784","tags":["ADVISORY"],"url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-135784"}]}],"packages":[],"pocCandidates":[],"cataloguedPoc":[],"vendorStatements":[],"sourceTimes":{"cisa-kev":"2026-12-02T08:07:57.787Z","exploitdb":"2026-12-02T08:07:57.787Z","epss":"2026-12-02T08:07:57.787Z","nuclei":"2026-12-02T08:07:57.787Z","osv-PyPI":"2026-12-02T08:08:28.417Z","osv-npm":"2026-12-02T08:09:06.481Z","osv-Maven":"2026-12-02T08:08:33.548Z","osv-Go":"2026-12-02T08:08:37.108Z","osv-crates_io":"2026-12-02T08:08:38.459Z","osv-RubyGems":"2026-12-02T08:08:39.853Z","osv-Packagist":"2026-12-02T08:08:43.257Z","osv-NuGet":"2026-12-02T08:08:44.799Z","osv-Pub":"2026-12-02T08:08:45.082Z","osv-SwiftURL":"2026-12-02T08:08:45.246Z","osv-GitHub_Actions":"2026-12-02T08:08:45.404Z","osv-_EMPTY_":"2026-12-02T08:08:50.503Z","poc-in-github":"2026-12-02T08:08:55.031Z","metasploit":"2026-12-02T08:08:56.892Z","redhat-vex":"2026-12-02T08:13:29.952Z","euvd":"2026-12-02T08:08:22.901Z","vulncheck-kev":"2026-12-02T08:08:21.627Z","zdi":"2026-12-02T08:08:18.922Z","oss-security":"2026-12-02T08:08:18.922Z","full-disclosure":"2026-12-02T08:08:18.922Z","cert-cc":"2026-12-02T08:08:18.922Z","watchtowr":"2026-12-02T08:08:18.922Z","lexfo":"2026-12-02T08:08:18.922Z","google-security-research":"2026-12-02T08:08:18.922Z","vulncheck-initial-access":"2026-12-02T08:08:18.922Z","fkie-nvd-2026":"2026-12-02T08:08:02.020Z","fkie-nvd-2025":"2026-12-02T08:08:13.945Z","ghsa":"2026-12-02T08:08:28.417Z","pysec":"2026-12-02T08:08:28.417Z","go":"2026-12-02T08:08:28.417Z","rustsec":"2026-12-02T08:08:28.417Z","primary":"2026-11-25T20:27:16.717Z","nvd":"2026-11-25T21:17:15.900"},"sourceFields":{"schema":"vulnpedia.source-fields/1","primary":{"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.\n\npwm_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.\n\nThe 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 con","published":"2026-11-25","cwe":[{"id":"CWE-825","name":"memory-safety"}],"labels":{"vendors":["zephyrproject"],"products":["zephyr"]},"ssvc":null},"nvd":{"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.\n\npwm_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.\n\nThe 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 con","published":"2026-11-25","cwe":[{"id":"CWE-825","name":"Expired Pointer Dereference"}],"labels":{"vendors":[],"products":[]},"ssvc":null}},"labels":{"vendors":["zephyrproject"],"products":["zephyr"]},"evidence":{"version":"2026-12-02T08:13:57.184Z#d100f2cdaf86e80c26987741a6a58a5edfdb8db661988281c6776e6d42d07311","checkedAt":"2026-12-02T08:13:57.184Z","changedAt":"2026-12-01T08:12:50.035Z","pocChangedAt":null}}