CVE-2026-100740 — D-Link DIR-895L L2TP Host Name AVP Out-of-Bounds Write
September 27, 2026 · 1,450 views
Out-of-bounds write (CWE-787 / CWE-119) in D-Link DIR-895L firmware A1_102b07 L2TP tunnel_set_params() — Host Name AVP length clamped to 127 but NUL written at peer_hostname[len+1] on a 128-byte buffer. Remote attack over UDP 1701 when L2TP is active. PoC fingerprints the router, probes UDP 1701, optional lab-only --oob-send trigger. No vendor fix listed in NVD at publication.
Description
Overview
CVE-2026-100740 affects D-Link DIR-895L firmware A1_102b07 only (per VulDB). In tunnel_set_params() (tunnel.c), the L2TP control channel parser mishandles the Host Name AVP: length is clamped to 127, but the NUL terminator is stored at peer_hostname[len+1] on a 128-byte stack buffer → out-of-bounds write and adjacent memory corruption (CWE-787 / CWE-119).
Attack surface: Remote, UDP 1701, when the router participates in L2TP (common as WAN client to an ISP L2TP server; malicious or spoofed upstream peer). Public exploit references exist; no vendor fix was listed in NVD at publication.
| | |
|---|---|
| Vendor / model | D-Link DIR-895L |
| Firmware | A1_102b07 |
| Component | L2TP control parser / tunnel.c |
| Vector | Crafted Host Name AVP (len 127) |
| Port | UDP 1701 |
| CVSS 4.0 | VulDB PR:L, network, high impact |
Research (same bug class as DIR-822A): Notion — DIR-895L L2TP Host Name AVP
Open source PoC: https://github.com/murrez/CVE-2026-100740
PoC page: https://pocbit.org/pocs/cve-2026-100740
This repository fingerprints the router (HTTP), checks UDP 1701, and optionally sends a lab-only SCCRQ trigger (--oob-send). It does not ship a full RCE chain.
Bundled tool (Python 3)
pip install -r requirements.txt
python poc.py -u 192.168.0.1 --mode check
python poc.py -u 192.168.0.1 --mode check --l2tp-probe
python poc.py -u 192.168.0.1 --mode exploit --oob-send
python poc.py --list targets.example.txt --mode check -j 20
Impact
WAN-facing DIR-895L A1_102b07 units with L2TP enabled may be reachable by a network-positioned attacker. Memory corruption can lead to denial of service (device reboot/crash) or further exploitation in lab conditions. --oob-send may crash the router.
Remediation
- Restrict UDP 1701 exposure; disable L2TP WAN if not required.
- Monitor D-Link advisories for firmware beyond A1_102b07.
- Replace or segment legacy routers on internet-facing paths.
Legal and ethical use
Authorized testing only. Do not send --oob-send against production networks you do not own.
References
Related PoCs
Same platform, vendor, or tags — explore more write-ups on Pocbit.
- IoT / OTCVE-2026-93958critical
CVE-2026-93958 — D-Link R95 BE9500 DHMAPI NTPServer Root Command Injection
Authenticated OS command injection (CWE-77/78) in D-Link R95 BE9500 firmware BE9500_1.00.16 (1.01B06): DHMAPI SetTimeSettings stores NTPServer unsanitized; UCI sync runs shell with backticks as root. Requires admin Login + API-AUTH HMAC (port 18443/443). CVSS 9.1 Critical. Python PoC: check/exploit, mass bulk -j, colored CLI.
- IoT / OTCVE-2026-8065critical
CVE-2026-8065 — Hitachi Energy RTU500 Unauthenticated Firmware Update Bypass
Hitachi Energy RTU500 Series CMU firmware: CWE-306 missing authentication on the firmware update HTTP endpoint — unauthenticated arbitrary firmware upload via crafted POST (CVSS 3.1 9.1 Critical, IoT/OT). Affected CMU lines include 9.0 and 12.0 per vendor advisory. Python PoC: RTU500 fingerprint, path probe, lab-safe upload test, check + mass exploit -j. Authorized OT/lab only.
- IoT / OTCVE-2026-13249critical
CVE-2026-13249 — Honeywell PD45 Unauthenticated File Upload (RCE)
Unauthenticated arbitrary file upload on Honeywell PD45 Industrial Printer HTTPS web admin (firmware F10.19.010040 through before F10.22.030745) — CWE-306/434/78, CVSS 9.8 Critical. Attacker-controlled files may execute on the device. Fixed in firmware F10.22.030745.
- IoT / OTCVE-2026-88772critical
CVE-2026-88772 — Citrix NetScaler ADC/Gateway DTLS Memory Overflow (RCE/DoS)
Memory overflow in Citrix NetScaler ADC and NetScaler Gateway DTLS handling (UDP, typically 443) can lead to remote code execution or denial of service. DTLS is on by default for Gateway VPN virtual servers unless -dtls OFF. Fixed at 14.1-73.37+ and 13.1-64.23+; CTX697096 reports active exploitation of CVE-2026-88772 with sibling CVEs. CVSS 4.0 9.5 Critical. PoC fingerprints Gateway, compares build strings, optional benign DTLS probe — no overflow trigger.