CWE-253β€”Incorrect Check of Function Return Value

PUBLISHEDweakness recordLow
released 2006-07-19 Β· last modified 2025-12-11

Metadata

CWE ID:
CWE-253
Abstraction:
Base
Structure:
Simple
Status:
Incomplete
Release Date:
2006-07-19
Latest Modification Date:
2025-12-11

Weakness Name

Incorrect Check of Function Return Value

Description

The product incorrectly checks a return value from a function, which prevents it from detecting errors or exceptional conditions.

Important and common functions will return some value about the success of its actions. This will alert the program whether or not to handle any errors caused by that function.

Common Consequences

Scope:
Availability, Integrity
Impact:
Unexpected State, DoS: Crash, Exit, or Restart
Notes:
An unexpected return value could place the system in a state that could lead to a crash or other unintended behaviors.

Related Weaknesses