CVE-2025-57632: Buffer Overflow
libsmb2 6.2+ is vulnerable to Buffer Overflow. When processing SMB2 chained PDUs (NextCommand), libsmb2 repeatedly calls smb2addiovector() to append to a fixed-size iovec array without checking the upper bound of v->niov (SMB2MAXVECTORS=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 SMB2OPLOCKBREAK path bypasses message ID validation.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-57632?
CVE-2025-57632 has been classified with high severity due to the potential exploitation of a buffer overflow vulnerability.
How do I fix CVE-2025-57632?
To fix CVE-2025-57632, update libsmb2 to the latest version that addresses this buffer overflow issue.
What systems are affected by CVE-2025-57632?
CVE-2025-57632 affects libsmb2 version 6.2 and above.
What type of vulnerability is CVE-2025-57632?
CVE-2025-57632 is a buffer overflow vulnerability that occurs when processing SMB2 chained PDUs.
Can CVE-2025-57632 be exploited remotely?
Yes, an attacker can remotely exploit CVE-2025-57632 by sending specially crafted responses that trigger the buffer overflow.