<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">flatpak-1.15.10-1.1 on GA media</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2024:14275-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2024-08-20T00:00:00Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2024-08-20T00:00:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2024-08-20T00:00:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf.pl</Engine>
      <Date>2017-02-24T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">flatpak-1.15.10-1.1 on GA media</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">These are all security issues fixed in the flatpak-1.15.10-1.1 package on the GA media of openSUSE Tumbleweed.</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="3" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
    <Note Title="Patchnames" Type="Details" Ordinal="4" xml:lang="en">openSUSE-Tumbleweed-2024-14275</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright SUSE LLC under the Creative Commons License 4.0 with Attribution (CC-BY-4.0)</DocumentDistribution>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2024-42472/</URL>
      <Description>SUSE CVE CVE-2024-42472 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE Tumbleweed">
      <Branch Type="Product Name" Name="openSUSE Tumbleweed">
        <FullProductName ProductID="openSUSE Tumbleweed" CPE="cpe:/o:opensuse:tumbleweed">openSUSE Tumbleweed</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="flatpak-1.15.10-1.1">
      <FullProductName ProductID="flatpak-1.15.10-1.1">flatpak-1.15.10-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="flatpak-devel-1.15.10-1.1">
      <FullProductName ProductID="flatpak-devel-1.15.10-1.1">flatpak-devel-1.15.10-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="flatpak-remote-flathub-1.15.10-1.1">
      <FullProductName ProductID="flatpak-remote-flathub-1.15.10-1.1">flatpak-remote-flathub-1.15.10-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="flatpak-selinux-1.15.10-1.1">
      <FullProductName ProductID="flatpak-selinux-1.15.10-1.1">flatpak-selinux-1.15.10-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="flatpak-zsh-completion-1.15.10-1.1">
      <FullProductName ProductID="flatpak-zsh-completion-1.15.10-1.1">flatpak-zsh-completion-1.15.10-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="libflatpak0-1.15.10-1.1">
      <FullProductName ProductID="libflatpak0-1.15.10-1.1">libflatpak0-1.15.10-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="system-user-flatpak-1.15.10-1.1">
      <FullProductName ProductID="system-user-flatpak-1.15.10-1.1">system-user-flatpak-1.15.10-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="typelib-1_0-Flatpak-1_0-1.15.10-1.1">
      <FullProductName ProductID="typelib-1_0-Flatpak-1_0-1.15.10-1.1">typelib-1_0-Flatpak-1_0-1.15.10-1.1</FullProductName>
    </Branch>
    <Relationship ProductReference="flatpak-1.15.10-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:flatpak-1.15.10-1.1">flatpak-1.15.10-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="flatpak-devel-1.15.10-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:flatpak-devel-1.15.10-1.1">flatpak-devel-1.15.10-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="flatpak-remote-flathub-1.15.10-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:flatpak-remote-flathub-1.15.10-1.1">flatpak-remote-flathub-1.15.10-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="flatpak-selinux-1.15.10-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:flatpak-selinux-1.15.10-1.1">flatpak-selinux-1.15.10-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="flatpak-zsh-completion-1.15.10-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:flatpak-zsh-completion-1.15.10-1.1">flatpak-zsh-completion-1.15.10-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="libflatpak0-1.15.10-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:libflatpak0-1.15.10-1.1">libflatpak0-1.15.10-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="system-user-flatpak-1.15.10-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:system-user-flatpak-1.15.10-1.1">system-user-flatpak-1.15.10-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="typelib-1_0-Flatpak-1_0-1.15.10-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:typelib-1_0-Flatpak-1_0-1.15.10-1.1">typelib-1_0-Flatpak-1_0-1.15.10-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Flatpak is a Linux application sandboxing and distribution framework. Prior to versions 1.14.0 and 1.15.10, a malicious or compromised Flatpak app using persistent directories could access and write files outside of what it would otherwise have access to, which is an attack on integrity and confidentiality.

When `persistent=subdir` is used in the application permissions (represented as `--persist=subdir` in the command-line interface), that means that an application which otherwise doesn't have access to the real user home directory will see an empty home directory with a writeable subdirectory `subdir`. Behind the scenes, this directory is actually a bind mount and the data is stored in the per-application directory as `~/.var/app/$APPID/subdir`. This allows existing apps that are not aware of the per-application directory to still work as intended without general home directory access.

However, the application does have write access to the application directory `~/.var/app/$APPID` where this directory is stored. If the source directory for the `persistent`/`--persist` option is replaced by a symlink, then the next time the application is started, the bind mount will follow the symlink and mount whatever it points to into the sandbox.

Partial protection against this vulnerability can be provided by patching Flatpak using the patches in commits ceec2ffc and 98f79773. However, this leaves a race condition that could be exploited by two instances of a malicious app running in parallel. Closing the race condition requires updating or patching the version of bubblewrap that is used by Flatpak to add the new `--bind-fd` option using the patch and then patching Flatpak to use it. If Flatpak has been configured at build-time with `-Dsystem_bubblewrap=bwrap` (1.15.x) or `--with-system-bubblewrap=bwrap` (1.14.x or older), or a similar option, then the version of bubblewrap that needs to be patched is a system copy that is distributed separately, typically `/usr/bin/bwrap`. This configuration is the one that is typically used in Linux distributions. If Flatpak has been configured at build-time with `-Dsystem_bubblewrap=` (1.15.x) or with `--without-system-bubblewrap` (1.14.x or older), then it is the bundled version of bubblewrap that is included with Flatpak that must be patched. This is typically installed as `/usr/libexec/flatpak-bwrap`. This configuration is the default when building from source code.

For the 1.14.x stable branch, these changes are included in Flatpak 1.14.10. The bundled version of bubblewrap included in this release has been updated to 0.6.3. For the 1.15.x development branch, these changes are included in Flatpak 1.15.10. The bundled version of bubblewrap in this release is a Meson "wrap" subproject, which has been updated to 0.10.0. The 1.12.x and 1.10.x branches will not be updated for this vulnerability. Long-term support OS distributions should backport the individual changes into their versions of Flatpak and bubblewrap, or update to newer versions if their stability policy allows it. As a workaround, avoid using applications using the `persistent` (`--persist`) permission.</Note>
    </Notes>
    <CVE>CVE-2024-42472</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Tumbleweed:flatpak-1.15.10-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:flatpak-devel-1.15.10-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:flatpak-remote-flathub-1.15.10-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:flatpak-selinux-1.15.10-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:flatpak-zsh-completion-1.15.10-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:libflatpak0-1.15.10-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:system-user-flatpak-1.15.10-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:typelib-1_0-Flatpak-1_0-1.15.10-1.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>critical</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL/>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2024-42472.html</URL>
        <Description>CVE-2024-42472</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1229157</URL>
        <Description>SUSE Bug 1229157</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
