Skip to content

CVE-2026-67277: Authentication Bypass and Integer Underflow in MikroTik RouterOS Bandwidth-Test Service (Kernel Memory Leak & DoS)

HERMES

HERMES THREAT SCORE & SERVICE AVAILABILITY / CONFIDENTIALITY RISK

Target: MikroTik RouterOS - Bandwidth Test (btest) Service (TCP/UDP Port 2000)
Confidence: 98%
88 / 100
HIGH

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 19 / 20
Threat Activity 17 / 20
Weaponization 18 / 20
Exposure 19 / 20
Prevalence 18 / 20
Impact 17 / 20
Exploit Maturity 18 / 20
Attack Chain Potential 16 / 20
βš–οΈ Divergence & Operational Rationale

CVSS v3.1 rates CVE-2026-67277 at 8.8 (High) and CVSS v4.0 at 8.7 (High). The Hermes Threat Score assigns it 88 (HIGH). The vulnerability impacts the proprietary bandwidth measurement service (btest on port 2000), frequently left open to the internet by network engineers to test link saturation. An unauthenticated remote attacker can force an immediate Linux kernel panic causing endless reboot loops (Denial of Service), or compel the daemon to transmit raw uninitialized kernel packet memory, exposing cryptographic keys, authentication tokens, and transient cross-client network packets.

πŸ•ΈοΈ Connected Knowledge Graph & Provenance

CVE-2026-67277: MikroTik RouterOS Bandwidth-Test Auth Bypass & Kernel Memory Leak / DoSVULNERABILITY

Connected Nodes: 2
Active Relationships (Outgoing)
→ affectsPRODUCTMikroTik RouterOS
99% VERY_HIGH

Network operating system developed by MikroTik providing routing, firewall, VPN, and bandwidth-testing services on edge and core network devices.

πŸ” Why is this related? (Evidence & Provenance)

“Missing authentication and integer underflow in bandwidth-test (btest) service on RouterOS.”

Supporting Verified Evidence:
→ affectsPRODUCTFortinet FortiOS Gateway
98% VERY_HIGH

Software platform affected by security vulnerabilities and agentic attack patterns.

πŸ” Why is this related? (Evidence & Provenance)

“Confirmed security vulnerability in Fortinet FortiOS Gateway documented in Hermes dossier.”

Supporting Verified Evidence:

The bandwidth-server tool is widely deployed across enterprise perimeter routers, WISP relays, and data centers.

ParameterTechnical SpecificationOperational Impact
CVE IdentifierCVE-2026-67277International tracking ID & CISA KEV listing
Vendor / PlatformMikroTik / RouterOSOperating system on RouterBOARD & x86 architectures
Vulnerable Servicebandwidth-server (btest)TCP/UDP throughput test utility
Network LayerPort 2000/TCP and 2000/UDPDefault listening service
Core ImpactKernel Memory Leak (CWE-200) & System DoS (CWE-400)Forced reboot or kernel RAM data extraction
Affected Versions (v6)Branch Long-term v6 < 6.49.21Legacy infrastructure routers
Affected Versions (v7)Branch Long-term v7 < 7.23.4; Branch Stable < 7.24.2Current enterprise production deployments
Patched Versions6.49.21 (v6), 7.23.4 (v7), 7.24.2 (v7), 7.25beta3Official vendor patches from September 3, 2026
CISA KEV StatusAdded on September 10, 2026 (BOD 26-04)Actively leveraged in the wild

2. In-Depth Technical Decomposition: Anatomy of the btest Flaw

Section titled β€œ2. In-Depth Technical Decomposition: Anatomy of the btest Flaw”

MikroTik’s proprietary bandwidth-test protocol relies on two channels:

  1. A control session on port 2000 (authentication and test parameters: protocol, packet sizes, duration, random data toggle).
  2. A related data stream that pumps UDP/TCP datagrams to evaluate link capacity.
+---------------------------------------------------------------------------------------------------------+
| MECHANICS OF THE BTEST EXPLOITATION (CVE-2026-67277) |
+---------------------------------------------------------------------------------------------------------+
[Attacker Machine] [Target MikroTik RouterOS]
IP: 198.51.100.42 IP: 203.0.113.1
Port UDP 2000 (btest enabled)
β”‚ β”‚
[1] │───── UDP btest packet marked as "related" stream ────────────────────>β”‚ CWE-306 Flaw:
β”‚ (No authentication completed on primary control session) β”‚ Accepts related test data
β”‚ β”‚ without verifying parent auth!
β”‚ β”‚
[2] │───── Inverted Packet Range Payload: ─────────────────────────────────>β”‚
β”‚ - random-data = false β”‚
β”‚ - min_packet_size = 1500 β”‚
β”‚ - max_packet_size = 64 (Inverted bounds!) β”‚
β”‚ β”‚
[3] β”‚ β”‚ Kernel Buffer Calculation:
β”‚ β”‚ delta = (max_packet_size - min_packet_size)
β”‚ β”‚ delta = (64 - 1500) = -1436
β”‚ β”‚ Unsigned uint32 Underflow (CWE-191):
β”‚ β”‚ delta = 0xFFFFFA64 (4,294,965,860 bytes)!
β”‚ β”‚
[4] β”‚ β”‚ Path A: Kernel Memory Leak (CWE-200)
β”‚<════ Receives packets packed with raw uninitialized RAM fragments ═══│ Sends uninitialized kernel buffers
β”‚ β”‚ (session keys, tokens, transit data)
β”‚ β”‚
β”‚ β”‚ Path B: Kernel Panic DoS (CWE-400)
β”‚ β”‚ Out-of-bounds page fault triggered
β”‚ β”‚ [KERNEL PANIC] & Forced Device Reboot!
Section titled β€œ1. Missing Authentication for Related Data Channels (CWE-306)”

When UDP datagrams tagged as an active β€œrelated” test stream arrive on port 2000, RouterOS initializes internal connection structures and begins processing without confirming that the control session completed authentication.

2. Unsigned Integer Underflow (CWE-191) & Memory Disclosure (CWE-200)

Section titled β€œ2. Unsigned Integer Underflow (CWE-191) & Memory Disclosure (CWE-200)”

When random-data=false is selected, the buffer allocation logic calculates packet sizing by subtracting minimum size from maximum size:

  • If an adversary submits min_packet_size = 1500 and max_packet_size = 64, the kernel driver performs 64 - 1500.
  • In 32-bit unsigned arithmetic (uint32_t), this wraps around to 4,294,965,860.
  • Depending on architecture memory limits and buffer layout:
    1. Kernel Memory Disclosure: The system attempts to transmit oversized frame chunks without zeroing memory, streaming uninitialized kernel memory fragments to the attacker.
    2. Denial of Service (Kernel Panic): The copy loop touches unmapped physical memory pages, triggering a kernel page fault that immediately panics the Linux kernel and reboots the router.

3. Threat Intelligence, Threat Actors & Active Exploitation

Section titled β€œ3. Threat Intelligence, Threat Actors & Active Exploitation”

Under Binding Operational Directive (BOD) 26-04, CISA mandated that all federal civilian executive branch agencies remediate CVE-2026-67277 by October 1, 2026.

  1. Zero-Cost Asymmetric Denial of Service:
    • Traditional DDoS requires massive botnet bandwidth. In contrast, a single crafted UDP packet sent to port 2000 immediately reboots an enterprise boundary router.
    • Attackers automate scripts sending a single packet every 90 seconds, inducing a permanent reboot loop with near-zero network footprint.
  2. Reconnaissance & Memory Harvesting:
    • Espionage actors leverage the information leak to recover session keys and plaintext data from packet buffers prior to IPsec/WireGuard encryption.

4. Doctrinal Principle: β€œWhat happens if this vulnerability is exploited in an enterprise?β€œ

Section titled β€œ4. Doctrinal Principle: β€œWhat happens if this vulnerability is exploited in an enterprise?β€œβ€

The enterprise’s primary internet and WAN connections drop instantly:

  • All outbound cloud access and SaaS tools (Salesforce, Microsoft 365, AWS) fail.
  • Site-to-site IPsec and WireGuard tunnels between corporate branches collapse.
  • Corporate SIP/VoIP communications and remote worker VPNs are severed.

