<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="sa-render.xsl"?>
  <update from="huaweicloud.com" type="security" status="stable" version="1">
    <id>HCE2-SA-2024-0268</id>
    <title>An update for cups is now available for HCE 2.0</title>
    <severity>Important</severity>
    <release>HCE 2.0</release>
    <issued date="2024-11-19 07:40:47"/>
    <updated date="2024-11-19 07:40:47"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2023-4504" id="CVE-2023-4504" title="CVE-2023-4504 Base Score: 7.0 Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-35235" id="CVE-2024-35235" title="CVE-2024-35235 Base Score: 4.4 Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2024-47175" id="CVE-2024-47175" title="CVE-2024-47175 Base Score: 8.6 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N" type="cve"/>
    </references>
    <description>Security Fix(es):

Due to failure in validating the length provided by an attacker-crafted PPD PostScript document, CUPS and libppd are susceptible to a heap-based buffer overflow and possibly code execution. This issue has been fixed in CUPS version 2.4.7, released in September of 2023.
 (CVE-2023-4504)

OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. In versions 2.4.8 and earlier, when starting the cupsd server with a Listen configuration item pointing to a symbolic link, the cupsd process can be caused to perform an arbitrary chmod of the provided argument, providing world-writable access to the target. Given that cupsd is often running as root, this can result in the change of permission of any user or system files to be world writable. Given the aforementioned Ubuntu AppArmor context, on such systems this vulnerability is limited to those files modifiable by the cupsd process. In that specific case it was found to be possible to turn the configuration of the Listen argument into full control over the cupsd.conf and cups-files.conf configuration files. By later setting the User and Group arguments in cups-files.conf, and printing with a printer configured by PPD with a `FoomaticRIPCommandLine` argument, arbitrary user and group (not root) command execution could be achieved, which can further be used on Ubuntu systems to achieve full root command execution. Commit ff1f8a623e090dee8a8aadf12a6a4b25efac143d contains a patch for the issue.
 (CVE-2024-35235)

CUPS is a standards-based, open-source printing system, and `libppd` can be used for legacy PPD file support. The `libppd` function `ppdCreatePPDFromIPP2` does not sanitize IPP attributes when creating the PPD buffer. When used in combination with other functions such as `cfGetPrinterAttributes5`, can result in user controlled input and ultimately code execution via Foomatic. This vulnerability can be part of an exploit chain leading to remote code execution (RCE), as described in CVE-2024-47176. (CVE-2024-47175)
</description>
    <pkglist>
      <collection short="HCE 2.0" package="cups">
        <name>HCE 2.0</name>
        <package arch="aarch64" name="cups" version="2.4.0" release="9.r5.hce2">
          <filename>cups-2.4.0-9.r5.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="cups-client" version="2.4.0" release="9.r5.hce2">
          <filename>cups-client-2.4.0-9.r5.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="cups-devel" version="2.4.0" release="9.r5.hce2">
          <filename>cups-devel-2.4.0-9.r5.hce2.aarch64.rpm</filename>
        </package>
        <package arch="noarch" name="cups-filesystem" version="2.4.0" release="9.r5.hce2">
          <filename>cups-filesystem-2.4.0-9.r5.hce2.noarch.rpm</filename>
        </package>
        <package arch="noarch" name="cups-help" version="2.4.0" release="9.r5.hce2">
          <filename>cups-help-2.4.0-9.r5.hce2.noarch.rpm</filename>
        </package>
        <package arch="aarch64" name="cups-ipptool" version="2.4.0" release="9.r5.hce2">
          <filename>cups-ipptool-2.4.0-9.r5.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="cups-libs" version="2.4.0" release="9.r5.hce2">
          <filename>cups-libs-2.4.0-9.r5.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="cups-lpd" version="2.4.0" release="9.r5.hce2">
          <filename>cups-lpd-2.4.0-9.r5.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="cups-printerapp" version="2.4.0" release="9.r5.hce2">
          <filename>cups-printerapp-2.4.0-9.r5.hce2.aarch64.rpm</filename>
        </package>
        <package arch="x86_64" name="cups" version="2.4.0" release="9.r5.hce2">
          <filename>cups-2.4.0-9.r5.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="cups-client" version="2.4.0" release="9.r5.hce2">
          <filename>cups-client-2.4.0-9.r5.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="cups-devel" version="2.4.0" release="9.r5.hce2">
          <filename>cups-devel-2.4.0-9.r5.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="cups-ipptool" version="2.4.0" release="9.r5.hce2">
          <filename>cups-ipptool-2.4.0-9.r5.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="cups-libs" version="2.4.0" release="9.r5.hce2">
          <filename>cups-libs-2.4.0-9.r5.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="cups-lpd" version="2.4.0" release="9.r5.hce2">
          <filename>cups-lpd-2.4.0-9.r5.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="cups-printerapp" version="2.4.0" release="9.r5.hce2">
          <filename>cups-printerapp-2.4.0-9.r5.hce2.x86_64.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
