- Reported
- 
        
      
- Issued
- 
        
        
        
        
      
- Package
- 
        
        
        atomic-option
          (crates.io)
        
        
      
- Type
- 
        
        Vulnerability
        
      
- Categories
- 
        
      
- Aliases
- 
        
      
- References
- 
        
      
- CVSS Score
- 5.9 
        MEDIUM
      
- CVSS Details
- 
        
          
            - Attack Vector
- Network
- Attack Complexity
- High
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality Impact
- None
- Integrity Impact
- None
- Availability Impact
- High
 
- CVSS Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- Patched
- 
        
        no patched versions
        
      
Description
    In the affected versions of this crate,
AtomicOption<T> unconditionally implements Sync.
This allows programmers to move non-Sync types across thread boundaries (e.g. Rc<T>, Arc<Cell<T>>), which can lead to data races and undefined behavior.
It is also possible to send non-Send types like std::sync::MutexGuard to other threads, which can lead to undefined behavior.
    Advisory available under CC0-1.0
    license.