SECURITYCRITICALCVE-2026-100740

D-Link DIR-895L L2TP Parser Out-of-Bounds Write (CVE-2026-100740)

A CVSS 9.9 pre-auth out-of-bounds write in D-Link DIR-895L's L2TP control-channel parser has a public PoC and no vendor patch.

Dylan H.

Security Team

September 27, 2026
5 min read
D-Link DIR-895L L2TP Parser Out-of-Bounds Write (CVE-2026-100740)

Critical severity

Rated critical. Prioritise patching — see the remediation guidance below.

Affected Products

  • D-Link DIR-895L firmware A1_102b07

Executive Summary

A critical out-of-bounds write vulnerability (CVE-2026-100740) has been disclosed in the D-Link DIR-895L wireless router, affecting firmware version A1_102b07. The flaw lives in tunnel_set_params() in tunnel.c, part of the device's L2TP Control Channel Parser. The function fails to properly bound a Host Name AVP (Attribute-Value Pair) before copying it into a fixed-size buffer, and a public proof-of-concept exploit is already available.

CVSS Score: 9.9 (Critical) CWE: CWE-787 (Out-of-Bounds Write)


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-100740
CVSS Score9.9 (Critical)
TypeOut-of-Bounds Write (CWE-787)
ComponentL2TP Control Channel Parser (tunnel.c)
Affected Functiontunnel_set_params
Attack VectorNetwork (UDP/1701)
Privileges RequiredNone
User InteractionNone
FirmwareD-Link DIR-895L A1_102b07
Public ExploitYes
Published2026-09-27
Vendor PatchNone available at time of writing

Affected Products

ProductFirmware VersionStatus
D-Link DIR-895LA1_102b07Vulnerable

The DIR-895L is a high-end AC5300 tri-band router that D-Link no longer actively maintains under a current security-support cycle, which raises the likelihood that this flaw will go unpatched.


Technical Details

Root Cause

The parser clamps the incoming Host Name AVP length to 127 bytes but then writes a NUL terminator at peer_hostname[len+1] into a buffer that is only 128 bytes long. When the clamped length reaches its maximum, the terminator write lands one byte past the end of the buffer, corrupting adjacent memory. Because the check that clamps the length runs before the terminator is written — rather than accounting for the terminator's own space — the off-by-one slips through on every maximally-sized hostname.

Attack Chain

1. Attacker crafts a malicious L2TP control message (or spoofs/hijacks
   an upstream L2TP peer, e.g. an ISP-facing WAN link) containing a
   Host Name AVP at or near the 127-byte clamp boundary
 
2. tunnel_set_params() in tunnel.c copies the AVP into peer_hostname[128]
 
3. The NUL terminator is written at peer_hostname[len+1], one byte
   beyond the buffer when len is clamped to its maximum
 
4. Adjacent heap/stack memory is corrupted (out-of-bounds write)
 
5. Depending on memory layout, this yields denial-of-service (crash)
   or, when chained with further memory-layout manipulation, potential
   arbitrary code execution

The publicly available PoC (murrez/CVE-2026-100740) demonstrates the memory-corruption primitive but — per independent analysis — does not ship a complete remote code execution chain. Treat the flaw as a confirmed crash/DoS primitive with a credible path to RCE, not yet a turnkey exploit.

Why CVSS 9.9?

The vector reflects no authentication, no user interaction, and network-level reachability over L2TP (UDP/1701) — a protocol the DIR-895L can process as a WAN-side L2TP client to an ISP tunnel server, meaning a malicious or spoofed peer upstream of the router can potentially trigger it without the victim taking any action.


Impact Assessment

Impact AreaDescription
AvailabilityOut-of-bounds write can crash the L2TP tunnel process, disrupting WAN connectivity
Potential RCEMemory corruption in a network-facing parser is a classic precursor to remote code execution with further exploit development
Network PivotingA compromised router provides a foothold into every device on the LAN
Botnet RecruitmentUnpatched, internet-reachable D-Link routers are a recurring target for IoT botnet recruitment
Patch UncertaintyD-Link's support posture for the DIR-895L increases the risk this CVE never receives an official fix

Recommendations

Immediate Actions

  1. Disable WAN-side L2TP client functionality on the DIR-895L unless it is actively required for your ISP connection.
  2. Check D-Link's support portal for a firmware update addressing CVE-2026-100740; apply immediately if one is released.
  3. If no patch is available, place the device behind a separate router/firewall and restrict inbound UDP/1701 to only the trusted ISP tunnel endpoint.
  4. Monitor for firmware updates — given D-Link's mixed patching record on older high-end models, do not assume a fix is forthcoming.

Network-Level Mitigations

- Restrict UDP/1701 (L2TP) traffic to known-good, authenticated peers only
- Where the router is not used as an L2TP client, disable the
  L2TP tunnel feature entirely in the admin interface
- Deploy IDS/IPS signatures for oversized or malformed L2TP
  Host Name AVPs
- Monitor for unexpected router reboots or L2TP service crashes,
  which may indicate exploitation attempts

End-of-Life Considerations

If D-Link does not release a fix for firmware A1_102b07:

1. Replace the DIR-895L with a currently supported router
2. Use an upstream firewall/gateway to filter L2TP traffic
   reaching the device
3. Segment the router onto an isolated VLAN pending replacement

Detection Indicators

IndicatorDescription
Malformed L2TP control messages with maximal Host Name AVP lengthPotential exploitation attempt
Unexpected DIR-895L reboots or lost WAN connectivityPossible crash from a failed exploitation attempt
Anomalous L2TP peer IPs not matching your ISP's known tunnel endpointsPossible spoofed/malicious peer

References