Article View: linux.debian.bugs.dist
Article #6875Bug#1155904: trixie-pu: package flatpak/1.16.6-1~deb13u5
From: Simon McVittie
Date: Mon, 30 Nov 2026 14:10
Date: Mon, 30 Nov 2026 14:10
355 lines
18211 bytes
18211 bytes
--Mx6lrHXh+4TXijCV
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
On Mon, 30 Nov 2026 at 13:36:39 +0000, Simon McVittie wrote:
> [x] attach debdiff against the package in (old)stable
> (I used trixie-security as the basis for comparison)
See attached.
--Mx6lrHXh+4TXijCV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=flatpak_1.16.6-1~deb13u5.debdiff
diffstat for flatpak-1.16.6 flatpak-1.16.6
debian/changelog | 29 +++++-
debian/patches/fixes/chase-Handle-EAGAIN-from-openat2.patch | 37 +++++++
debian/patches/series | 4
debian/patches/tests/tests-Allow-the-no-plan-style-of-TAP-testing.patch | 48 ++++++++++
debian/patches/tests/tests-Avoid-Meson-s-strict-TAP-parsing-for-now.patch | 32 ++++++
debian/patches/tests/tests-Track-TAP-test-numbers-in-shell-script-tests.patch | 47 +++++++++
subprojects/libglnx/glnx-chase.c | 5 -
tests/libtest.sh | 11 ++
tests/meson.build | 1
9 files changed, 208 insertions(+), 6 deletions(-)
diff -Nru flatpak-1.16.6/debian/changelog flatpak-1.16.6/debian/changelog
--- flatpak-1.16.6/debian/changelog 2026-11-24 14:26:21.000000000 +0000
+++ flatpak-1.16.6/debian/changelog 2026-11-30 12:49:50.000000000 +0000
@@ -1,3 +1,21 @@
+flatpak (1.16.6-1~deb13u5) trixie; urgency=medium
+
+ * d/p/tests/tests-Avoid-Meson-s-strict-TAP-parsing-for-now.patch,
+ d/p/tests/tests-Track-TAP-test-numbers-in-shell-script-tests.patch,
+ d/p/tests/tests-Allow-the-no-plan-style-of-TAP-testing.patch:
+ Fix autopkgtest regression in 1.16.6-1~deb13u4.
+ One of the new tests added in 1.18.6 and backported in 1.16.6-1~deb13u4
+ assumed testing framework features that were not yet available in
+ the 1.16.x branch.
+ * d/p/fixes/chase-Handle-EAGAIN-from-openat2.patch:
+ Fix an intermittent regression after fixing CVE-2026-96282.
+ openat2() with RESOLVE_IN_ROOT or RESOLVE_BENEATH can legitimately
+ fail with EAGAIN, and needs to be retried in this situation.
+ (Closes: #1155833)
+ * d/changelog: Add more CVE IDs to 1.16.6-1~deb13u2 changelog entry
+
+ -- Simon McVittie <smcv@debian.org> Mon, 30 Nov 2026 12:49:50 +0000
+
flatpak (1.16.6-1~deb13u4) trixie-security; urgency=high
* d/patches: Backport security fixes from 1.18.6:
@@ -47,11 +65,11 @@
Backport unit tests fixes which are required by the tests for some
of the security fixes below
- d/p/GHSA-fqx6-vh4p-42cg-GHSA-8qxj-x646-phcm/*.patch:
- + GHSA-fqx6-vh4p-42cg:
+ + CVE-2026-96275, GHSA-fqx6-vh4p-42cg:
Fix writing outside installation directory via crafted commit metadata.
A malicious or compromised Flatpak repository could write
attacker-controlled files outside /var/lib/flatpak as root.
- + GHSA-8qxj-x646-phcm:
+ + CVE-2026-96276, GHSA-8qxj-x646-phcm:
Fix writing outside working directory in `flatpak build-init`.
A malicious or compromised SDK could write outside the intended
working directory when a developer starts using it for a build.
@@ -59,6 +77,7 @@
Fix local privilege escalation involving revokefs.
A malicious local user could write files outside /var/lib/flatpak
as root by tampering with OSTree objects after signature verification.
+ (CVE-2026-96808)
- d/p/GHSA-8688-9x26-hhxj/*.patch:
Fix a sandbox escape involving directories inside ~/.var/app/APP_ID.
A malicious or compromised Flatpak app could write to arbitrary files
@@ -67,6 +86,7 @@
Fix a sandbox escape involving the ld.so cache.
A malicious or compromised Flatpak app could write files with a fixed
name and limited control over content outside the sandbox.
+ (CVE-2026-96807)
- d/p/GHSA-v2gw-v9h5-9q4x/*.patch:
Fix local privilege escalation involving crafted OCI architecture names.
A malicious local user on a system with an OCI remote configured
@@ -75,15 +95,16 @@
- d/p/GHSA-w69g-9x8j-7p8f/*.patch:
Fix reading outside sandbox involving crafted extension metadata.
A malicious or compromised Flatpak app could find out whether specific
- files exist outside the sandbox.
+ files exist outside the sandbox. (CVE-2026-96282)
- d/p/GHSA-q4gr-vc25-57m5/*.patch:
Fix anti-downgrade checks for components installed system-wide.
A malicious local user with an active local login session could
downgrade an app, runtime or extension to an older, known-vulnerable
- version and use this to attack other local users.
+ version and use this to attack other local users. (CVE-2026-96281)
- d/p/GHSA-jr92-2v97-wgvc/*.patch:
Fix a buffer overflow when installing or updating from a malicious OCI
registry, not believed to be practically exploitable on 64-bit systems.
+ (CVE-2026-96280)
- d/p/hardening/*.patch:
Harden file accesses against path traversal, fixing issues that
were initially thought to be security vulnerabilities similar to
diff -Nru flatpak-1.16.6/debian/patches/fixes/chase-Handle-EAGAIN-from-openat2.patch flatpak-1.16.6/debian/patches/fixes/chase-Handle-EAGAIN-from-openat2.patch
--- flatpak-1.16.6/debian/patches/fixes/chase-Handle-EAGAIN-from-openat2.patch 1970-01-01 01:00:00.000000000 +0100
+++ flatpak-1.16.6/debian/patches/fixes/chase-Handle-EAGAIN-from-openat2.patch 2026-11-30 12:49:50.000000000 +0000
@@ -0,0 +1,37 @@
+From: Sebastian Wick <sebastian.wick@redhat.com>
+Date: Tue, 18 Aug 2026 17:13:16 +0200
+Subject: chase: Handle EAGAIN from openat2
+
+From openat2(2):
+
+ EAGAIN how.resolve contains either RESOLVE_IN_ROOT or
+ RESOLVE_BENEATH, and the kernel could not ensure that a
+ ".." component didn't escape (due to a race condition or
+ potential attack). The caller may choose to retry the
+ openat2() call.
+
+We should handle this by simply retrying the syscall.
+
+(cherry picked from commit eef7f14c344723cb20bebd04dcc79be77363c3be)
+Origin: 1.18.2, commit:eef7f14c344723cb20bebd04dcc79be77363c3be
+Bug-Debian: https://bugs.debian.org/1155833
+---
+ subprojects/libglnx/glnx-chase.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/subprojects/libglnx/glnx-chase.c b/subprojects/libglnx/glnx-chase.c
+index 2251cb7..49e606a 100644
+--- a/subprojects/libglnx/glnx-chase.c
++++ b/subprojects/libglnx/glnx-chase.c
+@@ -684,7 +684,10 @@ glnx_chaseat_full (int dirfd,
+ .resolve = openat2_resolve,
+ };
+
+- fd = openat2 (dirfd, path, &how, sizeof (how));
++ do
++ fd = openat2 (dirfd, path, &how, sizeof (how));
++ while (fd < 0 && errno == EAGAIN);
++
+ if (fd < 0)
+ {
+ /* If the syscall is not implemented (ENOSYS) or blocked by
diff -Nru flatpak-1.16.6/debian/patches/series flatpak-1.16.6/debian/patches/series
--- flatpak-1.16.6/debian/patches/series 2026-11-24 14:26:21.000000000 +0000
+++ flatpak-1.16.6/debian/patches/series 2026-11-30 12:49:50.000000000 +0000
@@ -60,3 +60,7 @@
CVE-2026-133845/portal-Use-FlatpakUniqueFDList-to-prevent-multiple-uses-o.patch
CVE-2026-133845/tests-Assert-we-get-an-error-when-mapping-1-handle-to-the.patch
CVE-2026-133845/session-helper-Use-FlatpakUniqueFDList-here-too.patch
+tests/tests-Avoid-Meson-s-strict-TAP-parsing-for-now.patch
+tests/tests-Track-TAP-test-numbers-in-shell-script-tests.patch
+tests/tests-Allow-the-no-plan-style-of-TAP-testing.patch
+fixes/chase-Handle-EAGAIN-from-openat2.patch
diff -Nru flatpak-1.16.6/debian/patches/tests/tests-Allow-the-no-plan-style-of-TAP-testing.patch flatpak-1.16.6/debian/patches/tests/tests-Allow-the-no-plan-style-of-TAP-testing.patch
--- flatpak-1.16.6/debian/patches/tests/tests-Allow-the-no-plan-style-of-TAP-testing.patch 1970-01-01 01:00:00.000000000 +0100
+++ flatpak-1.16.6/debian/patches/tests/tests-Allow-the-no-plan-style-of-TAP-testing.patch 2026-11-30 12:49:50.000000000 +0000
@@ -0,0 +1,48 @@
+From: Simon McVittie <smcv@collabora.com>
+Date: Thu, 20 Aug 2026 19:55:51 +0100
+Subject: tests: Allow the "no plan" style of TAP testing
+
+This assumes that however many tests we have done, that's all of
+the tests that we intend to do, which is particularly useful in tests
+that routinely increase in length, like test-run.sh which is becoming
+rather long.
+
+Simplified from commit f7a88aca "tests: At the end of each test, explicitly
+log that we have finished" which was inspired by Perl's Test::More. In
+this simplified version, each test script may follow one of two
+patterns:
+
+* echo "1..3", ok, ok, ok
+* ok, ok, ok, done_testing
+
+but does not attempt to check for invalid patterns that emit the plan
+more than once.
+
+This fixes the 1.16.x backport of tests/test-extra-data-defang.sh,
+which was added to validate the fix for CVE-2026-133842.
+
+Fixes: a2118ccb "tests: Test deeply nested files in apply_extra output"
+Signed-off-by: Simon McVittie <smcv@collabora.com>
+Origin: upstream, commit:f032a2ac88c9b8814c8dc1cee572d0b902b6d3d7
+---
+ tests/libtest.sh | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/tests/libtest.sh b/tests/libtest.sh
+index 845a38c..e7abaf9 100644
+--- a/tests/libtest.sh
++++ b/tests/libtest.sh
+@@ -44,6 +44,13 @@ fi
+
+ test_number=0
+
++done_testing () {
++ { { local BASH_XTRACEFD=3; } 2> /dev/null
++ echo "1..$test_number"
++ echo "# Done testing"
++ } 3> /dev/null
++}
++
+ # All the asserts and ok functions below are wrapped such that they
+ # don't output any set -x traces of their internals (but still echo
+ # errors to stderr). This way the log output focuses on tracing what
diff -Nru flatpak-1.16.6/debian/patches/tests/tests-Avoid-Meson-s-strict-TAP-parsing-for-now.patch flatpak-1.16.6/debian/patches/tests/tests-Avoid-Meson-s-strict-TAP-parsing-for-now.patch
--- flatpak-1.16.6/debian/patches/tests/tests-Avoid-Meson-s-strict-TAP-parsing-for-now.patch 1970-01-01 01:00:00.000000000 +0100
+++ flatpak-1.16.6/debian/patches/tests/tests-Avoid-Meson-s-strict-TAP-parsing-for-now.patch 2026-11-30 12:49:50.000000000 +0000
@@ -0,0 +1,32 @@
+From: Simon McVittie <smcv@collabora.com>
+Date: Tue, 11 Aug 2026 13:49:16 +0100
+Subject: tests: Avoid Meson's strict TAP parsing for now
+
+Older versions of Meson parsed TAP output very strictly, and would fail
+the test when a `g_test_message()` mentions non-UTF-8, which results
+in GLib adding a prefix on stdout that is not valid TAP syntax.
+
+Ideally our error messages should all be valid UTF-8 even if the input
+is not, but that's a larger refactor that shouldn't block security fix
+releases, so for now just tell Meson to get the tests' pass/fail status
+from their exit status rather than parsing their stdout.
+
+Signed-off-by: Simon McVittie <smcv@collabora.com>
+(cherry picked from commit 242e9893e7977cdda871771bf8c2aaa5806c8a7b)
+Origin: upstream, commit:465ed1566d6b46545018765ae13fdfac60a95757
+---
+ tests/meson.build | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/tests/meson.build b/tests/meson.build
+index d5d6950..f74d0ca 100644
+--- a/tests/meson.build
++++ b/tests/meson.build
+@@ -186,7 +186,6 @@ foreach testcase : c_tests
+ args : [exe],
+ depends : runtime_repo,
+ env : test_env,
+- protocol : 'tap',
+ timeout : options.get('timeout', 30),
+ )
+ endif
diff -Nru flatpak-1.16.6/debian/patches/tests/tests-Track-TAP-test-numbers-in-shell-script-tests.patch flatpak-1.16.6/debian/patches/tests/tests-Track-TAP-test-numbers-in-shell-script-tests.patch
--- flatpak-1.16.6/debian/patches/tests/tests-Track-TAP-test-numbers-in-shell-script-tests.patch 1970-01-01 01:00:00.000000000 +0100
+++ flatpak-1.16.6/debian/patches/tests/tests-Track-TAP-test-numbers-in-shell-script-tests.patch 2026-11-30 12:49:50.000000000 +0000
@@ -0,0 +1,47 @@
+From: Simon McVittie <smcv@collabora.com>
+Date: Thu, 20 Aug 2026 19:41:21 +0100
+Subject: tests: Track TAP test numbers in shell script tests
+
+This will help us to emit correct TAP syntax, without having to always
+declare up-front how many tests we are going to run.
+
+This simplified backport of commit ea432191 "tests: Track and emit TAP
+test numbers in shell script tests" just does the tracking and doesn't
+change the output, to avoid potentially incorrect TAP output in tests
+that mix calls to `ok` with direct use of `echo "ok ..."`.
+
+Signed-off-by: Simon McVittie <smcv@collabora.com>
+Origin: upstream, commit:38c130f6f6145d6bd2f50fa05183876f07bfedb4
+---
+ tests/libtest.sh | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/tests/libtest.sh b/tests/libtest.sh
+index 058e7d9..845a38c 100644
+--- a/tests/libtest.sh
++++ b/tests/libtest.sh
+@@ -42,6 +42,8 @@ if [ -e "$test_srcdir/installed-tests.sh" ]; then
+ . "$test_srcdir/installed-tests.sh"
+ fi
+
++test_number=0
++
+ # All the asserts and ok functions below are wrapped such that they
+ # don't output any set -x traces of their internals (but still echo
+ # errors to stderr). This way the log output focuses on tracing what
+@@ -55,6 +57,7 @@ assert_not_reached () {
+
+ ok () {
+ { { local BASH_XTRACEFD=3; } 2> /dev/null
++ test_number=$(( test_number + 1 ))
+ echo "ok $@";
+ echo "================ $(basename ${BASH_SOURCE[1]}):${BASH_LINENO[0]} - $@ ================" >&2;
+ } 3> /dev/null
+@@ -553,6 +556,7 @@ skip_one_without_bwrap () {
+ if "${_flatpak_bwrap_works}"; then
+ return 1
+ else
++ test_number=$(( test_number + 1 ))
+ echo "ok $* # SKIP Cannot run bwrap"
+ return 0
+ fi
diff -Nru flatpak-1.16.6/subprojects/libglnx/glnx-chase.c flatpak-1.16.6/subprojects/libglnx/glnx-chase.c
--- flatpak-1.16.6/subprojects/libglnx/glnx-chase.c 2026-11-30 12:55:39.000000000 +0000
+++ flatpak-1.16.6/subprojects/libglnx/glnx-chase.c 2026-11-30 12:55:39.000000000 +0000
@@ -684,7 +684,10 @@
.resolve = openat2_resolve,
};
- fd = openat2 (dirfd, path, &how, sizeof (how));
+ do
+ fd = openat2 (dirfd, path, &how, sizeof (how));
+ while (fd < 0 && errno == EAGAIN);
+
if (fd < 0)
{
/* If the syscall is not implemented (ENOSYS) or blocked by
diff -Nru flatpak-1.16.6/tests/libtest.sh flatpak-1.16.6/tests/libtest.sh
--- flatpak-1.16.6/tests/libtest.sh 2026-11-30 12:55:39.000000000 +0000
+++ flatpak-1.16.6/tests/libtest.sh 2026-11-30 12:55:39.000000000 +0000
@@ -42,6 +42,15 @@
. "$test_srcdir/installed-tests.sh"
fi
+test_number=0
+
+done_testing () {
+ { { local BASH_XTRACEFD=3; } 2> /dev/null
+ echo "1..$test_number"
+ echo "# Done testing"
+ } 3> /dev/null
+}
+
# All the asserts and ok functions below are wrapped such that they
# don't output any set -x traces of their internals (but still echo
# errors to stderr). This way the log output focuses on tracing what
@@ -55,6 +64,7 @@
ok () {
{ { local BASH_XTRACEFD=3; } 2> /dev/null
+ test_number=$(( test_number + 1 ))
echo "ok $@";
echo "================ $(basename ${BASH_SOURCE[1]}):${BASH_LINENO[0]} - $@ ================" >&2;
} 3> /dev/null
@@ -553,6 +563,7 @@
if "${_flatpak_bwrap_works}"; then
return 1
else
+ test_number=$(( test_number + 1 ))
echo "ok $* # SKIP Cannot run bwrap"
return 0
fi
diff -Nru flatpak-1.16.6/tests/meson.build flatpak-1.16.6/tests/meson.build
--- flatpak-1.16.6/tests/meson.build 2026-11-30 12:55:39.000000000 +0000
+++ flatpak-1.16.6/tests/meson.build 2026-11-30 12:55:39.000000000 +0000
@@ -186,7 +186,6 @@
args : [exe],
depends : runtime_repo,
env : test_env,
- protocol : 'tap',
timeout : options.get('timeout', 30),
)
endif
--Mx6lrHXh+4TXijCV--
Technical Details
Message-ID:
<O5aeS-f8aj-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<O59LP-f7OQ-9@gated-at.bofh.it> <O59LP-f7OQ-9@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Simon McVittie <smcv@debian.org> Newsgroups: linux.debian.bugs.dist,linux.debian.devel.release Subject: Bug#1155904: trixie-pu: package flatpak/1.16.6-1~deb13u5 Date: Mon, 30 Nov 2026 15:10:02 +0100 Message-ID: <O5aeS-f8aj-1@gated-at.bofh.it> References: <O59LP-f7OQ-9@gated-at.bofh.it> <O59LP-f7OQ-9@gated-at.bofh.it> X-Original-To: 1155904@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 30 14:01:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Simon McVittie <smcv@debian.org>, 1155904@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-release@lists.debian.org X-Debian-Pr-Message: followup 1155904 X-Debian-Pr-Package: release.debian.org X-Debian-Pr-Keywords: trixie MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Mx6lrHXh+4TXijCV" Content-Disposition: inline X-Debian-User: smcv X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006081 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 355 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: flatpak@packages.debian.org, team@security.debian.org X-Original-Date: Mon, 30 Nov 2026 13:59:38 +0000 X-Original-Message-ID: <aw2BSrNgrX7PiJIU@definition.pseudorandom.co.uk> X-Original-References: <aw175_utpRW5e_si@definition.pseudorandom.co.uk> <aw175_utpRW5e_si@definition.pseudorandom.co.uk>