CVE-2025-57632 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....
HighCVSS 7.5
EPSS 0.58%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
4 packages: 2 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/libsmb2(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libsmb2(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/libsmb2(Debian 13) | < 6.2+dfsg-2+deb13u1; = 6.2+dfsg-2 | 6.2+dfsg-2+deb13u1 | Fixed |
| debian/libsmb2(Debian 14) | < 6.2+dfsg-3; = 6.2+dfsg-2 | 6.2+dfsg-3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libsmb2(Debian:13) | < 6.2+dfsg-2+deb13u1 | 6.2+dfsg-2+deb13u1 |
| debian/libsmb2(Debian:13) | = 6.2+dfsg-2 | No fix listed |
| debian/libsmb2(Debian:14) | < 6.2+dfsg-3 | 6.2+dfsg-3 |
| debian/libsmb2(Debian:14) | = 6.2+dfsg-2 | No fix listed |
| ubuntu/libsmb2(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libsmb2(Ubuntu:26.10) | All versions | No fix listed |
References
- Debian Security Tracker CVE-2025-57632 vendor-advisory
- github.com
- github.com
- gist.github.com
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking