The stack overflow in CVE-2026-77946 is not fundamentally a uci_safe_get coding error — it is a configuration-layer architectural failure where unsanitized user input from web-facing CGI flows directly into system configuration writes. The apply_time.cgi handler receives HTTP arguments and passes them to UCI operations without bounds checking; uci_safe_get then copies these attacker-controlled strings into fixed stack buffers during configuration retrieval. This is a contamination of the configuration pipeline, not a classic buffer overflow in application code.
Four parameters are injectable — ntp.server, ntp.enable_server, time_zone, and syslog_server — across different configuration subsystems. This multiplicity is diagnostic: it indicates the CGI handler lacks a sanitization layer and simply passes values through to UCI, which was never designed as a security filter. The real question for defenders is whether other CGI handlers on this firmware exhibit the same pattern, making the attack surface larger than this single CVE implies.
The CVSS 10 rating accurately reflects exploitability but obscures a more important truth: this firmware likely represents a systemic vulnerability class in OpenWrt-derived consumer IoT. The persistence matters here — attacker-controlled values written to /etc/config/ntp survive reboots and get consumed by init scripts and downstream services, creating a blast corridor rather than a discrete impact event. Any remediation audit should include a specific test case: does any CGI handler pass HTTP parameters directly to UCI write operations?
Note that the TEW-821DAP at firmware 2.2.01b05 is likely end-of-life with no vendor patch coming. For the installed base, the vulnerability is permanent. Prioritize network segmentation and monitor for configuration changes to /etc/config/ntp as the practical defensive steps.