Skip to content

fix(cve): CVE-2026-94284 - ximcp: bound XIM_REGISTER_TRIGGERKEYS keylist lengths to the packet - #12

Merged
Zeno-sole merged 3 commits into
masterfrom
fix-cve/CVE-2026-94284
Oct 29, 2026
Merged

Zeno-sole merged 3 commits into
masterfrom
fix-cve/CVE-2026-94284

Conversation

@deepin-ci-robot

@deepin-ci-robot deepin-ci-robot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

CVE: CVE-2026-94284 (unknown) - X.Org libX11 的 ximcp 模块存在越界读取漏洞:_XimRegisterTriggerKeysCallback() 从传输层收到完整数据包长度,但未将其传给 _XimRegisterTriggerkey(),后者直接信任报文中的 on-keys 与 off-keys 长度字段用于 Xmalloc 与 memcpy 操作。攻击者可构造外层帧合法但内层长度字段超大的恶意 XIM_REGISTER_TRIGGERKEYS 消息,导致越界读取并使客户端崩溃。
Upstream: https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/924fc91f08ece9cddc93609b4dc945a9cc90ea12

Co-authored-by: hudeng hudeng@deepin.org
Generated-By: deepseek-v4-flash


CVE: CVE-2026-94283 (unknown) - _XimGetAttributeID() trusted the wire-embedded nBytesIMATTR/nBytesICATTR values and per-attribute lengths from a malicious or malformed XIM_OPEN_REPLY without comparing them to the actual number of bytes returned by _XimRead(), allowing potential out-of-bounds reads (and possible client crashes) while parsing IM/IC attribute lists.
Upstream: https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/f263bbca24d04c766775e7af2e203ca41b4ece2e

Co-authored-by: hudeng hudeng@deepin.org
Generated-By: deepseek-v4-flash


CVE: CVE-2026-94285 (unknown) - X.Org libX11 的 lcGenConv 模块存在越界读取漏洞:byteM_parse_codeset() 遍历候选字节型字符集时会按 codeset->length 解引用输入缓冲区,但未接收剩余输入长度参数,也未在读取前检查可用字节数。当输入末尾的字节是多字节字符集(如 GBK、Big5)的合法首字节时,函数在匹配第二字节范围时会读取超出调用方缓冲区一个字节的数据。修复方案为将剩余字节数传入 byteM_parse_codeset(),并跳过长度超出可用输入的候选字符集。
Upstream: https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/797eaf0bd69524144e0df7af516b680f4b7694e9

Co-authored-by: hudeng hudeng@deepin.org
Generated-By: deepseek-v4-flash

…ist lengths to the packet

CVE: CVE-2026-94284 (unknown) - X.Org libX11 的 ximcp 模块存在越界读取漏洞:_XimRegisterTriggerKeysCallback() 从传输层收到完整数据包长度,但未将其传给 _XimRegisterTriggerkey(),后者直接信任报文中的 on-keys 与 off-keys 长度字段用于 Xmalloc 与 memcpy 操作。攻击者可构造外层帧合法但内层长度字段超大的恶意 XIM_REGISTER_TRIGGERKEYS 消息,导致越界读取并使客户端崩溃。
Upstream: https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/924fc91f08ece9cddc93609b4dc945a9cc90ea12

Co-authored-by: hudeng <hudeng@deepin.org>
Generated-By: deepseek-v4-flash
@deepin-ci-robot

Copy link
Copy Markdown
Contributor Author

/hold
因为该quilt包的上游版本号变更,详情见: deepin-community/infra-settings#134

@deepin-ci-robot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zccrs for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions

Copy link
Copy Markdown

TAG Bot

TAG: 2%1.8.12-1deepin2
EXISTED: no
DISTRIBUTION: unstable

deepin-ci-robot and others added 2 commits October 27, 2026 22:15
…ths to the received packet

CVE: CVE-2026-94283 (unknown) - _XimGetAttributeID() trusted the wire-embedded nBytesIMATTR/nBytesICATTR values and per-attribute lengths from a malicious or malformed XIM_OPEN_REPLY without comparing them to the actual number of bytes returned by _XimRead(), allowing potential out-of-bounds reads (and possible client crashes) while parsing IM/IC attribute lists.
Upstream: https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/f263bbca24d04c766775e7af2e203ca41b4ece2e

Co-authored-by: hudeng <hudeng@deepin.org>
Generated-By: deepseek-v4-flash
…ds to remaining input length

CVE: CVE-2026-94285 (unknown) - X.Org libX11 的 lcGenConv 模块存在越界读取漏洞:byteM_parse_codeset() 遍历候选字节型字符集时会按 codeset->length 解引用输入缓冲区,但未接收剩余输入长度参数,也未在读取前检查可用字节数。当输入末尾的字节是多字节字符集(如 GBK、Big5)的合法首字节时,函数在匹配第二字节范围时会读取超出调用方缓冲区一个字节的数据。修复方案为将剩余字节数传入 byteM_parse_codeset(),并跳过长度超出可用输入的候选字符集。
Upstream: https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/797eaf0bd69524144e0df7af516b680f4b7694e9

Co-authored-by: hudeng <hudeng@deepin.org>
Generated-By: deepseek-v4-flash
@Zeno-sole
Zeno-sole merged commit cd21383 into master Oct 29, 2026
7 of 10 checks passed
@Zeno-sole

Copy link
Copy Markdown
Contributor

/integrate

@github-actions

Copy link
Copy Markdown

AutoIntegrationPr Bot
auto integrate with pr url: deepin-community/Repository-Integration#4714
PrNumber: 4714
PrBranch: auto-integration-40884558071

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants