Skip to content

Commit b29908d

Browse files
committed
New upstream version 1.14.6
2 parents 00bc1c2 + 3344a7a commit b29908d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3341
-3017
lines changed

NEWS

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
Changes in 1.14.6
2+
~~~~~~~~~~~~~~~~~
3+
4+
Security fixes:
5+
6+
* Don't allow an executable name to be misinterpreted as a command-line
7+
option for bwrap(1). This prevents a sandbox escape where a malicious
8+
or compromised app could ask xdg-desktop-portal to generate a .desktop
9+
file with access to files outside the sandbox. (CVE-2024-32462)
10+
11+
Other bug fixes:
12+
13+
* Don't parse `<developer><name/></developer>` as the application name
14+
(#5700)
15+
116
Changes in 1.14.5
217
~~~~~~~~~~~~~~~~~
318
Released: 2023-12-08

app/flatpak-builtins-build.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,8 @@ flatpak_builtin_build (int argc, char **argv, GCancellable *cancellable, GError
587587
if (!flatpak_bwrap_bundle_args (bwrap, 1, -1, FALSE, error))
588588
return FALSE;
589589

590-
flatpak_bwrap_add_args (bwrap, command, NULL);
590+
flatpak_bwrap_add_args (bwrap, "--", command, NULL);
591+
591592
flatpak_bwrap_append_argsv (bwrap,
592593
&argv[rest_argv_start + 2],
593594
rest_argc - 2);

common/flatpak-appdata.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ typedef struct
4343
gboolean in_text;
4444
gboolean in_component;
4545
gboolean in_content_rating;
46+
gboolean in_developer;
4647
char *lang;
4748
guint64 timestamp;
4849
const char *id; /* interned */
@@ -119,7 +120,7 @@ start_element (GMarkupParseContext *context,
119120
{
120121
data->in_text = TRUE;
121122
}
122-
else if (g_str_equal (element_name, "name") ||
123+
else if ((!data->in_developer && g_str_equal (element_name, "name")) ||
123124
g_str_equal (element_name, "summary"))
124125
{
125126
const char *lang = NULL;
@@ -259,6 +260,10 @@ start_element (GMarkupParseContext *context,
259260
g_warning ("Ignoring content attribute missing id attribute");
260261
}
261262
}
263+
else if (g_str_equal (element_name, "developer"))
264+
{
265+
data->in_developer = TRUE;
266+
}
262267
}
263268

264269
static void
@@ -294,7 +299,7 @@ end_element (GMarkupParseContext *context,
294299
{
295300
component->id = g_steal_pointer (&text);
296301
}
297-
else if (g_str_equal (element_name, "name"))
302+
else if (!data->in_developer && g_str_equal (element_name, "name"))
298303
{
299304
g_hash_table_insert (component->names, g_steal_pointer (&data->lang), g_steal_pointer (&text));
300305
}
@@ -316,6 +321,10 @@ end_element (GMarkupParseContext *context,
316321
g_assert (component->content_rating != NULL);
317322
g_hash_table_insert (component->content_rating, (gpointer) data->id, (gpointer) g_intern_string (text));
318323
}
324+
else if (g_str_equal (element_name, "developer"))
325+
{
326+
data->in_developer = FALSE;
327+
}
319328
}
320329

321330
static void

common/flatpak-dir.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7071,6 +7071,7 @@ flatpak_dir_run_triggers (FlatpakDir *self,
70717071
"--proc", "/proc",
70727072
"--dev", "/dev",
70737073
"--bind", basedir, basedir,
7074+
"--",
70747075
NULL);
70757076
#endif
70767077
flatpak_bwrap_add_args (bwrap,

common/flatpak-run.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,6 +1299,9 @@ add_bwrap_wrapper (FlatpakBwrap *bwrap,
12991299
if (!flatpak_bwrap_bundle_args (bwrap, 1, -1, FALSE, error))
13001300
return FALSE;
13011301

1302+
/* End of options: the next argument will be the executable name */
1303+
flatpak_bwrap_add_arg (bwrap, "--");
1304+
13021305
return TRUE;
13031306
}
13041307

@@ -4682,7 +4685,7 @@ flatpak_run_app (FlatpakDecomposed *app_ref,
46824685
if (!flatpak_bwrap_bundle_args (bwrap, 1, -1, FALSE, error))
46834686
return FALSE;
46844687

4685-
flatpak_bwrap_add_arg (bwrap, command);
4688+
flatpak_bwrap_add_args (bwrap, "--", command, NULL);
46864689

46874690
if (!add_rest_args (bwrap, app_id,
46884691
exports, (flags & FLATPAK_RUN_FLAG_FILE_FORWARDING) != 0,

common/flatpak-version-macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*
4646
* The micro version.
4747
*/
48-
#define FLATPAK_MICRO_VERSION (5)
48+
#define FLATPAK_MICRO_VERSION (6)
4949

5050
/**
5151
* FLATPAK_CHECK_VERSION:

configure

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.71 for Flatpak 1.14.5.
3+
# Generated by GNU Autoconf 2.71 for Flatpak 1.14.6.
44
#
55
# Report bugs to <https://github.com/flatpak/flatpak/issues>.
66
#
@@ -621,8 +621,8 @@ MAKEFLAGS=
621621
# Identity of this package.
622622
PACKAGE_NAME='Flatpak'
623623
PACKAGE_TARNAME='flatpak'
624-
PACKAGE_VERSION='1.14.5'
625-
PACKAGE_STRING='Flatpak 1.14.5'
624+
PACKAGE_VERSION='1.14.6'
625+
PACKAGE_STRING='Flatpak 1.14.6'
626626
PACKAGE_BUGREPORT='https://github.com/flatpak/flatpak/issues'
627627
PACKAGE_URL='http://flatpak.org/'
628628

@@ -1642,7 +1642,7 @@ if test "$ac_init_help" = "long"; then
16421642
# Omit some internal or obsolete options to make the list less imposing.
16431643
# This message is too long to be a string in the A/UX 3.1 sh.
16441644
cat <<_ACEOF
1645-
\`configure' configures Flatpak 1.14.5 to adapt to many kinds of systems.
1645+
\`configure' configures Flatpak 1.14.6 to adapt to many kinds of systems.
16461646

16471647
Usage: $0 [OPTION]... [VAR=VALUE]...
16481648

@@ -1713,7 +1713,7 @@ fi
17131713

17141714
if test -n "$ac_init_help"; then
17151715
case $ac_init_help in
1716-
short | recursive ) echo "Configuration of Flatpak 1.14.5:";;
1716+
short | recursive ) echo "Configuration of Flatpak 1.14.6:";;
17171717
esac
17181718
cat <<\_ACEOF
17191719

@@ -2005,7 +2005,7 @@ fi
20052005
test -n "$ac_init_help" && exit $ac_status
20062006
if $ac_init_version; then
20072007
cat <<\_ACEOF
2008-
Flatpak configure 1.14.5
2008+
Flatpak configure 1.14.6
20092009
generated by GNU Autoconf 2.71
20102010

20112011
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -2356,7 +2356,7 @@ cat >config.log <<_ACEOF
23562356
This file contains any messages produced by compilers while
23572357
running configure, to aid debugging if configure makes a mistake.
23582358

2359-
It was created by Flatpak $as_me 1.14.5, which was
2359+
It was created by Flatpak $as_me 1.14.6, which was
23602360
generated by GNU Autoconf 2.71. Invocation command line was
23612361

23622362
$ $0$ac_configure_args_raw
@@ -14115,7 +14115,7 @@ fi
1411514115

1411614116
# Define the identity of the package.
1411714117
PACKAGE='flatpak'
14118-
VERSION='1.14.5'
14118+
VERSION='1.14.6'
1411914119

1412014120

1412114121
# Some tools Automake needs.
@@ -21921,10 +21921,10 @@ fi
2192121921

2192221922
FLATPAK_MAJOR_VERSION=1
2192321923
FLATPAK_MINOR_VERSION=14
21924-
FLATPAK_MICRO_VERSION=5
21924+
FLATPAK_MICRO_VERSION=6
2192521925
FLATPAK_EXTRA_VERSION=
2192621926
FLATPAK_INTERFACE_AGE=0
21927-
FLATPAK_VERSION=1.14.5
21927+
FLATPAK_VERSION=1.14.6
2192821928

2192921929

2193021930

@@ -21953,7 +21953,7 @@ printf "%s\n" "#define PACKAGE_EXTRA_VERSION $FLATPAK_EXTRA_VERSION" >>confdefs.
2195321953

2195421954

2195521955

21956-
LT_VERSION_INFO="11405:0:11405"
21956+
LT_VERSION_INFO="11406:0:11406"
2195721957
LT_CURRENT_MINUS_AGE=0
2195821958

2195921959

@@ -22599,7 +22599,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2259922599
# report actual input values of CONFIG_FILES etc. instead of their
2260022600
# values after options handling.
2260122601
ac_log="
22602-
This file was extended by Flatpak $as_me 1.14.5, which was
22602+
This file was extended by Flatpak $as_me 1.14.6, which was
2260322603
generated by GNU Autoconf 2.71. Invocation command line was
2260422604

2260522605
CONFIG_FILES = $CONFIG_FILES
@@ -22668,7 +22668,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
2266822668
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2266922669
ac_cs_config='$ac_cs_config_escaped'
2267022670
ac_cs_version="\\
22671-
Flatpak config.status 1.14.5
22671+
Flatpak config.status 1.14.6
2267222672
configured by $0, generated by GNU Autoconf 2.71,
2267322673
with options \\"\$ac_cs_config\\"
2267422674

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ AC_PREREQ([2.63])
1515

1616
m4_define([flatpak_major_version], [1])
1717
m4_define([flatpak_minor_version], [14])
18-
m4_define([flatpak_micro_version], [5])
18+
m4_define([flatpak_micro_version], [6])
1919
m4_define([flatpak_extra_version], [])
2020
m4_define([flatpak_interface_age], [0])
2121
m4_define([flatpak_binary_age],

0 commit comments

Comments
 (0)