Skip to content
OpenAdvisories

Weakness (CWE)

CWE-253: Incorrect Check of Function Return Value

Base Incomplete

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

How to prevent it (3 mitigations)
  1. Architecture and Design

    Use a language or compiler that uses exceptions and requires the catching of those exceptions.

  2. Implementation

    Properly check all functions which return a value.

  3. Implementation

    When designing any function make sure you return a value or throw an exception in case of an error.

Source: MITRE CWE-253

2 results · Clear filters · Feed

  • Low 3.7

    mutt before 2.3.2 has an infinite loop in data_object_to_stream in crypt-gpgme.c.

  • Low 3.3

    GNU Binutils prdbg.c tg_tag_type return value

    A security flaw has been discovered in GNU Binutils 2.45. Impacted is the function tg_tag_type of the file prdbg.c. Performing a manipulation results in unchecked return value. The attack needs to be approached locally. The exploit has been released to the pu…