
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-5139 is a buffer overflow vulnerability discovered in the Zephyr RTOS version 3.4.0 and earlier. The vulnerability was identified in the STM32 Crypto driver, specifically in the copy_reverse_words() function within the drivers/crypto/crypto_stm32.c file. The issue was disclosed on October 26, 2023, affecting the Zephyr Project's real-time operating system (Zephyr Advisory).
The vulnerability stems from an ineffective assert check in the copy_reverse_words() function. The function contains a buffer overflow vulnerability due to inadequate length validation between source and destination buffers. The vulnerable function is called in multiple locations including crypto_stm32_ctr_encrypt(), crypto_stm32_ctr_decrypt(), and crypto_stm32_session_setup(), where the src_len parameter might be attacker-controlled. The vulnerability has been assigned a CVSS v3.1 score of 4.4 (Moderate) with a vector string of CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L (Zephyr Advisory).
The impact of this vulnerability could range from denial of service to potential arbitrary code execution if the unchecked length is attacker-controlled and if input crosses a security boundary. The vulnerability affects confidentiality and availability with low severity, while having no direct impact on integrity (Zephyr Advisory).
The vulnerability requires local access with low attack complexity and low privileges to exploit. No user interaction is needed for exploitation. The vulnerability has been classified as CWE-120 (Buffer Copy without Checking Size of Input) (Zephyr Advisory).
A patch has been proposed through pull request #61839 in the main branch of the Zephyr project repository. However, no official patched versions have been released yet (Zephyr Advisory).
The vulnerability was initially reported by security researcher 0xdea and has been acknowledged by the Zephyr Project. The discovery was part of a larger security audit that uncovered multiple vulnerabilities in the Zephyr RTOS (OSS Security).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."