Skip to main content
VulnerabilityPublished Updated

CVE-2025-57632: libsmb2 · Classic Buffer Overflow

Source CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

  1. Immediately audit and inventory all systems and devices using libsmb2 version 6.2 or later to identify vulnerable instances.
  2. Restrict SMB2 traffic exposure by implementing network segmentation and firewall rules to limit access to SMB2 services only to trusted internal networks.
  3. Monitor network traffic for abnormal SMB2 chained PDU patterns or unusually large numbers of chained PDUs that could indicate exploitation attempts.
  4. Employ intrusion detection/prevention systems (IDS/IPS) with updated signatures or heuristics to detect malformed SMB2 packets targeting this vulnerability.
  5. Disable or limit SMB2 protocol usage on endpoints and servers where feasible, or enforce SMB signing and encryption to reduce attack surface.
  6. Engage with vendors and open-source communities for timely patches or workarounds; apply updates promptly once available.
  7. Consider deploying application-level sandboxing or process isolation for services using libsmb2 to contain potential crashes or code execution.
  8. Educate network and security teams about this vulnerability to enhance incident response readiness.
  9. 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.

References

Community reviews

Loading reviews…