VYPR
High severity7.5OSV Advisory· Published Sep 25, 2025· Updated Apr 15, 2026

CVE-2025-57632

CVE-2025-57632

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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

2
  • Sahlberg/Libsmb2OSV2 versions
    libsmb2-1.0, libsmb2-6.0, libsmb2-6.1, …+ 1 more
    • (no CPE)range: libsmb2-1.0, libsmb2-6.0, libsmb2-6.1, …
    • (no CPE)range: >= 6.2

Patches

Vulnerability mechanics

References

3

News mentions

0

No linked articles in our index yet.