402 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

[OLK-5.10]Add safe guard for malicious PGP key

已完成
任务
创建于  
2022-07-14 16:54

问题背景

补丁a98cb7a4b757 ("KEYS: Provide PGP key description autogeneration")添加了对user id packet的支持,并且允许通过user id和ctx.fingerprint生成key description。ctx.fingerprint是在读取public key packet的时候生成的,正常情况下pgp key一定会带有public key packet。但是如果用户构造一个恶意的或者提供了一个有问题的只有user id packet没有public key packet的pgp key,则会使得ctx.fingerprint为空。此时,如果继续处理并读取ctx.fingerprint,则会造成读越界问题和NULL pointer deference问题。

验证方式

通过系统调用尝试加载一个只有user id patcket的pgp公钥,观察是否发生读越界或者NULL pointer deference问题。

评论 (1)

GUO Zihua 创建了任务

Hi redtailbullet, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers: @YangYingliang , @pi3orama , @成坚 (CHENG Jian) , @jiaoff , @zhengzengkai , @Qiuuuuu , @刘勇强 , @Xie XiuQi

openeuler-ci-bot 添加了
 
sig/Kernel
标签
GUO Zihua 修改了描述
zhengzengkai 通过src-openeuler/kernel Pull Request !686任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助