CVE-2017-20004
Linux Debian vulnerability analysis and mitigation

Overview

In the standard library in Rust before 1.19.0, there exists a synchronization problem in the MutexGuard object. The vulnerability, identified as CVE-2017-20004, allows MutexGuards to be used across threads with any types, potentially leading to memory safety issues through race conditions (NVD, Rust Issue).

Technical details

The vulnerability stems from an incorrect implementation where MutexGuard implements Sync whenever T implements Send, which is incorrect. The proper implementation should have MutexGuard implement Sync only when T implements Sync. This synchronization issue can lead to race conditions when using MutexGuard with types like Cell across different threads. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.9 (MEDIUM) with vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N (NVD).

Impact

The vulnerability allows for data races when using MutexGuard with certain types across threads. This can lead to memory safety issues and potential undefined behavior in concurrent Rust programs. The issue particularly affects programs that use MutexGuard with types that implement Send but not Sync, allowing for unsynchronized access to shared data (Rust Issue).

Mitigation and workarounds

The issue was fixed in Rust version 1.19.0 by modifying the implementation to ensure MutexGuard implements Sync only when T implements Sync. Users should upgrade to Rust 1.19.0 or later to address this vulnerability (Rust PR).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-11266MEDIUM6.8
  • Linux DebianLinux Debian
  • gdcm
NoNoDec 12, 2025
CVE-2025-67897MEDIUM5.3
  • Linux DebianLinux Debian
  • rust-sequoia-openpgp
NoYesDec 14, 2025
CVE-2025-14607MEDIUM5.3
  • Linux DebianLinux Debian
  • dcmtk
NoNoDec 13, 2025
CVE-2025-67749MEDIUM5.3
  • Linux DebianLinux Debian
  • pcsx2
NoNoDec 12, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 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