Ubuntu Patches Incomplete Fix in XDG Desktop Portal Trash Vulnerability
An incomplete fix for a file trashing flaw in XDG Desktop Portal has been revised to prevent potential symlink attacks. The update resolves a regression affecting Ubuntu 26.04 LTS users.
TL;DR
- A previous security fix for XDG Desktop Portal introduced a new issue when trashing files.
- The flaw allowed local attackers to delete arbitrary files using symlink attacks.
- Ubuntu has released USN-8287-2 to correct the regression.
- The update applies to Ubuntu 26.04 LTS systems.
- Users are advised to apply the patch to mitigate risks.
Ubuntu has issued a follow-up security update to resolve a flaw in its earlier fix for XDG Desktop Portal. The initial patch aimed at preventing unauthorized file trashing inadvertently caused a regression, which could still be exploited by local attackers. The updated advisory, USN-8287-2, ensures the vulnerability is fully remediated for Ubuntu 26.04 LTS.
The vulnerability stems from improper handling of file trashing operations within XDG Desktop Portal. If exploited, it could allow malicious actors on the same system to delete files they should not have access to, using symbolic link-based techniques. This poses a significant risk to data integrity and user privacy.
Understanding the Regression
- CVE-2026-40354 was initially addressed in USN-8287-1 but left exploitable gaps.
- The incomplete fix led to unexpected behavior during file trashing operations.
- A local attacker could leverage symbolic links to bypass intended protections.
- This created a scenario where arbitrary file deletions were still possible.
Impact and Mitigation
- Ubuntu 26.04 LTS systems running the affected version are at risk.
- The updated patch in USN-8287-2 fully resolves the issue without reintroducing regressions.
- Administrators should prioritize deploying the latest update immediately.
- Monitoring file system logs for unusual deletion patterns can help detect exploitation attempts.
Sources
Sources
Security email updates
One digest email when we publish new security articles (TL;DR plus links to read more). Unsubscribe anytime from the message footer. See our Privacy Policy.