<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cpe="http://cpe.mitre.org/language/2.0" xmlns:cvrf="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/cvrf" xmlns:cvrf-common="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/common" xmlns:cvssv2="http://scap.nist.gov/schema/cvss-v2/1.0" xmlns:cvssv3="https://www.first.org/cvss/cvss-v3.0.xsd" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns0="http://purl.org/dc/elements/1.1/" xmlns:prod="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/prod" xmlns:scap-core="http://scap.nist.gov/schema/scap-core/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:vuln="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/vuln" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/cvrf">
  <DocumentTitle xml:lang="en">CVE-2023-30549</DocumentTitle>
  <DocumentType>SUSE CVE</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>SUSE CVE-2023-30549</ID>
    </Identification>
    <Status>Interim</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>8</Number>
        <Date>2025-02-16T02:15:29Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2023-04-27T23:14:44Z</InitialReleaseDate>
    <CurrentReleaseDate>2025-02-16T02:15:29Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf-cve.pl</Engine>
      <Date>2020-12-27T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="CVE" Type="Summary" Ordinal="1" xml:lang="en">CVE-2023-30549</Note>
    <Note Title="Mitre CVE Description" Type="Description" Ordinal="2" xml:lang="en">Apptainer is an open source container platform for Linux. There is an ext4 use-after-free flaw that is exploitable through versions of Apptainer &lt; 1.1.0 and installations that include apptainer-suid &lt; 1.1.8 on older operating systems where that CVE has not been patched. That includes Red Hat Enterprise Linux 7, Debian 10 buster (unless the linux-5.10 package is installed), Ubuntu 18.04 bionic and Ubuntu 20.04 focal. Use-after-free flaws in the kernel can be used to attack the kernel for denial of service and potentially for privilege escalation.

Apptainer 1.1.8 includes a patch that by default disables mounting of extfs filesystem types in setuid-root mode, while continuing to allow mounting of extfs filesystems in non-setuid "rootless" mode using fuse2fs.

