中危 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 | ||||
运行在以下环境 | |||||||||
系统 | 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 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | cups | * | Up to (excluding) 2.4.2-5 | |||||
运行在以下环境 | |||||||||
系统 | fedoraproject | fedora | 38 | - | |||||
运行在以下环境 | |||||||||
系统 | fedora_37 | cups-client-debuginfo | * | Up to (excluding) 2.4.6-1.fc37 | |||||
运行在以下环境 | |||||||||
系统 | fedora_38 | cups-client-debuginfo | * | Up to (excluding) 2.4.6-1.fc38 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_5.3 | cups-config | * | Up to (excluding) 2.2.7-150000.3.46.1 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.4 | libcupsppdc1 | * | Up to (excluding) 2.2.7-150000.3.46.1 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.5 | libcupsppdc1 | * | Up to (excluding) 2.2.7-150000.3.46.1 | |||||
运行在以下环境 | |||||||||
系统 | suse_12_SP5 | cups-client | * | 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 | |||||
运行在以下环境 | |||||||||
系统 | unionos_d | cups | * | Up to (excluding) 2.3.0.5-deepin1 | |||||
运行在以下环境 | |||||||||
系统 | unionos_e | cups | * | Up to (excluding) cups-2.2.13-17.up4.uel20 | |||||
- 攻击路径 本地
- 攻击复杂度 复杂
- 权限要求 普通权限
- 影响范围 越权影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-416 | 释放后使用 |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论