CVE-2023-5139
NixOS vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Community reactions

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).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2025-49506HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management