How this bug class keeps getting shipped
Two of last week's additions to CISA's Known Exploited Vulnerabilities catalog share a root cause that keeps appearing in post-mortems: a function returned a failure value and the caller ignored it. CWE-252 (unchecked return value) is unglamorous. It keeps producing memory corruption, denial of service, and in the worst cases code execution, in software that otherwise looks mature. This post walks through the anatomy using CVE-2026-111497 in Google's Brotli decoder as the primary example, with CVE-2026-76418 in Cisco Secure Firewall ASA and FTD as a cross-stack mirror.
The class, in one paragraph
In C and C-adjacent runtimes, failure is a value, not an exception. Allocators return NULL. Parsers return a negative integer or a sentinel. Streaming decoders return a status enum with multiple non-success states, some of which leave the output buffer half-written. CWE-252 is what happens when the caller funnels those returns directly into the next operation: it dereferences the pointer, indexes into the half-written buffer, or advances a state machine that should have been rewound. The class bites hardest when the ignored return comes from a path uncommon in testing (an out-of-memory branch, a truncation, a short read) but reachable from attacker-controlled input.
Primary case: Brotli decoder, CVE-2026-111497
CISA added CVE-2026-111497 to KEV on 2026-10-27 and describes it as an unchecked return value in Google Brotli that permits a remote unauthenticated attacker to "corrupt adjacent decoder state memory, disclose sensitive memory contents, cause a denial of service, or potentially execute arbitrary code using a crafted Brotli-compressed stream." Vendor advisories published 2026-11-01 confirm the CVE as a High severity issue across the Node.js 22.x, 24.x, and 26.x release lines, reaching many products as a shared dependency. Cisco's advisory, "Vulnerabilities in Node.js Affecting Cisco Products: October 2026," names the Brotli decoder bug explicitly alongside DNS resolution and TLS validation issues shipped in the same security release.
The exposure path makes this CVE representative of the class. Brotli is content encoding. Anywhere a server, proxy, SDK, or client-side library accepts Content-Encoding: br from untrusted peers, the decoder sits on the hot path for incoming bytes. In reverse-proxy and API-gateway topologies, the Brotli stream can originate from an upstream, a cache, or a client; the attack surface is wherever the decoder runs, often several hops from where the internet nominally ends.
The mechanism, stripped to the class pattern, looks like this. The decoder calls an internal state-rebuild routine that can fail on malformed input. The function returns a status, but the caller treats it as fire-and-forget:
/* Illustrative pseudocode of the CWE-252 pattern,
not a copy of upstream Brotli source. */
static int decode_chunk(decoder_state *s, const uint8_t *in, size_t n) {
rebuild_huffman_tables(s, in, n); /* <-- return ignored */
s->ringbuf[s->pos++] = emit(s); /* uses tables as if valid */
return BROTLI_OK;
}
/* The sanitized form keeps the same shape but refuses to proceed
on anything other than an explicit success. */
static int decode_chunk_fixed(decoder_state *s, const uint8_t *in, size_t n) {
int rc = rebuild_huffman_tables(s, in, n);
if (rc != BROTLI_OK) {
brotli_reset_state(s);
return rc;
}
s->ringbuf[s->pos++] = emit(s);
return BROTLI_OK;
}
A crafted compressed stream drives rebuild_huffman_tables into a non-success path (allocation failure, structural rejection, truncation). Because the caller never inspects the return, the state machine runs on tables that were only partially rewritten. The subsequent emit and ring-buffer index operate on fields that straddle valid and stale state. From there, the primitives available depend on which field survived the half-write: an out-of-bounds write into the decoder context gives attackers the "adjacent decoder state memory" corruption CISA describes verbatim.
Are you exposed?
Three questions settle it for most environments.
- Does any internet-facing listener accept
Content-Encoding: brorAccept-Encoding: bron responses it later re-decompresses? Reverse proxies, WAFs, API gateways, and server-side fetchers all count. - Which Node.js runtime version are your services pinned to? The vendor advisory names 22.x, 24.x, and 26.x release lines as recipients of the fix. Containers built from older base images frequently carry an unpatched runtime even after an application-layer upgrade.
- Do any embedded vendor appliances in your estate advertise Brotli support in their management or data plane? Cisco's October 2026 advisory enumerates affected products; treat other appliances the same way until the vendor confirms otherwise.
A quick SBOM query is sufficient to triage. The patterns below are deliberately generic:
# Find services shipping a Node.js runtime older than the patched release line.
grep -R --include='package-lock.json' -nE '"node_version"\s*:\s*"(1[0-9]|2[0-1])\.' repos/
# Enumerate appliances that advertise Brotli to clients.
curl -skI -H 'Accept-Encoding: br' https://example.com/ | grep -i '^content-encoding:'
Mirror case: Cisco ASA/FTD SSL VPN, CVE-2026-76418
CVE-2026-76418, added to KEV on 2026-10-29, is the same class in a different codebase. CISA's entry describes it as "an unchecked return value to NULL pointer dereference vulnerability" in Cisco Secure Firewall ASA and FTD, exploitable by an unauthenticated remote attacker to force an unexpected reload. The vendor advisory published 2026-11-01 attributes the fault to "logic errors when secondary authentication is configured on a tunnel group" and confirms the trigger is a crafted request to the SSL remote-access VPN. The denial of service is the giveaway: a return value signalling that authentication produced no object was treated as success, and the next dereference hit null.
The class behaves the same way regardless of language. Optional configuration (secondary authentication) creates a less-exercised code path; a helper on that path can fail silently; the caller does not check; the first dereference is attacker-reachable. The exposure test follows the same shape: inventory which tunnel groups use secondary authentication, then confirm the running image is at or above the fixed build.
What to do about the class, not just the CVEs
Patching both CVEs is the obvious first move. Under BOD 26-04 (Prioritizing Security Updates Based on Risk, effective 2026-06-10), federal civilian agencies must remediate KEV entries on the catalog's timelines; the directive carries the KEV criteria forward from the earlier posture and supersedes it. For everyone else, the useful second move is to treat CWE-252 as a review checklist item, not a lint rule. Three habits catch most recurrences:
- In code review, flag any call to an allocator, parser, decoder, or crypto primitive whose return value is not assigned. "Return value ignored" is the most productive grep in a mature C or C++ codebase, and modern compilers emit
-Wunused-resultwhen functions are annotated__attribute__((warn_unused_result))or[[nodiscard]]. - In fuzzing harnesses, target the error branches specifically. Coverage-guided fuzzers find happy paths quickly; CWE-252 bugs live where allocation fails, where lengths disagree, and where optional features are enabled.
- In production telemetry, alert on unexpected reloads of edge appliances and on decoder-adjacent crashes in content-handling services. Both CVEs discussed here produce distinctive crash signatures before anyone reads a bulletin.
The underlying lesson predates every CVE in this week's catalog. In 2006, CVE-2006-4339 hit OpenSSL because a padding check's result was effectively ignored when the exponent was 3, letting attackers forge signatures. Twenty years later, the same pattern is still shipping. The class keeps getting through because the ignored branch is, by construction, the hardest to notice. Make the compiler notice it, then the fuzzer, then your crash telemetry. Any one of those catches is cheaper than a KEV entry.
Verifiable security.