Open
CVE-2019-20633 #6
openeuler-ci-botAdd on  Jan 14, 2021
openeuler-ci-bot
openeuler-ci-botCollaborators
Jan 14, 2021 Create

一、漏洞信息
漏洞编号:CVE-2019-20633
漏洞归属组件:patch
漏洞归属的版本:2.7.6
CVSS V3.0分值:
BaseScore:5.5 Medium
Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
漏洞简述:
GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exists because of an incomplete fix for CVE-2018-6952.
漏洞公开时间:2020-03-26 01:15
漏洞创建时间:2021-01-14 06:00:56
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2019-20633

更多参考(点击展开)
参考来源 参考链接 来源链接
MISC https://savannah.gnu.org/bugs/index.php?56683
redhat https://access.redhat.com/security/cve/CVE-2019-20633

漏洞分析指导链接:
https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
其它
漏洞补丁信息:

详情(点击展开)

无

二、漏洞分析结构反馈
影响性分析说明:
各分支均受影响,精心制作的补丁文件可以导致拒绝服务;
openEuler评分:
5.5
Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS(2.7.6):受影响
2.openEuler-20.09(2.7.6):受影响
3.openEuler-20.03-LTS-SP1(2.7.6):受影响
4.openEuler-24.03-LTS:受影响
5.master(2.7.6):受影响
6.openEuler-22.03-LTS-SP4:

修复是否涉及abi变化(是/否):
1.openEuler-24.03-LTS:否
2.master(2.7.6):否
3.openEuler-22.03-LTS-SP4:

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Jan 14, 2021 添加了   CVE/UNFIXED 标签
openeuler-ci-botopeneuler-ci-botCollaborators
Jan 14, 2021 将负责人设置为hexiaowen
openeuler-ci-botopeneuler-ci-botCollaborators
Jan 14, 2021 将关联仓库设置为src-openEuler/patch
openeuler-ci-botopeneuler-ci-botCollaborators
Jan 14, 2021 创建了CVE和安全问题
openeuler-ci-bot
openeuler-ci-botCollaborators
Jan 14, 2021 Comments:

@overweight ,@zhujianwei001 ,@xiezhipeng1 ,@hanxinke ,@shanshishi ,@licihua ,@zhuchunyi ,@miao_kaibo
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, openEuler评分, 受影响版本排查(受影响/不受影响))不能省略,省略后cve-manager将无法正常解析填写内容.


影响性分析说明:

openEuler评分: (评分和向量)

受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS:
2.openEuler-20.09:


issue处理具体操作请参考:
https://gitee.com/openeuler/cve-manager/blob/master/doc/md/manual.md
pr关联issue具体操作请参考:
https://gitee.com/help/articles/4142

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Jan 14, 2021 Comments:

Hey openeuler-ci-bot, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

likedislike
Lliujingang09
Jan 14, 2021 将优先级设置为次要
shenyangyangshenyangyangCollaborators
Jan 14, 2021 将负责人从 hexiaowen 修改为panxiaohe
AAtomGit-Bot
Jan 15, 2021 将任务状态从 待办的 修改为已完成
openeuler-ci-bot
openeuler-ci-botCollaborators
Jan 15, 2021 Comments:

@overweight ,@zhujianwei001 ,@xiezhipeng1 ,@hanxinke ,@shanshishi ,@licihua ,@zhuchunyi ,@miao_kaibo ,@liquor1 请完成以下操作:

状态 需分析 内容
待分析 影响性分析说明 影响性分析说明没有填写或按正确格式填写
已分析 openEulerScore 5.5
已分析 openEulerVector AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
待分析 受影响版本排查 受影响版本排查 没有分析或未按正确格式填写:openEuler-20.03-LTS:,openEuler-20.09:

请确认分析内容的准确性,待分析内容请填写完整,否则将无法关闭当前issue.

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Jan 15, 2021 修改了描述
openeuler-ci-botopeneuler-ci-botCollaborators
Jan 15, 2021 将任务状态从 已完成 修改为待办的
Jan 15, 2021 Comments:

