Vulnerability · Published Apr 25, 2026 · Assigned by VulDB
CVE-2026-6985Cesanta Mongoose TCP Option net_builtin.c handle_opt infinite loop
Medium 5.3
In plain English
A medium-severity infinite loop in Mongoose from Cesanta. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A weakness has been identified in Cesanta Mongoose up to 7.20. This vulnerability affects the function handle_opt of the file /src/net_builtin.c of the component TCP Option Handler. This manipulation of the argument optlen causes infinite loop. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 7.21 is able to resolve this issue. Upgrading the affected component is advised. VulDB has contacted the vendor early and they confirmed quickly, that this issue got fixed already.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | swupdate | no fix listed | DEBIAN-CVE-2026-6985 |
| Debian:13 | swupdate | no fix listed | DEBIAN-CVE-2026-6985 |
| Debian:14 | swupdate | 2025.12+dfsg-10 | DEBIAN-CVE-2026-6985 |
| Ubuntu:22.04:LTS | swupdate | no fix listed | UBUNTU-CVE-2026-6985 |
| Ubuntu:24.04:LTS | swupdate | no fix listed | UBUNTU-CVE-2026-6985 |
| Ubuntu:25.10 | swupdate | no fix listed | UBUNTU-CVE-2026-6985 |
| Ubuntu:26.04:LTS | swupdate | no fix listed | UBUNTU-CVE-2026-6985 |
| Ubuntu:26.10 | swupdate | no fix listed | UBUNTU-CVE-2026-6985 |
Affected products (as reported)
Weakness: CWE-835, CWE-404 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C
References
- VDB-359528 | Cesanta Mongoose TCP Option net_builtin.c handle_opt infinite loop vdb-entry, technical-description
- VDB-359528 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #796230 | Cesanta Mongoose 7.20 Denial of Service third-party-advisory
- https://github.com/dwBruijn/CVEs/blob/main/Mongoose/TCP_opt_dos.md exploit
- https://github.com/cesanta/mongoose/releases/tag/7.21 patch