Repository navigation
Releases
Releases · ales-drnz/dart_smb2
libsmb2-r14
All platforms
- Built from upstream master of 20-11-2026: libsmb2 7.0.0, upstream's first release since 6.2, and the fixes after it. Upstream now carries the fixes of r12 and r13 that were sent to it from libsmb2-scripts.
- A server that negotiates a read size of 0 can no longer make a read write past the end of the caller's buffer.
- A signed compound reply that arrives over several reads of the socket has the signature of each of its parts checked.
- Closing a connection frees the files and directories still open on it: a client dropped without
disconnect()no longer leaks them. - A write reply that claims more bytes than were sent fails, instead of moving the offset past data that was never written.
- The read and write sizes a server negotiates are capped at 8 MiB, so a forged one no longer becomes the size of a buffer.
- A directory listing whose entries overlap fails, instead of filling memory with entries a few bytes apart.
- A path longer than a CREATE request can name fails, instead of opening the root of the share.
Built from ales-drnz/libsmb2-scripts@82eea33, tag libsmb2-r14.
libsmb2-r13
All platforms
- A server can no longer stop the app with oplock break notifications nobody asked for: libsmb2 acknowledged each one, and the reply to the acknowledgement made it call address 0. No memory was written.
- A reply that stops arriving after its header, during the connect too, fails with
timeoutinstead of keeping the call waiting for ever. A large reply that keeps arriving is not cut. - A connect whose session setup the server never completes fails after sixteen legs.
- After a reply that could not be parsed, closing the connection no longer runs the callbacks of the requests still queued on data freed long before.
- A call on a connection libsmb2 has closed fails at once with
connection, not after its timeout. - On SMB 3.1.1 a logon the server maps to guest reaches a share that allows guests: its TREE_CONNECT is no longer signed with a key the session does not have.
Built from ales-drnz/libsmb2-scripts@7cd91b7, tag libsmb2-r13.
libsmb2-r12
All platforms
- A read or write at the end of the file reports 0 bytes, never a field of the server's error reply.
- A read or write whose request cannot be built no longer leaks its call data.
unlinkandmkdirreport the first failure of their request, with its NT status.- A time the server does not keep, or one before 1970, is 0 instead of a date in the year 60056.
smb2_open2(), patched in, opens one file so that it can be renamed or removed while it is open.- Every library is built with a stack protector and
_FORTIFY_SOURCE=2.
Linux and Android
- The libraries are linked with full RELRO.
Built from ales-drnz/libsmb2-scripts@68c6c65, tag libsmb2-r12.
libsmb2-r11
All platforms
- libsmb2 is upstream master of 7-11-2026 (a52c157).
- A zero-length read or write no longer fails.
- A copychunk error reply is read in the format the server sent it.
- Lease and oplock breaks and their acknowledgements are encoded and decoded right.
- Signing and encryption go through OpenSSL 3.5's libcrypto, linked in statically.
- A sealed session on SMB 3.1.1 uses AES-256-GCM or AES-128-GCM, as the server picks, instead of AES-128-CCM.
- Each library carries libcrypto, and is five to thirteen times larger.
smb2_rename2(), patched in, lets a rename replace an existing file.smb2_scripts_release(), patched in, returns the release the library was built as.
Windows
- A directory can be opened as a handle, which a watch needs.
Built from ales-drnz/libsmb2-scripts@7b6639b, tag libsmb2-r11.
libsmb2-r10
All platforms
- A request on an encrypted session is never sent in the clear.
- A reply longer than the read asked for, or for another command, is refused.
- The NTLM logon no longer sends uninitialised memory to the server.
Android
- A logon with a password and no user no longer reads out of bounds on
armeabi-v7a.
Built from ales-drnz/libsmb2-scripts@eca28a3, tag libsmb2-r10.
libsmb2-r9
- libsmb2 is upstream master of 11-10-2026 (e94eee9), which hardens the handling of signed and encrypted replies.
stattells a symbolic link from other reparse points, such as cloud files, which it used to report as links.rmdirandunlinkcheck what they remove,truncaterefuses a directory, and a request that times out before it is sent fails withtimeoutinstead of hanging.- Pools that connect and disconnect at once no longer race on libsmb2's context list.
- The Linux libraries need glibc 2.25 or later instead of 2.38, and every library is stripped and exports libsmb2's API only.
- Each release carries
manifest.json,SHA256SUMSand the LGPL texts. - Updated binaries to
libsmb2-r9across all platforms.
libsmb2-r8
- Opening a file or listing a directory on a share that stopped answering no longer kills the app with a native abort, which Dart cannot catch. The call now throws
Smb2ExceptionwithSmb2ErrorType.timeoutoncetimeoutSecondselapses, andSmb2Poolreconnects as it does for any other connection error. - Every file open no longer leaks a few bytes of native memory.
- Updated binaries to
libsmb2-r8across all platforms.
libsmb2-r7
- Rebased the bundled libsmb2 to upstream master 2026-08-14, picking up the August 2026 security hardening series.
- Share enumeration now uses upstream's rewritten minimal DCE/RPC; the previous code's unaligned accesses were the prime suspect for the arm32 crash in #2.
- Updated binaries to
libsmb2-r7across all platforms and regenerated the ffigen bindings against the r7 headers. - The
libsmb2-scriptsbuild infrastructure is now public and patch-based — the corresponding source for the LGPL-2.1 libsmb2 binaries (#2).
libsmb2-r6
- Patched libsmb2 with a new
smb2_utimes/smb2_utimes_asyncAPI (compound CREATE + SET_INFOFILE_BASIC_INFORMATION+ CLOSE, modeled onsmb2_truncate). Timestamps travel as fixed-width microseconds-since-epoch scalars, so the FFI ABI is identical on every platform including 32-bit Android. - Updated binaries to
libsmb2-r6across all platforms.
libsmb2-r5
- Improvements to Swift Package Manager on both iOS and macOS.
- iOS and macOS now ship a dynamic xcframework.
- Bumped minimum deployment targets to iOS
15.0and macOS12.0. - Added Android
armeabi-v7a(32-bit ARM), Linuxaarch64and Windowsarm64binaries. - Updated libs to
libsmb2-r5across all platforms.