Weakness (CWE)
CWE-663: Use of a Non-reentrant Function in a Concurrent Context
The product calls a non-reentrant function in a concurrent context in which a competing code sequence (e.g. thread or signal handler) may have an opportunity to call the same function or otherwise influence its state.
How to prevent it (3 mitigations)
-
Implementation
Use reentrant functions if available.
-
Implementation
Add synchronization to your non-reentrant function.
-
Implementation
In Java, use the ReentrantLock Class.
Source: MITRE CWE-663
1 result · Feed
-
High 7.0
emp3r0r Affected by Concurrent Map Access DoS (panic/crash)
emp3r0r is a C2 designed by Linux users for Linux environments. Prior to version 3.21.2, multiple shared maps are accessed without consistent synchronization across goroutines. Under concurrent activity, Go runtime can trigger `fatal error: concurrent map rea…