ZeroHour

CVE-2026-89028

large

Integer Underflow Heap Corruption in MikroTik RouterOS SMB Server (< 7.24)

CVSS 4.0
8.2 high
EPSS
Published
()
Modified
AI analysis

MikroTik RouterOS versions before 7.24 ship a userspace SMB server whose SMB1 SessionSetupAndX handler fails to validate the uniPwdLen field: a crafted value triggers an integer underflow (CWE-191) and the resulting length is used to copy data into a smaller heap buffer, corrupting adjacent heap memory (CWE-122). Any unauthenticated remote attacker who can reach the SMB service can trigger the flaw with a single malformed SMB1 request, with no credentials or user interaction required. The scored impact is high availability loss — the heap corruption can crash the SMB daemon/service — while confidentiality and integrity impacts were not demonstrated; heap corruption can in principle enable deeper exploitation, but no such exploit is documented. All RouterOS deployments older than 7.24 carry the flaw, but only devices with the SMB server enabled and network-reachable are exploitable in practice (the CVSS 'high attack requirements' metric reflects that the service is not enabled in default configurations). The vulnerability is not in CISA's KEV catalog, no public proof-of-concept is known, and no exploitation has been reported to date.

What to do: Upgrade all RouterOS devices to version 7.24 or later. Where immediate upgrade is not possible, disable the SMB server (/ip smb set enabled=no) and ensure TCP 445 is filtered on WAN-facing interfaces, since exploitation requires network reachability to the SMB service. Audit deployments for enabled SMB and internet-exposed port 445, and watch for SMB daemon crashes as a potential indicator of targeting.

Affected
MikroTik RouterOSall versions before 7.24 (userspace SMB server component; exploitable only where the SMB service is enabled and reachable)
Estimated exposure
largetens of thousands of internet-exposed RouterOS devices (est.) — MikroTik's RouterOS installed base is in the millions and public internet scans routinely show hundreds of thousands of MikroTik devices online, but the SMB server is disabled in default configurations, so only the minority that enable it…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

MikroTik RouterOS before 7.24 contains a heap memory corruption vulnerability in the userspace SMB daemon that allows remote attackers to corrupt adjacent heap memory by supplying a crafted uniPwdLen value in the SMB1 SessionSetupAndX handler. An attacker can send a malformed SMB1 request with a uniPwdLen field that triggers an integer underflow, causing the resulting value to be used as the copy length in a memory copy operation into a smaller heap buffer, corrupting adjacent heap memory.

Weakness
CWE-122, CWE-191
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.