// Güvenlik

Exploit code released for L2TP vulnerability in D-Link routers

A one-byte memory overflow vulnerability has been found in the L2TP control channel parser of the D-Link DIR-895L router. The trigger steps and PoC are publicly available, and there is no patch advisory from the manufacturer.

In D-Link’s DIR-895L model home router, an out-of-bounds memory write vulnerability was found in the code handling the L2TP control channel. The vulnerability was recorded as CVE-2026-100740; it was announced by researcher tzh00203 on September 26 and entered the NVD database on September 27. A PoC showing how the vulnerability is triggered was also shared publicly.

Where exactly is the vulnerability?

The flaw is in the pppd.alpha component in the router’s GPL source package, in the tunnel_set_params() function in the l2tp/tunnel.c file. The function copies the Host Name AVP in the L2TP control packet into the 128-byte peer_hostname buffer. The code truncates the incoming data length to 127 bytes but writes the terminating byte at position len+1. When the length is 127, this means writing one byte past the buffer (CWE-787).

The same bug pattern is present in both the IPv4 and IPv6 L2TP parsers (the l2tp and l2tp_ipv6 directories), meaning both code paths are affected. The affected software is firmware version A1_102b07 for DIR-895L A1 hardware. The researcher notes that other software compiled from the same code may also be affected.

What is needed to trigger it?

For the vulnerability to be exploitable, the router’s WAN connection must be configured as L2TP or L2TPv6. It is enough for the attacker to control the upstream L2TP server or be able to spoof the traffic in between. The overflow occurs when a valid control packet carrying a 127-byte Host Name AVP is sent while the tunnel is being established.

Its consequences include remote crash and tunnel instability. According to the researcher’s report, the memory corruption may also pave the way for further exploitation attempts depending on the device’s protection mechanisms.

Scores and patch status

VulDB’s CVSS 3.1 base score is 9.9 (critical), while its CVSS 4.0 equivalent is 8.6 (high). The source publication does not include information about a fix or mitigation for the vulnerability; VulDB recommends replacing the affected device. There is also no patch advisory published by D-Link.

What should users do?

The simplest protection is to use the device with a WAN protocol other than L2TP; in that case, the vulnerable code path never runs. If L2TP is mandatory, you should avoid connecting to untrusted servers and prevent interception of tunnel traffic. Since the vulnerability has not been patched and the model is old, replacing the device should also be considered. It should be remembered that other D-Link models sharing the same source code may also be affected.

Source: VulDB · NVD

// JOIN THE CONVERSATION

Share your experience

Bir sorunun, farklı bir çözümün veya eklemek istediğin bir notun var mı? Giriş yapmadan da yazabilirsin.

// KEEP READING

One more note.

All posts ↗︎