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 copyreversewords() 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 copyreversewords() 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 cryptostm32ctrencrypt(), cryptostm32ctrdecrypt(), and cryptostm32sessionsetup(), where the srclen 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).

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-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

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