CVE-2025-57632 Details
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.
A buffer overflow vulnerability has been identified in libsmb2 versions 6.2 and later. The issue arises when the library processes SMB2 chained Protocol Data Units (PDUs) using the NextCommand feature. libsmb2 repeatedly invokes the smb2_add_iovector() function to add to a fixed-size I/O vector array, without properly checking the upper limit of the vector count. This oversight allows an attacker to craft responses with numerous chained PDUs, leading to an overflow of the vector count and enabling heap out-of-bounds writes. Such memory corruption can cause crashes and potentially allow for arbitrary code execution. Additionally, the vulnerability includes a denial-of-service aspect, as the memory corruption can lead to application crashes. The issue is exacerbated by the fact that the SMB2_OPLOCK_BREAK path bypasses message ID validation, further increasing the vulnerability's exploitability.
Users can update to libsmb2 version 6.2 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 25, 2025CISA-ADP
Assessed Sep 26, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-120 | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| sahlberg libsmb2 | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 5, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 14, 2026 | CVE Modified | [email protected] |
| Sep 26, 2025 | CVE Modified | CISA-ADP |
| Sep 25, 2025 | New CVE Received | [email protected] |
Volerion