For organizations managing their own Autonomous System (ASN):

  • Repeated router crashes trigger BGP session flapping with upstream Tier-1 ISPs.
  • Upstream transit providers apply Route Flap Damping, suppressing the enterprise’s IP prefixes for several hours even after the attack ceases.

Attackers extracting uninitialized kernel packet buffers may recover sensitive credentials, API tokens, or pre-shared keys traversing the device.


A device subjected to CVE-2026-67277 crashes exhibits characteristic watchdog reboot logs:

Execute the following commands in the RouterOS CLI:

Terminal window
# 1. Verify bandwidth-server operational state
/tool bandwidth-server print
# 2. Inspect system reboot triggers
/log print where topics~"system" or topics~"critical"
# 3. Check for crash dump files
/file print where name~"autosupout" or name~"crash"

If logs show: system,critical router was rebooted without proper shutdown by watchdog or kernel failure, correlated with prior UDP 2000 traffic, the device was targeted.


Sigma Rule: MikroTik RouterOS btest Service Exploitation Crash

Section titled β€œSigma Rule: MikroTik RouterOS btest Service Exploitation Crash”
title: MikroTik RouterOS Kernel Crash via btest Exploitation (CVE-2026-67277)
id: 67277-mikrotik-btest-crash
status: experimental
description: Detects unexpected router reboots caused by watchdog kernel panics correlated with exposed Bandwidth-Test service activity.
author: Hermes Codex CTI
date: 2026-09-11
references:
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-67277
tags:
- attack.impact
- attack.t1499
- attack.t1190
logsource:
product: routeros
service: system_log
detection:
selection_crash:
topics|contains: 'critical'
message|contains:
- 'rebooted without proper shutdown'
- 'kernel failure'
- 'watchdog'
selection_btest_audit:
topics|contains: 'btest'
condition: selection_crash or selection_btest_audit
falsepositives:
- Physical power loss events
level: high

# Detects inverted packet range probe targeting MikroTik btest on port 2000/UDP (CVE-2026-67277)
alert udp any any -> any 2000 (msg:"HERMES CODEX - MikroTik RouterOS btest Integer Underflow Denial of Service Probe (CVE-2026-67277)"; flow:to_server; content:"|01 00 00|"; depth:3; reference:cve,2026-67277; reference:url,cisa.gov/known-exploited-vulnerabilities-catalog; classtype:denial-of-service; sid:202667277; rev:1;)

Tactical PhaseMITRE IDTechnique / Sub-techniqueRole in Attack
Initial AccessT1190Exploit Public-Facing ApplicationTargeting btest daemon on TCP/UDP port 2000
DiscoveryT1040Network Sniffing / Memory DisclosureExtracting uninitialized kernel memory remnants
ImpactT1499.004Endpoint Denial of Service: Application or System ExploitationTriggering kernel panic and continuous device reboot loops
ImpactT1498Network Denial of ServiceDisrupting all enterprise edge transit traffic

Upgrade RouterOS to one of the patched releases:

  • v6 Long-term Branch: Version 6.49.21 (or later)
  • v7 Long-term Branch: Version 7.23.4 (or later)
  • v7 Stable Branch: Version 7.24.2 (or later)
  • v7 Testing Branch: Version 7.25beta3 (or later)
Terminal window
/system package update set channel=stable
/system package update check-for-updates
/system package update download
/system reboot

[!IMPORTANT] Reboot Required: YES. Firmware updates require a device restart (/system reboot) to apply kernel fixes.

In production networks, the bandwidth-test server should never remain enabled by default:

Terminal window
# Disable the Bandwidth-Test server immediately
/tool bandwidth-server set enabled=no

Verify that enabled reports no:

Terminal window
/tool bandwidth-server print

If internal testing requires the service, strictly block port 2000 on WAN interfaces:

Terminal window
# Drop port 2000 TCP and UDP from the internet
/ip firewall filter add chain=input protocol=tcp dst-port=2000 in-interface-list=WAN action=drop comment="BLOCK-BTEST-WAN-CVE-2026-67277"
/ip firewall filter add chain=input protocol=udp dst-port=2000 in-interface-list=WAN action=drop comment="BLOCK-BTEST-WAN-CVE-2026-67277"