Repository navigation
Remove DES TLS from VNC desktop shared libraries - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The published
desktop-v0.1.1Linux libraries include TLS relocations from D3DES's privateKnLbuffer. The Sliver/Reflektor v0.0.8 in-memory Linux loader rejectsR_X86_64_DTPMOD64andR_AARCH64_TLSDESC, so the Armory package's native loader gate fails before the VNC adapter runs.Change
Pass a 32-word DES key schedule explicitly through the private D3DES helper and allocate it on each encryption/decryption call's stack. This preserves independent keys across threads and removes the ELF TLS requirement from the standalone desktop profile. Normal shared libvncserver builds retain the original two-argument exported DES symbols and their thread-local wrappers. Add Linux desktop tests for the pre-change ciphertext, decrypt round-trip, and synchronized concurrent keys.
Validation
amd64andarm64:desktop_protocol,desktop_sliver_abi,desktop_des_schedule, anddesktop_des_legacypassed (4/4 per architecture).VNCDesktopCommandwithstatusandstart --port 0, receiving one expected callback each.git diff --checkpassed.After merge, publish a forward
desktop-v0.1.2source release and update the package PR to pin that release. Do not replacedesktop-v0.1.1.