mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-28 02:20:18 -04:00
dir: Use fd-relative operations for export/bin removal during deploy
The export directory cleanup during deploy used flatpak_rm_rf which wraps glnx_shutil_rm_rf_at(AT_FDCWD, path). The kernel resolves intermediate symlinks in the path, so a malicious ostree commit with "export" as a symlink causes flatpak_rm_rf(export/bin) to delete files at the symlink target. On system installs (running as root), this is arbitrary file deletion. This commit uses fd-based operations to prevent to prevent the symlink attack. Resolves: CVE-2026-97023 Resolves: https://github.com/flatpak/flatpak/security/advisories/GHSA-5p67-xh8x-rq54
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f