原理分析:
GNU patch到2.7.6在pch.c中的函数another_hunk中包含了一个free(p_line[p_end]) Double free漏洞,可以通过一个精心制作的补丁文件导致拒绝服务。
注意:由于CVE-2018-6952修复不完整,此问题存在。

影响性分析说明:各分支均受影响,精心制作的补丁文件可以导致拒绝服务;

openEuler评分:5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

受影响版本:2.7.6及之前。

规避方案:避免用patch去处理未知来源的文件

受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS:受影响
2.openEuler-20.09:受影响
3.openEuler-20.03-LTS-SP1:受影响

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Jan 15, 2021 Comments:

@panxh_purple 经过 cve-manager 解析, 已分析的内容如下表所示:

状态 需分析 内容
已分析 影响性分析说明 各分支均受影响,精心制作的补丁文件可以导致拒绝服务;
已分析 openEulerScore 5.5
已分析 openEulerVector AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
已分析 受影响版本排查 openEuler-20.03-LTS:受影响,openEuler-20.09:受影响,openEuler-20.03-LTS-SP1:受影响

请确认分析内容的准确性, 确认无误后, 您可以进行后续步骤, 否则您可以继续分析.

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Jan 15, 2021 修改了描述
Jan 15, 2021 Comments:

暂无补丁,先挂起。

likedislike
AAtomGit-Bot
Jan 15, 2021 将任务状态从 待办的 修改为已完成
openeuler-ci-bot
openeuler-ci-botCollaborators
Jan 15, 2021 Comments:

@overweight ,@zhujianwei001 ,@xiezhipeng1 ,@hanxinke ,@shanshishi ,@licihua ,@zhuchunyi ,@miao_kaibo ,@liquor1
关闭issue前,需要将受影响的分支在合并pr时关联上当前issue编号: #I2D66L
受影响分支: openEuler-20.03-LTS
具体操作参考: https://gitee.com/help/articles/4142

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Jan 15, 2021 将任务状态从 已完成 修改为待办的
AAtomGit-Bot
Jan 15, 2021 将任务状态从 待办的 修改为已挂起
Sep 27, 2021 Comments:

无补丁,继续挂起

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Sep 27, 2021 Comments:

@panxh_purple 当前issue状态为: 已挂起,请先修改issue状态, 否则评论无法被识别.

likedislike
Ppanxh_purple
Sep 27, 2021 移除了   CVE/UNFIXED 标签
Ppanxh_purple
Sep 27, 2021 添加了   CVE/PENDING 标签
Ppanxh_purple
Sep 27, 2021 添加了   CVE/UNFIXED 标签
Feb 16, 2022 Comments:

社区无补丁,继续挂起

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Feb 16, 2022 Comments:

@panxh_purple 当前issue状态为: 已挂起,请先修改issue状态, 否则评论无法被识别.

likedislike
TommyLikeTommyLike
Apr 1, 2022 将计划截止日期设置为2021-02-13
TommyLikeTommyLike
Apr 1, 2022 将计划开始日期设置为2021-01-14
Oct 18, 2022 Comments:

目前是否可处理

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 18, 2022 Comments:

@meiwei-space 当前issue状态为: 已挂起,请先修改issue状态, 否则评论无法被识别.

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 19, 2022 Comments:

@meiwei-space 当前issue状态为: 已挂起,请先修改issue状态, 否则评论无法被识别.

likedislike
Oct 19, 2022 Comments:

@meiwei-space 当前issue状态为: 已挂起,请先修改issue状态, 否则评论无法被识别.

请修改issue状态为待办

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 19, 2022 Comments:

@meiwei-space 当前issue状态为: 已挂起,请先修改issue状态, 否则评论无法被识别.

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Dec 3, 2022 Comments:

@yixiangzhike 当前issue状态为: 已挂起,请先修改issue状态, 否则评论无法被识别.

