CWE-479: Signal Handler Use of a Non-reentrant Function

2 CVEs have CWE-479 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 0.839%.

The product defines a signal handler that calls a non-reentrant function.

The function call syslog() is an example of this. In order to perform its functionality, it allocates a small amount of memory as scratch space. If syslog() is suspended by a signal call and the signal handler calls syslog(), the memory used by both of these functions enters an undefined, and possibly, exploitable state. Implementations of malloc() and free() manage metadata in global structures in order to track which memory is allocated versus which memory is available, but they are non-reentrant. Simultaneous calls to these functions can cause corruption of the metadata.

Child of CWE-828: Signal Handler with Functionality that is not Asynchronous-Safe

Mitigations

Observed examples

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources