Public bug reported:

Package: freerdp3 3.32.2+dfsg-0ubuntu0.26.04.1 (resolute-security / 
resolute-updates), Ubuntu 26.04.1 LTS
Also affects: gnome-remote-desktop 50.2-0ubuntu0.1
Last working version: 3.32.1+dfsg-0ubuntu0.26.04.1

IMPACT

After the security update to 3.32.2 (installed here by unattended-
upgrades on 2026-11-10), any RDP session into GNOME through gnome-
remote-desktop corrupts clipboard text that contains non-ASCII
characters:

- Text copied on the client as "Após" is pasted on the Ubuntu machine as 
"Ap\u00f3s". This affects every application, because the bytes are already 
escaped when gnome-remote-desktop offers them.
- In the other direction, literal \uXXXX sequences in text copied on the Ubuntu 
machine are silently decoded, so "a=\u00e9" arrives at the client as "a=é".

All languages that use accented characters are affected. The second
effect silently corrupts code and paths.

CAUSE

The security update rebased freerdp3 to upstream 3.32.2. That release
also contains a non-security behaviour change: upstream commit
c6144f25108b, "[winpr,clipboard] implement text/plain;codepage=utf-8"
(https://github.com/FreeRDP/FreeRDP/pull/13569). After this change,
WinPR's clipboard synthesizer treats the text/plain format as ASCII with
\uXXXX escapes (winpr/libwinpr/clipboard/synthetic.c,
winpr_utf8ToUtfEscapedString / winpr_utfEscapedStringToUtf8).

gnome-remote-desktop 50.2 uses "text/plain" as its UTF-8 format for
every text conversion (src/grd-clipboard-rdp.c). After the update, its
UTF-16 <-> UTF-8 conversions go through the escape path.

The commit message and the PR reference no security advisory.

STEPS TO REPRODUCE

1. Ubuntu 26.04 with libwinpr3-3 3.32.2+dfsg-0ubuntu0.26.04.1 and 
gnome-remote-desktop with desktop sharing enabled.
2. Connect from any RDP client and copy "Após" on the client.
3. On the Ubuntu machine, run: wl-paste -n -t 'text/plain;charset=utf-8' | xxd

Expected: 41 70 c3 b3 73
Actual:   41 70 5c 75 30 30 66 33 73  ("Ap\u00f3s")

The upstream gnome-remote-desktop report
(https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/work_items/395)
contains a standalone reproducer that uses only libwinpr3.so.3 through
ctypes and needs no RDP session.

SUGGESTED RESOLUTION

Either of these would fix it:
- Revert c6144f25108b (and the follow-up e0931b4af9d8, if needed) in the 
freerdp3 SRU/security package, so text/plain keeps its pre-3.32.2 meaning. Note 
that the 3.32.2 unit tests (TestClipboardFormats.c) assert the new behaviour 
and would need the same revert.
- Patch gnome-remote-desktop to use "text/plain;charset=utf-8" when WinPR 
provides it (upstream issue above). A local build of gnome-remote-desktop 
50.2-0ubuntu0.1 with that change fixes the problem.

WORKAROUND

Downgrading libwinpr3-3 and libfreerdp3-3 to 3.32.1 restores the
clipboard, but it also drops the 3.32.2 security fixes.

** Affects: freerdp3 (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: gnome-remote-desktop (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: gnome-remote-desktop (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2180162

Title:
  [regression] 3.32.2 security update breaks gnome-remote-desktop
  clipboard: non-ASCII text becomes \uXXXX

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freerdp3/+bug/2180162/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to