likedislike
Yyixiangzhike
Jan 10, 2023 关联了src-openEuler/patch Pull Request !19
Yyixiangzhike
Jan 10, 2023 关联了src-openEuler/patch Pull Request !20
openeuler-ci-botopeneuler-ci-botCollaborators
Sep 10, 2024 修改了描述
openeuler-ci-botopeneuler-ci-botCollaborators
Sep 10, 2024 将任务状态从 已挂起 修改为待办的
openeuler-ci-botopeneuler-ci-botCollaborators
Sep 10, 2024 修改了描述
openeuler-ci-botopeneuler-ci-botCollaborators
Sep 10, 2024 修改了描述
Sep 10, 2024 Comments:

影响性分析说明:
各分支均受影响,精心制作的补丁文件可以导致拒绝服务;

openEuler评分:
5.5
Vector:CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS(2.7.6):受影响
2.openEuler-20.09(2.7.6):受影响
3.openEuler-20.03-LTS-SP1(2.7.6):受影响
4.openEuler-24.03-LTS:受影响
5.master(2.7.6):受影响

修复是否涉及abi变化(是/否):
2.openEuler-24.03-LTS:否
3.master(2.7.6):否

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Sep 10, 2024 Comments:

@panxh_purple 经过 cve-manager 解析, 已分析的内容如下表所示:

状态 需分析 内容
已分析 1.影响性分析说明 各分支均受影响,精心制作的补丁文件可以导致拒绝服务;
已分析 2.openEulerScore 5.5
已分析 3.openEulerVector AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
已分析 4.受影响版本排查 openEuler-20.03-LTS:受影响,openEuler-20.09:受影响,openEuler-20.03-LTS-SP1:受影响,openEuler-24.03-LTS:受影响,master:受影响
已分析 5.修复是否涉及abi变化 openEuler-24.03-LTS:否,master:否

请确认分析内容的准确性, 确认无误后, 您可以进行后续步骤, 否则您可以继续分析.

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Sep 10, 2024 修改了描述
Sep 10, 2024 Comments:

社区无人回应:https://savannah.gnu.org/bugs/index.php?56683

/reason 社区无补丁,继续挂起

likedislike
AAtomGit-Bot
Sep 10, 2024 将任务状态从 待办的 修改为已挂起
openeuler-ci-bot
openeuler-ci-botCollaborators
Sep 10, 2024 Comments:
issue状态 操作者 原因
已挂起 xieminmin 社区无补丁,继续挂起
likedislike
Yyixiangzhike
Feb 26, 2025 取消关联src-openEuler/patch Pull Request !19
Yyixiangzhike
Feb 26, 2025 取消关联src-openEuler/patch Pull Request !20
huijing_zhang
huijing_zhang
3 days ago Comments:

CVE-2019-20633 影响性分析

结论:openEuler 26.09 不受影响。

项目 内容
26.09 携带版本 patch 2.8(patch.spec,Release 2)
漏洞影响范围 GNU patch through 2.7.6(NVD 描述)
漏洞根因 CVE-2018-6952 的不完整修复:another_hunk 清理循环中 fake 行区间(p_efake/p_bfake)内 free(p_line[p_end]) 逐行 free,导致区间重复释放

代码证据:patch 2.8 的 src/pch.c 清理循环(another_hunk 开头)已是修复后形态:

while (p_end >= 0) {
    if (p_end == p_efake)
        p_end = p_bfake;        /* don't free twice */
    else
        free(p_line[p_end]);
    p_end--;
}
assert (p_end < 0);
p_efake = -1;

遇到 p_efake 时直接跳回 p_bfake,整个 fake 区间的行不会被 free,2.7.6 之前逐行递减导致的 double free 已消除。2.8 是 2019 年后基于上游 master 重新发布的版本(NEWS 2.8 无相关修复项,因为该修复在 2.7.6 发布后已合入 master),26.09 不在受影响版本范围内。

注:Debian 2.7.6-7 补丁集中亦无 CVE-2019-20633 单独补丁(其修复包含在后续 2.8 重构中),各 2.7.6 发行版补丁列表与此一致。

likedislike