Skip to content

cmd/tailscaled: pre-load wintun.dll using a fully-qualified path#10083

Merged
dblohm7 merged 1 commit intomainfrom
aaron/fqwintun
Nov 2, 2023
Merged

cmd/tailscaled: pre-load wintun.dll using a fully-qualified path#10083
dblohm7 merged 1 commit intomainfrom
aaron/fqwintun

Conversation

@dblohm7
Copy link
Copy Markdown
Member

@dblohm7 dblohm7 commented Nov 2, 2023

In corp PR #14970 I updated the installer to set a security mitigation that always forces system32 to the front of the Windows dynamic linker's search path.

Unfortunately there are other products out there that, partying like it's 1995, drop their own, older version of wintun.dll into system32. Since we look there first, we end up loading that old version.

We can fix this by preloading wintun using a fully-qualified path. When wintun-go then loads wintun, the dynamic linker will hand it the module that was previously loaded by us.

Fixes #10023, #10025, #10052

@dblohm7 dblohm7 requested a review from DentonGentry November 2, 2023 15:36
In corp PR #14970 I updated the installer to set a security mitigation that
always forces system32 to the front of the Windows dynamic linker's search
path.

Unfortunately there are other products out there that, partying like it's
1995, drop their own, older version of wintun.dll into system32. Since we
look there first, we end up loading that old version.

We can fix this by preloading wintun using a fully-qualified path. When
wintun-go then loads wintun, the dynamic linker will hand it the module
that was previously loaded by us.

Fixes #10023, #10025, #10052

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
@dblohm7 dblohm7 removed the request for review from DentonGentry November 2, 2023 15:42
@dblohm7 dblohm7 merged commit 47019ce into main Nov 2, 2023
@dblohm7 dblohm7 deleted the aaron/fqwintun branch November 2, 2023 15:47
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.

v1.52.0 Failed to connect to Tailscale service

3 participants