CVE-2026-10679: dos in zephyrproject zephyr
The DesignWare SPI driver (drivers/spi/spi_dw.c) computed the SPI BAUDR clock divider as info->clock_frequency / config->frequency without validating config->frequency. spi_transceive is a Zephyr __syscall and its verify handler (drivers/spi/spi_handlers.c) copies the caller-supplied spi_config from userspace without checking the frequency field, so a userspace thread that has been granted access to a DesignWare SPI device kernel object can pass frequency = 0 and trigger an unsigned integer divide-by-zero in spi_dw_configure(). On Cortex-M Mainline (SCB->CCR.DIV_0_TRP is set in z_arm_fault_init()) and on ARC (a dedicated __ev_div_zero vector) this raises a CPU exception, resulting in a kernel fault and local denial of service. The fix rejects zero frequency and frequencies above clock_frequency / 2 (the DesignWare SSI databook minimum SCKDIV of 2) with -EINVAL. The defect affects all Zephyr releases up to and including v4.4.0; exploitation requires CONFIG_USERSPACE=y and an unprivileged thread already granted SPI driver permission. There is no memory-corruption or information-disclosure impact.
AI Analysis
Technical Summary
The DesignWare SPI driver in Zephyr computes the SPI BAUDR clock divider by dividing info->clock_frequency by config->frequency without validating config->frequency. The spi_transceive syscall copies the spi_config from userspace without checking the frequency field, allowing a userspace thread with SPI device access to supply a frequency of zero. This triggers an unsigned integer divide-by-zero in spi_dw_configure(), causing a CPU exception on Cortex-M and ARC architectures, resulting in a kernel fault and local denial of service. The vulnerability affects all Zephyr releases up to and including v4.4.0 with CONFIG_USERSPACE=y and requires an unprivileged thread already granted SPI driver permission. The fix rejects zero and excessively high frequencies with an error code. No memory corruption or information disclosure occurs.
Potential Impact
Exploitation causes a local denial of service by triggering a kernel fault due to a divide-by-zero CPU exception. There is no impact on confidentiality or integrity, and no memory corruption or information disclosure is involved. The vulnerability requires local access with specific permissions and userspace enabled.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix involves rejecting zero and invalid frequency values in the SPI driver configuration. Until patched, ensure that unprivileged userspace threads are not granted permission to access the DesignWare SPI driver or disable CONFIG_USERSPACE if not needed.
CVE-2026-10679: dos in zephyrproject zephyr
Description
The DesignWare SPI driver (drivers/spi/spi_dw.c) computed the SPI BAUDR clock divider as info->clock_frequency / config->frequency without validating config->frequency. spi_transceive is a Zephyr __syscall and its verify handler (drivers/spi/spi_handlers.c) copies the caller-supplied spi_config from userspace without checking the frequency field, so a userspace thread that has been granted access to a DesignWare SPI device kernel object can pass frequency = 0 and trigger an unsigned integer divide-by-zero in spi_dw_configure(). On Cortex-M Mainline (SCB->CCR.DIV_0_TRP is set in z_arm_fault_init()) and on ARC (a dedicated __ev_div_zero vector) this raises a CPU exception, resulting in a kernel fault and local denial of service. The fix rejects zero frequency and frequencies above clock_frequency / 2 (the DesignWare SSI databook minimum SCKDIV of 2) with -EINVAL. The defect affects all Zephyr releases up to and including v4.4.0; exploitation requires CONFIG_USERSPACE=y and an unprivileged thread already granted SPI driver permission. There is no memory-corruption or information-disclosure impact.
CVSS v3.1
Score 3.3low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The DesignWare SPI driver in Zephyr computes the SPI BAUDR clock divider by dividing info->clock_frequency by config->frequency without validating config->frequency. The spi_transceive syscall copies the spi_config from userspace without checking the frequency field, allowing a userspace thread with SPI device access to supply a frequency of zero. This triggers an unsigned integer divide-by-zero in spi_dw_configure(), causing a CPU exception on Cortex-M and ARC architectures, resulting in a kernel fault and local denial of service. The vulnerability affects all Zephyr releases up to and including v4.4.0 with CONFIG_USERSPACE=y and requires an unprivileged thread already granted SPI driver permission. The fix rejects zero and excessively high frequencies with an error code. No memory corruption or information disclosure occurs.
Potential Impact
Exploitation causes a local denial of service by triggering a kernel fault due to a divide-by-zero CPU exception. There is no impact on confidentiality or integrity, and no memory corruption or information disclosure is involved. The vulnerability requires local access with specific permissions and userspace enabled.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The fix involves rejecting zero and invalid frequency values in the SPI driver configuration. Until patched, ensure that unprivileged userspace threads are not granted permission to access the DesignWare SPI driver or disable CONFIG_USERSPACE if not needed.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- zephyr
- Date Reserved
- 2026-06-02T15:26:09.584Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5fe6ba9c2644c7f8cb00cd
Added to database: 07/21/2026, 21:38:02 UTC
Last enriched: 07/22/2026, 10:08:33 UTC
Last updated: 07/31/2026, 19:22:57 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.