Skip to content

fix: bump memmap2 to 0.9.11 (RUSTSEC-2026-0186) - #1771

Merged
Legend-Master merged 1 commit into
tauri-apps:devfrom
albatrossflyon-coder:fix/memmap2-rustsec
Jul 17, 2026
Merged

Legend-Master merged 1 commit into
tauri-apps:devfrom
albatrossflyon-coder:fix/memmap2-rustsec

Conversation

@albatrossflyon-coder

Copy link
Copy Markdown
Contributor

Fixes #1770

memmap2 was locked at 0.9.5, pulled in via winit (a dev-dependency of wry) → smithay-client-toolkit / sctk-adwaita (Linux Wayland window-decoration theming).

RUSTSEC-2026-0186: affected versions under-validated the offset/len parameters on Mmap::[unchecked_]advise_range(), MmapMut::[unchecked_]advise_range(), and MmapMut::flush[_async]_range(), allowing an out-of-bounds value to reach pointer::offset()/pointer::add() before being passed to the madvise/msync syscalls (or Windows equivalents). The invalid pointer is never dereferenced, but passing it to those syscalls is undefined behavior. Fixed upstream in memmap2 0.9.11.

Note this dependency chain is dev-dependency-only (Linux/Wayland decoration theming for wry's own examples), not part of the published library's runtime graph on other platforms — lower real-world exposure than a direct runtime dependency, but worth clearing for cargo audit cleanliness and Linux dev builds.

A plain cargo update -p memmap2 resolves cleanly to 0.9.11 with no other version bumps required. Cargo.lock only, no source changes. Verified cargo check --workspace passes.

@albatrossflyon-coder
albatrossflyon-coder requested a review from a team as a code owner July 16, 2026 19:01
@github-actions

github-actions Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Package Changes Through 9eedd73

There are 1 changes which include wry with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
wry 0.55.1 0.56.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@Legend-Master Legend-Master left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

memmap2 0.9.5 is pulled in via winit (a dev-dependency of wry) ->
smithay-client-toolkit / sctk-adwaita (Linux Wayland decoration
theming). Affected versions under-validated the offset/len parameters
on Mmap::advise_range() and friends, allowing an out-of-bounds pointer
to reach the madvise/msync syscalls (undefined behavior, though the
invalid pointer is never dereferenced).

A plain `cargo update -p memmap2` resolves to the patched 0.9.11 with
no other bumps needed. Cargo.lock only, no source changes.

Verified `cargo check --workspace` passes.

Fixes tauri-apps#1770
@Legend-Master
Legend-Master merged commit a93d04c into tauri-apps:dev Jul 17, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RUSTSEC-2026-0186: Unchecked pointer offset in crate memmap2

2 participants