p PatchFirst

CVE-2025-57632

CVE-2025-57632

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 7.5 · High · EPSS 0.6% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

  • libsmb2 Debian:13

    Versions
    • 6.2+dfsg-2
    Affected ranges
    • ECOSYSTEM: < 6.2+dfsg-2+deb13u1

    Update to 6.2+dfsg-2+deb13u1

  • libsmb2 Debian:14

    Versions
    • 6.2+dfsg-2
    Affected ranges
    • ECOSYSTEM: < 6.2+dfsg-3

    Update to 6.2+dfsg-3

  • libsmb2 Ubuntu:25.10

    Versions
    • 6.2+dfsg-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libsmb2 Ubuntu:26.10

    Versions
    • 6.2+dfsg-3
    • 6.2+dfsg-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • libsmb2 Ubuntu:26.04:LTS

    Versions
    • 6.2+dfsg-2
    • 6.2+dfsg-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →