# CVE-2025-57632: libsmb2 6.2+ is vulnerable to Buffer Overflow.

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2025-09-25T00:00:00.000Z
- Modified: 2026-11-05T23:10:00.150Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://github.com/sahlberg/libsmb2>
- <https://github.com/sahlberg/libsmb2/blob/master/lib/compat.c#L569>
- <https://gist.github.com/ZjW1nd/0b95b63307ceee7890e88e4abc6f041e>
- <https://github.com/sahlberg/libsmb2/commit/5e75eebf922b338cdb548d60cffb3b997d2a12e8>

## Sources

- CVE List: [CVE-2025-57632](https://www.cve.org/CVERecord?id=CVE-2025-57632), CVE Terms of Use, modified 2026-01-14
- NVD: [CVE-2025-57632](https://nvd.nist.gov/vuln/detail/CVE-2025-57632), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-57632 · Whole record: https://cve.day/CVE-2025-57632.json · Rebuilt by cve.day 2026-11-25T22:59:05.191Z
