CVE-2025-57632: libsmb2 6.2+ is vulnerable to Buffer Overflow
Affects libsmb2Source GCVE Database
Not known to be exploited · CVSS 7.5 High.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 48% 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
Weaponized: 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 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10libsmb2pkg:deb/ubuntu/libsmb2?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSlibsmb2pkg:deb/ubuntu/libsmb2?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10libsmb2pkg:deb/ubuntu/libsmb2?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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
- ubuntu.com/security/CVE-2025-57632 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-57632 (opens in a new tab)
- gist.github.com/ZjW1nd/0b95b63307ceee7890e88e4abc6f041e (opens in a new tab)
- github.com/sahlberg/libsmb2 (opens in a new tab)
- github.com/sahlberg/libsmb2/blob/master/lib/compat.c (opens in a new tab)