The product uses a signal handler that introduces a race condition.
Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
Design signal handlers to only set flags, rather than perform complex functionality. These flags can then be checked and acted upon within the main program loop.
Only use reentrant functions within signal handlers. Also, use validation to ensure that state is consistent while performing asynchronous actions that affect the state of execution.
Our security experts can help you identify and remediate CWE-364 vulnerabilities in your codebase.
Get Security Assessment