CVE-2026-67277: Authentication Bypass and Integer Underflow in MikroTik RouterOS Bandwidth-Test Service (Kernel Memory Leak & DoS)
HERMES THREAT SCORE & SERVICE AVAILABILITY / CONFIDENTIALITY RISK
Target:MikroTik RouterOS - Bandwidth Test (btest) Service (TCP/UDP Port 2000) 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.
CVE-2026-67277: MikroTik RouterOS Bandwidth-Test Auth Bypass & Kernel Memory Leak / DoSVULNERABILITY
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.”
- [cert_confirmation]CISA and MikroTik confirmed CVE-2026-67277 enables remote kernel memory disclosure and DoS via btest service. — Source: CISA / MikroTik Security: CISA KEV & MikroTik Advisory: RouterOS Bandwidth-Test Vulnerability (CVE-2026-67277) (Reliability: 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.”
- [vulnerability_report]
- [government_confirmation]CISA verified active exploitation in the wild and mandated federal remediation deadline in KEV entry. — Source: Cybersecurity & Infrastructure Security Agency (CISA): CISA Adds CVE-2026-59822 to Known Exploited Vulnerabilities Catalog (Reliability: VERY_HIGH)
1. Technical Context & Affected Software Matrix
Section titled โ1. Technical Context & Affected Software MatrixโThe bandwidth-server tool is widely deployed across enterprise perimeter routers, WISP relays, and data centers.
| Parameter | Technical Specification | Operational Impact |
|---|---|---|
| CVE Identifier | CVE-2026-67277 | International tracking ID & CISA KEV listing |
| Vendor / Platform | MikroTik / RouterOS | Operating system on RouterBOARD & x86 architectures |
| Vulnerable Service | bandwidth-server (btest) | TCP/UDP throughput test utility |
| Network Layer | Port 2000/TCP and 2000/UDP | Default listening service |
| Core Impact | Kernel Memory Leak (CWE-200) & System DoS (CWE-400) | Forced reboot or kernel RAM data extraction |
| Affected Versions (v6) | Branch Long-term v6 < 6.49.21 | Legacy infrastructure routers |
| Affected Versions (v7) | Branch Long-term v7 < 7.23.4; Branch Stable < 7.24.2 | Current enterprise production deployments |
| Patched Versions | 6.49.21 (v6), 7.23.4 (v7), 7.24.2 (v7), 7.25beta3 | Official vendor patches from September 3, 2026 |
| CISA KEV Status | Added 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:
- A control session on port 2000 (authentication and test parameters: protocol, packet sizes, duration, random data toggle).
- 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!1. Missing Authentication for Related Data Channels (CWE-306)
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 = 1500andmax_packet_size = 64, the kernel driver performs64 - 1500. - In 32-bit unsigned arithmetic (
uint32_t), this wraps around to4,294,965,860. - Depending on architecture memory limits and buffer layout:
- Kernel Memory Disclosure: The system attempts to transmit oversized frame chunks without zeroing memory, streaming uninitialized kernel memory fragments to the attacker.
- 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โCISA KEV Listing on September 10, 2026
Section titled โCISA KEV Listing on September 10, 2026โUnder Binding Operational Directive (BOD) 26-04, CISA mandated that all federal civilian executive branch agencies remediate CVE-2026-67277 by October 1, 2026.
Real-World Attack Patterns
Section titled โReal-World Attack Patternsโ- 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.
- 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?โโ1. Perimeter Communications Blackout
Section titled โ1. Perimeter Communications Blackoutโ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.
2. BGP Route Flapping & Carrier Penalties
Section titled โ2. BGP Route Flapping & Carrier Penaltiesโ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.
3. Exposure of In-Flight Cryptographic Secrets
Section titled โ3. Exposure of In-Flight Cryptographic SecretsโAttackers extracting uninitialized kernel packet buffers may recover sensitive credentials, API tokens, or pre-shared keys traversing the device.
5. Threat Hunting, Detection & Forensic Investigation
Section titled โ5. Threat Hunting, Detection & Forensic InvestigationโIdentifying Exploit Symptoms in RouterOS
Section titled โIdentifying Exploit Symptoms in RouterOSโA device subjected to CVE-2026-67277 crashes exhibits characteristic watchdog reboot logs:
Execute the following commands in the RouterOS CLI:
# 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-crashstatus: experimentaldescription: Detects unexpected router reboots caused by watchdog kernel panics correlated with exposed Bandwidth-Test service activity.author: Hermes Codex CTIdate: 2026-09-11references: - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-67277tags: - attack.impact - attack.t1499 - attack.t1190logsource: product: routeros service: system_logdetection: 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_auditfalsepositives: - Physical power loss eventslevel: highSuricata / Snort Rule: btest Integer Underflow Probe
Section titled โSuricata / Snort Rule: btest Integer Underflow Probeโ# 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;)6. MITRE ATT&CK Mapping
Section titled โ6. MITRE ATT&CK Mappingโ| Tactical Phase | MITRE ID | Technique / Sub-technique | Role in Attack |
|---|---|---|---|
| Initial Access | T1190 | Exploit Public-Facing Application | Targeting btest daemon on TCP/UDP port 2000 |
| Discovery | T1040 | Network Sniffing / Memory Disclosure | Extracting uninitialized kernel memory remnants |
| Impact | T1499.004 | Endpoint Denial of Service: Application or System Exploitation | Triggering kernel panic and continuous device reboot loops |
| Impact | T1498 | Network Denial of Service | Disrupting all enterprise edge transit traffic |
7. Comprehensive Remediation & Hardening Guide
Section titled โ7. Comprehensive Remediation & Hardening Guideโ1. Apply Official Firmware Updates
Section titled โ1. Apply Official Firmware Updatesโ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)
/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.
2. Immediate Workaround: Disable Bandwidth-Server
Section titled โ2. Immediate Workaround: Disable Bandwidth-ServerโIn production networks, the bandwidth-test server should never remain enabled by default:
# Disable the Bandwidth-Test server immediately/tool bandwidth-server set enabled=noVerify that enabled reports no:
/tool bandwidth-server print3. Perimeter Firewall Drop Rules
Section titled โ3. Perimeter Firewall Drop RulesโIf internal testing requires the service, strictly block port 2000 on WAN interfaces:
# 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"