Some workarounds are possible. Either do not install apptainer-suid (for versions 1.1.0 through 1.1.7) or set `allow setuid = no` in apptainer.conf.  This requires having unprivileged user namespaces enabled and except for apptainer 1.1.x versions will disallow mounting of sif files, extfs files, and squashfs files in addition to other, less significant impacts.  (Encrypted sif files are also not supported unprivileged in apptainer 1.1.x.). Alternatively, use the `limit containers` options in apptainer.conf/singularity.conf to limit sif files to trusted users, groups, and/or paths, and set `allow container extfs = no` to disallow mounting of extfs overlay files.  The latter option by itself does not disallow mounting of extfs overlay partitions inside SIF files, so that's why the former options are also needed.</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="4" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
  </DocumentNotes>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/3BEJQC6TDQZLJ4YE746IHLCFJFUQ2JKQ/</URL>
      <Description>E-Mail link for openSUSE-SU-2024:0244-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/prod">
    <Branch Type="Product Family" Name="SUSE Package Hub 15 SP5">
      <Branch Type="Product Name" Name="SUSE Package Hub 15 SP5">
        <FullProductName ProductID="SUSE Package Hub 15 SP5">SUSE Package Hub 15 SP5</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="openSUSE Leap 15.5">
      <Branch Type="Product Name" Name="openSUSE Leap 15.5">
        <FullProductName ProductID="openSUSE Leap 15.5" CPE="cpe:/o:opensuse:leap:15.5">openSUSE Leap 15.5</FullProductName>
      </Branch>
    </Branch>
    <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="apptainer-1.1.8-1.1">
      <FullProductName ProductID="apptainer-1.1.8-1.1">apptainer-1.1.8-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="apptainer-1.3.0-bp155.3.3.2">
      <FullProductName ProductID="apptainer-1.3.0-bp155.3.3.2">apptainer-1.3.0-bp155.3.3.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="apptainer-leap-1.3.0-bp155.3.3.2">
      <FullProductName ProductID="apptainer-leap-1.3.0-bp155.3.3.2">apptainer-leap-1.3.0-bp155.3.3.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="apptainer-sle15_5-1.3.0-bp155.3.3.2">
      <FullProductName ProductID="apptainer-sle15_5-1.3.0-bp155.3.3.2">apptainer-sle15_5-1.3.0-bp155.3.3.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="apptainer-sle15_6-1.3.0-bp155.3.3.2">
      <FullProductName ProductID="apptainer-sle15_6-1.3.0-bp155.3.3.2">apptainer-sle15_6-1.3.0-bp155.3.3.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="libsquashfuse0-0.5.0-bp155.2.1">
      <FullProductName ProductID="libsquashfuse0-0.5.0-bp155.2.1">libsquashfuse0-0.5.0-bp155.2.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="squashfuse-0.5.0-bp155.2.1">
      <FullProductName ProductID="squashfuse-0.5.0-bp155.2.1">squashfuse-0.5.0-bp155.2.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="squashfuse-devel-0.5.0-bp155.2.1">
      <FullProductName ProductID="squashfuse-devel-0.5.0-bp155.2.1">squashfuse-devel-0.5.0-bp155.2.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="squashfuse-tools-0.5.0-bp155.2.1">
      <FullProductName ProductID="squashfuse-tools-0.5.0-bp155.2.1">squashfuse-tools-0.5.0-bp155.2.1</FullProductName>
    </Branch>
    <Relationship ProductReference="apptainer-1.3.0-bp155.3.3.2" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP5">
      <FullProductName ProductID="SUSE Package Hub 15 SP5:apptainer-1.3.0-bp155.3.3.2">apptainer-1.3.0-bp155.3.3.2 as a component of SUSE Package Hub 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="apptainer-leap-1.3.0-bp155.3.3.2" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP5">
      <FullProductName ProductID="SUSE Package Hub 15 SP5:apptainer-leap-1.3.0-bp155.3.3.2">apptainer-leap-1.3.0-bp155.3.3.2 as a component of SUSE Package Hub 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="apptainer-sle15_5-1.3.0-bp155.3.3.2" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP5">
      <FullProductName ProductID="SUSE Package Hub 15 SP5:apptainer-sle15_5-1.3.0-bp155.3.3.2">apptainer-sle15_5-1.3.0-bp155.3.3.2 as a component of SUSE Package Hub 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="apptainer-sle15_6-1.3.0-bp155.3.3.2" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP5">
      <FullProductName ProductID="SUSE Package Hub 15 SP5:apptainer-sle15_6-1.3.0-bp155.3.3.2">apptainer-sle15_6-1.3.0-bp155.3.3.2 as a component of SUSE Package Hub 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="libsquashfuse0-0.5.0-bp155.2.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP5">
      <FullProductName ProductID="SUSE Package Hub 15 SP5:libsquashfuse0-0.5.0-bp155.2.1">libsquashfuse0-0.5.0-bp155.2.1 as a component of SUSE Package Hub 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="squashfuse-0.5.0-bp155.2.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP5">
      <FullProductName ProductID="SUSE Package Hub 15 SP5:squashfuse-0.5.0-bp155.2.1">squashfuse-0.5.0-bp155.2.1 as a component of SUSE Package Hub 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="squashfuse-devel-0.5.0-bp155.2.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP5">
      <FullProductName ProductID="SUSE Package Hub 15 SP5:squashfuse-devel-0.5.0-bp155.2.1">squashfuse-devel-0.5.0-bp155.2.1 as a component of SUSE Package Hub 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="squashfuse-tools-0.5.0-bp155.2.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP5">
      <FullProductName ProductID="SUSE Package Hub 15 SP5:squashfuse-tools-0.5.0-bp155.2.1">squashfuse-tools-0.5.0-bp155.2.1 as a component of SUSE Package Hub 15 SP5</FullProductName>
    </Relationship>
    <Relationship ProductReference="apptainer-1.3.0-bp155.3.3.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:apptainer-1.3.0-bp155.3.3.2">apptainer-1.3.0-bp155.3.3.2 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
    <Relationship ProductReference="apptainer-leap-1.3.0-bp155.3.3.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:apptainer-leap-1.3.0-bp155.3.3.2">apptainer-leap-1.3.0-bp155.3.3.2 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
    <Relationship ProductReference="apptainer-sle15_5-1.3.0-bp155.3.3.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:apptainer-sle15_5-1.3.0-bp155.3.3.2">apptainer-sle15_5-1.3.0-bp155.3.3.2 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
    <Relationship ProductReference="apptainer-sle15_6-1.3.0-bp155.3.3.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:apptainer-sle15_6-1.3.0-bp155.3.3.2">apptainer-sle15_6-1.3.0-bp155.3.3.2 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
    <Relationship ProductReference="libsquashfuse0-0.5.0-bp155.2.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:libsquashfuse0-0.5.0-bp155.2.1">libsquashfuse0-0.5.0-bp155.2.1 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
    <Relationship ProductReference="squashfuse-0.5.0-bp155.2.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:squashfuse-0.5.0-bp155.2.1">squashfuse-0.5.0-bp155.2.1 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
    <Relationship ProductReference="squashfuse-devel-0.5.0-bp155.2.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:squashfuse-devel-0.5.0-bp155.2.1">squashfuse-devel-0.5.0-bp155.2.1 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
    <Relationship ProductReference="squashfuse-tools-0.5.0-bp155.2.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.5">
      <FullProductName ProductID="openSUSE Leap 15.5:squashfuse-tools-0.5.0-bp155.2.1">squashfuse-tools-0.5.0-bp155.2.1 as a component of openSUSE Leap 15.5</FullProductName>
    </Relationship>
    <Relationship ProductReference="apptainer-1.1.8-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:apptainer-1.1.8-1.1">apptainer-1.1.8-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/vuln" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Apptainer is an open source container platform for Linux. There is an ext4 use-after-free flaw that is exploitable through versions of Apptainer &lt; 1.1.0 and installations that include apptainer-suid &lt; 1.1.8 on older operating systems where that CVE has not been patched. That includes Red Hat Enterprise Linux 7, Debian 10 buster (unless the linux-5.10 package is installed), Ubuntu 18.04 bionic and Ubuntu 20.04 focal. Use-after-free flaws in the kernel can be used to attack the kernel for denial of service and potentially for privilege escalation.

