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.
Metrics
Affected Vendors & Products
References
History
Fri, 26 Sep 2025 21:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Weaknesses | CWE-120 | |
Metrics |
cvssV3_1
|
Thu, 25 Sep 2025 20:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
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 |
|

Status: PUBLISHED
Assigner: mitre
Published: 2025-09-25T00:00:00.000Z
Updated: 2025-09-26T20:14:32.816Z
Reserved: 2025-08-17T00:00:00.000Z
Link: CVE-2025-57632

Updated: 2025-09-26T20:14:22.037Z

Status : Awaiting Analysis
Published: 2025-09-25T20:15:35.237
Modified: 2025-09-26T21:15:37.017
Link: CVE-2025-57632

No data.