CVE-2025-57632: libsmb2 · Classic Buffer Overflow
Source CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 47% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 25 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
- Immediately audit and inventory all systems and devices using libsmb2 version 6.2 or later to identify vulnerable instances.
- Restrict SMB2 traffic exposure by implementing network segmentation and firewall rules to limit access to SMB2 services only to trusted internal networks.
- Monitor network traffic for abnormal SMB2 chained PDU patterns or unusually large numbers of chained PDUs that could indicate exploitation attempts.
- Employ intrusion detection/prevention systems (IDS/IPS) with updated signatures or heuristics to detect malformed SMB2 packets targeting this vulnerability.
- Disable or limit SMB2 protocol usage on endpoints and servers where feasible, or enforce SMB signing and encryption to reduce attack surface.
- Engage with vendors and open-source communities for timely patches or workarounds; apply updates promptly once available.
- Consider deploying application-level sandboxing or process isolation for services using libsmb2 to contain potential crashes or code execution.
- Educate network and security teams about this vulnerability to enhance incident response readiness.
- For critical systems, implement additional monitoring of process crashes and memory anomalies related to libsmb2 components.
Description
libsmb2 6.2+ is vulnerable to Buffer Overflow. When processing SMB2 chained PDUs (NextCommand), libsmb2 repeatedly calls smb2_add_iovector() to append to a fixed-size iovec array without checking the upper bound of v->niov (SMB2_MAX_VECTORS=256). An attacker can craft responses with many chained PDUs to overflow v->niov and perform heap out-of-bounds writes, causing memory corruption, crashes, and potentially arbitrary code execution. The SMB2_OPLOCK_BREAK path bypasses message ID validation.