CWE-663: Use of a Non-reentrant Function in a Concurrent Context

BaseDraft

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.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Platforms

Frequently Asked Questions

What is CWE-663: Use of a Non-reentrant Function in a Concurrent Context?+

CWE-663: Use of a Non-reentrant Function in a Concurrent Context is a Common Weakness Enumeration (CWE) entry maintained by MITRE. 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.

What are the security consequences of Use of a Non-reentrant Function in a Concurrent Context?+

If exploited, CWE-663 (Use of a Non-reentrant Function in a Concurrent Context) it can compromise Integrity, Confidentiality and Other, leading to outcomes such as Modify Memory, Read Memory, Modify Application Data, Read Application Data and Alter Execution Logic.

How do you prevent or mitigate Use of a Non-reentrant Function in a Concurrent Context?+

Recommended mitigations for CWE-663 include: Use reentrant functions if available. Add synchronization to your non-reentrant function. In Java, use the ReentrantLock Class.

What are real-world examples of Use of a Non-reentrant Function in a Concurrent Context?+

MITRE documents real CVEs mapped to CWE-663, including CVE-2001-1349 and CVE-2004-2259. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-663 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More

CWE-663: Use of a Non-reentrant Function in a Concurrent Context | CWE Lookup | InventiveHQ