Apptainer 1.1.8 includes a patch that by default disables mounting of extfs filesystem types in setuid-root mode, while continuing to allow mounting of extfs filesystems in non-setuid "rootless" mode using fuse2fs.

Some workarounds are possible. Either do not install apptainer-suid (for versions 1.1.0 through 1.1.7) or set `allow setuid = no` in apptainer.conf.  This requires having unprivileged user namespaces enabled and except for apptainer 1.1.x versions will disallow mounting of sif files, extfs files, and squashfs files in addition to other, less significant impacts.  (Encrypted sif files are also not supported unprivileged in apptainer 1.1.x.). Alternatively, use the `limit containers` options in apptainer.conf/singularity.conf to limit sif files to trusted users, groups, and/or paths, and set `allow container extfs = no` to disallow mounting of extfs overlay files.  The latter option by itself does not disallow mounting of extfs overlay partitions inside SIF files, so that's why the former options are also needed.</Note>
    </Notes>
    <CVE>CVE-2023-30549</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Package Hub 15 SP5:apptainer-1.3.0-bp155.3.3.2</ProductID>
        <ProductID>SUSE Package Hub 15 SP5:apptainer-leap-1.3.0-bp155.3.3.2</ProductID>
        <ProductID>SUSE Package Hub 15 SP5:apptainer-sle15_5-1.3.0-bp155.3.3.2</ProductID>
        <ProductID>SUSE Package Hub 15 SP5:apptainer-sle15_6-1.3.0-bp155.3.3.2</ProductID>
        <ProductID>SUSE Package Hub 15 SP5:libsquashfuse0-0.5.0-bp155.2.1</ProductID>
        <ProductID>SUSE Package Hub 15 SP5:squashfuse-0.5.0-bp155.2.1</ProductID>
        <ProductID>SUSE Package Hub 15 SP5:squashfuse-devel-0.5.0-bp155.2.1</ProductID>
        <ProductID>SUSE Package Hub 15 SP5:squashfuse-tools-0.5.0-bp155.2.1</ProductID>
        <ProductID>openSUSE Leap 15.5:apptainer-1.3.0-bp155.3.3.2</ProductID>
        <ProductID>openSUSE Leap 15.5:apptainer-leap-1.3.0-bp155.3.3.2</ProductID>
        <ProductID>openSUSE Leap 15.5:apptainer-sle15_5-1.3.0-bp155.3.3.2</ProductID>
        <ProductID>openSUSE Leap 15.5:apptainer-sle15_6-1.3.0-bp155.3.3.2</ProductID>
        <ProductID>openSUSE Leap 15.5:libsquashfuse0-0.5.0-bp155.2.1</ProductID>
        <ProductID>openSUSE Leap 15.5:squashfuse-0.5.0-bp155.2.1</ProductID>
        <ProductID>openSUSE Leap 15.5:squashfuse-devel-0.5.0-bp155.2.1</ProductID>
        <ProductID>openSUSE Leap 15.5:squashfuse-tools-0.5.0-bp155.2.1</ProductID>
        <ProductID>openSUSE Tumbleweed:apptainer-1.1.8-1.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSetV3>
        <BaseScoreV3>7.8</BaseScoreV3>
        <VectorV3>CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H</VectorV3>
      </ScoreSetV3>
    </CVSSScoreSets>
  </Vulnerability>
</cvrfdoc>
