Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-252 (未加检查的返回值) — Vulnerability Class 102

102 vulnerabilities classified as CWE-252 (未加检查的返回值). AI Chinese analysis included.

CWE-252 represents a critical programming weakness where software fails to verify the return value of a function or method, often stemming from the erroneous assumption that operations cannot fail or that their failure is inconsequential. This oversight allows attackers to exploit the vulnerability by forcing functions to return unexpected error codes or null values, thereby disrupting the intended execution flow. When the program proceeds without validating these outcomes, it may operate in an unstable state, leading to data corruption, denial of service, or privilege escalation. To mitigate this risk, developers must rigorously implement error-handling routines that explicitly check return statuses. By treating every function call as potentially hazardous and ensuring subsequent logic accounts for failure conditions, programmers can prevent attackers from manipulating program state through unchecked return values.

MITRE CWE Description
The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions. Two common programmer assumptions are "this function call can never fail" and "it doesn't matter if this function call fails". If an attacker can force the function to fail or otherwise return a value that is not expected, then the subsequent program logic could lead to a vulnerability, because the product is not in a state that the programmer assumes. For example, if the program calls a function to drop privileges but does not check the return code to ensure that privileges were successfully dropped, then the program will continue to operate with the higher privileges.
Common Consequences (1)
Availability, Integrity Unexpected State, DoS: Crash, Exit, or Restart
An unexpected return value could place the system in a state that could lead to a crash or other unintended behaviors.
Mitigations (4)
Implementation Check the results of all functions that return a value and verify that the value is expected.
Effectiveness: High
Implementation For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished [REF-1484].
Implementation Ensure that you account for all possible return values from the function.
Implementation When designing a function, make sure you return a value or throw an exception in case of an error.
Examples (2)
Consider the following code segment:
char buf[10], cp_buf[10]; fgets(buf, 10, stdin); strcpy(cp_buf, buf);
Bad · C
In the following example, it is possible to request that memcpy move a much larger segment of memory than assumed:
int returnChunkSize(void *) { /* if chunk info is valid, return the size of usable memory, * else, return -1 to indicate an error */ ... } int main() { ... memcpy(destBuf, srcBuf, (returnChunkSize(destBuf)-1)); ... }
Bad · C
CVE ID Title CVSS Severity Published
CVE-2026-127169 Unchecked Return Value in CODESYS Control RTE — Control RTE (SL) 7.5 High 2026-11-30
CVE-2026-133845 Flatpak: flatpak: sandbox escape via fd conflict in flatpak-portal spawn() — Red Hat Enterprise Linux 10 7.3 High 2026-11-27
CVE-2026-76101 keystore-go: Keystore integrity and password verification bypass via stripped trailing digest in Decode(), impacting legacy v2 versions — keystore-go 7.1 High 2026-11-18
CVE-2026-126708 Unchecked PKCS5_PBKDF2_HMAC() return can authenticate any password — Eclipse Mosquitto - - 2026-11-18
CVE-2026-107853 tiny-secp256k1: Stale buffer after ignored wasm failure accepts invalid infinity tweak — tiny-secp256k1 6.3 Medium 2026-11-17
CVE-2026-19809 Kernel stack information disclosure in the charger_get_prop() system call handler — zephyr 3.3 Low 2026-11-12
CVE-2026-125225 FFmpeg through 9.0.2 NULL Pointer Dereference via aac_adtstoasc Bitstream Filter — FFmpeg 5.5 Medium 2026-11-09
CVE-2026-125174 FFmpeg before 8.1.3 and 9.x before 9.0.2 NULL Pointer Dereference via ff_hap_set_chunk_count() — FFmpeg 5.5 Medium 2026-11-09
CVE-2026-125072 FFmpeg through 9.0.2 NULL Pointer Dereference in MPEG Audio Decoder — FFmpeg 4.7 Medium 2026-11-09
CVE-2026-125071 FFmpeg through 9.0.2 NULL Pointer Dereference in JV Video Decoder — FFmpeg 4.7 Medium 2026-11-09
CVE-2026-125069 FFmpeg through 9.0.2 NULL Pointer Dereference via Motion Pixels Decoder — FFmpeg 4.7 Medium 2026-11-09
CVE-2026-125070 FFmpeg through 9.0.2 NULL Pointer Dereference in EA TQI Decoder — FFmpeg 5.5 Medium 2026-11-09
CVE-2026-125068 FFmpeg through 9.0.2 NULL Pointer Dereference in Bink Video Decoder — FFmpeg 5.5 Medium 2026-11-09
CVE-2026-125066 FFmpeg through 9.0.2 NULL Pointer Dereference in CLJR Video Decoder — FFmpeg 5.5 Medium 2026-11-09
CVE-2026-125067 FFmpeg through 9.0.2 VBLE Decoder NULL Pointer Dereference via vble_decode_frame() — FFmpeg 5.5 Medium 2026-11-09
CVE-2026-125065 FFmpeg through 9.0.2 NULL Pointer Dereference via TGV Decoder eatgv.c — FFmpeg 5.5 Medium 2026-11-09
CVE-2026-125064 FFmpeg through 9.0.2 NULL Pointer Dereference in G.726 ADPCM Decoder — FFmpeg 5.5 Medium 2026-11-09
CVE-2026-121639 WatchGuard AuthPoint Gateway Improper Authentication Allows Unauthenticated Denial of Service — AuthPoint Authentication Gateway 9.2 Critical 2026-11-04
CVE-2026-115403 NULL pointer dereference in the BSD raw IPv6 send path when the destination table is full — Eclipse ThreadX 8.2 High 2026-11-02
CVE-2026-114408 NULL pointer dereference in ICMPv6 Packet Too Big processing when the destination table is full — Eclipse ThreadX NetX Duo 8.7 High 2026-11-02
CVE-2026-118263 Echo: BodyDump can discard BodyLimit overflow errors for unknown-length requests — echo 6.3 Medium 2026-10-28
CVE-2026-110353 HAProxy 3.2-3.4.6 HTTP/2 PING 拒绝服务漏洞 — HAProxy 7.5 High 2026-10-22
CVE-2026-107838 RIOT: nanocoap_fileserver ignores response initialization failure, leading to reachable assertion — RIOT 7.5 High 2026-10-09
CVE-2026-106436 Application denial of service and data truncation via unchecked BSON append failures in MongoDB PHP Driver — PHP Driver 4.8 Medium 2026-10-08
CVE-2026-95316 Chrome 154.0.8037.57前Performance未检查返回值漏洞 — Chrome - - 2026-09-29
CVE-2026-67409 RabbitMQ: JWKS Fetch Ignores HTTP Response Status Code - Signing Key Destruction Causes Authentication DoS — rabbitmq-server 8.2 High 2026-09-25
CVE-2026-71180 Dell Update Package Framework 26.07.03 前返回值未检查 — Update Package Framework 8.2 High 2026-09-16
CVE-2026-90648 WebAssembly WABT 异常处理不当漏洞 — wabt 7.1 High 2026-09-12
CVE-2026-86749 snipe-it before 8.7.0 Data Loss via Failed Image Write — snipe-it 6.3 Medium 2026-09-09
CVE-2026-86739 Snipe-IT before 8.7.0 Acceptance Finalization Without Stored Evidence — snipe-it 3.1 Low 2026-09-09

Vulnerabilities classified as CWE-252 (未加检查的返回值) represent 102 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.