logo

CWE-253 - Incorrect Check of Function Return Value

  • Abstraction:Base
  • Structure:Simple
  • Status:Incomplete
  • Release Date:2006-07-19
  • Latest Modification Date:2024-02-29

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