中危 OpenPrinting CUPS 资源管理错误漏洞(CVE-2023-34241)

CVE编号

CVE-2023-34241

利用情况

暂无

补丁情况

官方补丁

披露时间

2023-06-23
漏洞描述
OpenPrinting CUPS is a standards-based, open source printing system for Linux and other Unix-like operating systems. Starting in version 2.0.0 and prior to version 2.4.6, CUPS logs data of free memory to the logging service AFTER the connection has been closed, when it should have logged the data right before. This is a use-after-free bug that impacts the entire cupsd process.

The exact cause of this issue is the function `httpClose(con->http)` being called in `scheduler/client.c`. The problem is that httpClose always, provided its argument is not null, frees the pointer at the end of the call, only for cupsdLogClient to pass the pointer to httpGetHostname. This issue happens in function `cupsdAcceptClient` if LogLevel is warn or higher and in two scenarios: there is a double-lookup for the IP Address (HostNameLookups Double is set in `cupsd.conf`) which fails to resolve, or if CUPS is compiled with TCP wrappers and the connection is refused by rules from `/etc/hosts.allow` and `/etc/hosts.deny`.

Version 2.4.6 has a patch for this issue.
解决建议
"将组件 cups 升级至 2.4.6 及以上版本"
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 openprinting cups * From
(including)
2.2.0
Up to
(excluding)
2.4.6
运行在以下环境
系统 alma_linux_8 cups * Up to
(excluding)
2.2.6-54.el8_9
运行在以下环境
系统 alma_linux_9 cups * Up to
(excluding)
2.3.3op2-21.el9
运行在以下环境
系统 alpine_3.15 cups * Up to
(excluding)
2.3.3-r8
运行在以下环境
系统 alpine_3.16 cups * Up to
(excluding)
2.4.2-r2
运行在以下环境
系统 alpine_3.17 cups * Up to
(excluding)
2.4.2-r3
运行在以下环境
系统 amazon_2 cups * Up to
(excluding)
1.6.3-51.amzn2.0.1
运行在以下环境
系统 amazon_2023 cups * Up to
(excluding)
2.3.3op2-18.amzn2023.0.5
运行在以下环境
系统 amazon_AMI cups * Up to
(excluding)
1.4.2-67.22.amzn1
运行在以下环境
系统 debian_10 cups * Up to
(excluding)
2.2.10-6+deb10u8
运行在以下环境
系统 debian_11 cups * Up to
(excluding)
2.3.3op2-3+deb11u3
运行在以下环境
系统 debian_12 cups * Up to
(excluding)
2.4.2-3+deb12u1
运行在以下环境
系统 fedoraproject fedora 38 -
运行在以下环境
系统 fedora_37 cups * Up to
(excluding)
2.4.6-1.fc37
运行在以下环境
系统 fedora_38 cups * Up to
(excluding)
2.4.6-1.fc38
运行在以下环境
系统 kylinos_aarch64_V10 cups * Up to
(excluding)
2.2.13-19.p01.ky10
运行在以下环境
系统 kylinos_aarch64_V10HPC cups * Up to
(excluding)
2.4.0-10.ky10h
运行在以下环境
系统 kylinos_aarch64_V10SP1 cups * Up to
(excluding)
2.2.13-18.ky10
运行在以下环境
系统 kylinos_aarch64_V10SP2 cups * Up to
(excluding)
2.2.13-18.ky10
运行在以下环境
系统 kylinos_aarch64_V10SP3 cups * Up to
(excluding)
2.2.13-19.p01.ky10
运行在以下环境
系统 kylinos_loongarch64_V10SP1 cups * Up to
(excluding)
2.2.13-18.a.ky10
运行在以下环境
系统 kylinos_loongarch64_V10SP3 cups * Up to
(excluding)
2.2.13-19.p01.a.ky10
运行在以下环境
系统 kylinos_x86_64_V10 cups * Up to
(excluding)
2.2.13-19.p01.ky10
运行在以下环境
系统 kylinos_x86_64_V10HPC cups * Up to
(excluding)
2.4.0-10.ky10h
运行在以下环境
系统 kylinos_x86_64_V10SP1 cups * Up to
(excluding)
2.2.13-18.ky10
运行在以下环境
系统 kylinos_x86_64_V10SP2 cups * Up to
(excluding)
2.2.13-18.ky10
运行在以下环境
系统 kylinos_x86_64_V10SP3 cups * Up to
(excluding)
2.2.13-19.p01.ky10
运行在以下环境
系统 opensuse_5.3 libcups2 * Up to
(excluding)
2.2.7-150000.3.46.1
运行在以下环境
系统 opensuse_Leap_15.4 cups * Up to
(excluding)
2.2.7-150000.3.46.1
运行在以下环境
系统 opensuse_Leap_15.5 cups * Up to
(excluding)
2.2.7-150000.3.46.1
运行在以下环境
系统 oracle_8 cups * Up to
(excluding)
2.2.6-54.el8_9
运行在以下环境
系统 oracle_9 cups * Up to
(excluding)
2.3.3op2-21.el9
运行在以下环境
系统 redhat_8 cups * Up to
(excluding)
2.2.6-54.el8_9
运行在以下环境
系统 redhat_9 cups * Up to
(excluding)
2.3.3op2-21.el9
运行在以下环境
系统 suse_12_SP5 cups * Up to
(excluding)
1.7.5-20.46.1
运行在以下环境
系统 ubuntu_20.04 cups * Up to
(excluding)
2.3.1-9ubuntu1.4
运行在以下环境
系统 ubuntu_22.04 cups * Up to
(excluding)
2.4.1op1-1ubuntu4.4
运行在以下环境
系统 ubuntu_22.10 cups * Up to
(excluding)
2.4.2-1ubuntu2.2
阿里云评分
5.8
  • 攻击路径
    本地
  • 攻击复杂度
    复杂
  • 权限要求
    普通权限
  • 影响范围
    越权影响
  • EXP成熟度
    未验证
  • 补丁情况
    官方补丁
  • 数据保密性
    无影响
  • 数据完整性
    无影响
  • 服务器危害
    无影响
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-416 释放后使用
阿里云安全产品覆盖情况