Bug 29543 - flatpak new security issue CVE-2021-41133
Summary: flatpak new security issue CVE-2021-41133
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-10-11 05:01 CEST by David Walser
Modified: 2021-10-23 12:06 CEST (History)
8 users (show)

See Also:
Source RPM: flatpak-1.11.2-1.mga9.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2021-10-11 05:01:52 CEST
Upstream has issued an advisory on October 8:
https://github.com/flatpak/flatpak/security/advisories/GHSA-67h7-w3jq-vh4q

The issue is fixed upstream in 1.10.4 and 1.12.0, with regression fixes in 1.10.5 and 1.12.1:
https://github.com/flatpak/flatpak/releases/tag/1.10.4
https://github.com/flatpak/flatpak/releases/tag/1.10.5
https://github.com/flatpak/flatpak/releases/tag/1.12.0
https://github.com/flatpak/flatpak/releases/tag/1.12.1

Mageia 8 is also affected.
David Walser 2021-10-11 05:02:08 CEST

Status comment: (none) => Fixed upstream in 1.10.4 and 1.12.0
Whiteboard: (none) => MGA8TOO

Comment 1 Marja Van Waes 2021-10-11 21:52:04 CEST
Assigning to the registered flatpack maintainer

CC: (none) => marja11
Assignee: bugsquad => mageia

Comment 2 David Walser 2021-10-12 22:14:18 CEST
1.12.x branch has another bugfix update:
https://github.com/flatpak/flatpak/releases/tag/1.12.2
Comment 3 David Walser 2021-10-13 15:37:16 CEST
Fedora has issued an advisory for this on October 12:
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/R5656ONDP2MGKIJMKEC7N2NXCV27WGTC/
Morgan Leijström 2021-10-13 17:34:22 CEST

CC: (none) => fri

Comment 4 Nicolas Lécureuil 2021-10-16 16:26:24 CEST
New version 1.12.1 pushed in mga9:

fixed in mga8:
src:
    - flatpak-1.10.4-1.mga8

Whiteboard: MGA8TOO => (none)
Assignee: mageia => qa-bugs
Status comment: Fixed upstream in 1.10.4 and 1.12.0 => (none)
Version: Cauldron => 8

Comment 5 Guillaume Royer 2021-10-16 19:32:06 CEST
MGA 64 Core I3 4Go RAM

Updated with QA repo and RPms:

flatpak                        1.10.4       1.mga8        x86_64  
lib64flatpak-gir1.0            1.10.4       1.mga8        x86_64  
lib64flatpak0                  1.10.4       1.mga8        x86_64 

No issue after installation tested with command:

flatpak remotes => OK
flatpak update => OK

CC: (none) => guillaume.royer

Comment 6 David Walser 2021-10-16 19:44:43 CEST
Updating to 1.10.5 and 1.12.2 now to pick up the additional bug fixes.
Comment 7 Morgan Leijström 2021-10-16 19:50:40 CEST
1.10.4 mga8 64bit i7 nvidia-current, plasma
Updated using rpmdrake, same pkgs as comment 5
flatpak list, remotes, update, and finds, installs and runs Firefox.
Comment 8 David Walser 2021-10-16 19:59:24 CEST
flatpak-1.10.5-1.mga8
libflatpak0-1.10.5-1.mga8
libflatpak-gir1.0-1.10.5-1.mga8
libflatpak-devel-1.10.5-1.mga8
flatpak-tests-1.10.5-1.mga8

flatpak-1.10.5-1.mga8.src.rpm
Comment 9 Morgan Leijström 2021-10-16 21:07:44 CEST
1.10.5 mga8 64bit i7 nvidia-current, plasma
Updated using rpmdrake. Exercised:
flatpak list, remotes, update, and finds, installs and runs Notpeadqq.
Comment 10 Herman Viaene 2021-10-18 14:08:53 CEST
MGA8-64 Plasma on Lenovo B50
No installation issues.
All I understand of this (looking at previous updates) is
$ flatpak --help
Usage:
  flatpak [OPTION…] COMMAND

Builtin Commands:
 Manage installed applications and runtimes
  install                Install an application or runtime
  update                 Update an installed application or runtime
  uninstall              Uninstall an installed application or runtime
  mask                   Mask out updates and automatic installation
  pin                    Pin a runtime to prevent automatic removal
  list                   List installed apps and/or runtimes
  info                   Show info for installed app or runtime
  history                Show history
  config                 Configure flatpak
  repair                 Repair flatpak installation
  create-usb             Put applications or runtimes onto removable media

 Finding applications and runtimes
etc ....
list and remotes return nothing and 
$ flatpak update

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/tester8/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Looking for updates…
Nothing to do.

Which seems fair to me. I would need to study the whole business to setup links to repos e.a. I guess, but not today.....

CC: (none) => herman.viaene

Comment 11 Morgan Leijström 2021-10-18 14:20:10 CEST
If you are interested another day:
https://wiki.mageia.org/en/Ways_to_install_programs#Flatpak
Comment 12 Hugues Detavernier 2021-10-19 12:19:09 CEST
Mageia 8 X64 Gnome

No installation issues
After reboot, applications are present.

$ flatpak --version
Flatpak 1.10.5

Installed Spotify without problems
$ flatpak install flathub com.spotify.Client

I launched Spotify without issues
$ flatpak run com.spotify.Client

I tried with another program Drawing.
$  flatpak run com.github.maoschanz.drawing

I've got this error:

(drawing:2): Gdk-WARNING **: 12:17:16.646: Failed to read portal settings: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files

I can't save any files.

Flatpak seems to be ok, not all applications.

CC: (none) => hdetavernier

Comment 13 Morgan Leijström 2021-10-19 13:52:07 CEST
That error may be some version mismatch between the app and a flatpak component
Comment 14 Morgan Leijström 2021-10-21 14:52:17 CEST
Now flatpak 1.10.5 update command show recommendation for further updating of some parts.  Do we need to advance flatpak version or will the projects supplying the parts supply updates flatpak can update to?


$ flatpak update
Looking for updates…
Info: org.kde.Platform//5.11 is end-of-life, with reason:
   The KDE 5.11 runtime is no longer supported and does not receive security updates. We strongly recommend migrating to a supported runtime.
Applications using this runtime:
   com.notepadqq.Notepadqq
Info: org.freedesktop.Platform.ffmpeg//1.6 is end-of-life, with reason:
   The Freedesktop 1.6 runtime is no longer supported and does not receive security updates. Please ask your application developer to migrate to a supported runtime.
Comment 15 David Walser 2021-10-21 16:06:54 CEST
That would be up to whoever is creating the flatpak you're using.
Comment 16 Morgan Leijström 2021-10-21 22:11:58 CEST
I find you are correct, thanks.
Comment 17 Morgan Leijström 2021-10-21 22:13:32 CEST
Looks good to me

Whiteboard: (none) => MGA8-64-OK

Comment 18 Thomas Andrews 2021-10-22 01:44:23 CEST
Thank you, everyone!

Validating.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Dave Hodgins 2021-10-23 03:19:36 CEST

Keywords: (none) => advisory
CC: (none) => davidwhodgins

Comment 19 Mageia Robot 2021-10-23 12:06:54 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2021-0486.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.