396 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

[openEuler-1.0-LTS] mm/mempolicy.c: fix out of bounds write in mpol_parse_str()

已完成
任务
创建于  
2023-03-08 14:51

What we are trying to do is change the '=' character to a NUL terminator and then at the end of the function we restore it back to an '='. The problem is there are two error paths where we jump to the end of the function before we have replaced the '=' with NUL. We end up putting the '=' in the wrong place (possibly one element before the start of the buffer).
Link: http://lkml.kernel.org/r/20200115055426.vdjwvry44nfug7yy@kili.mountain
Reported-by: syzbot+e64a13c5369a194d67df@syzkaller.appspotmail.com
Fixes: 095f1fc4ebf3 ("mempolicy: rework shmem mpol parsing and display")

评论 (1)

仉鹏 创建了任务
openeuler-ci-bot 添加了
 
sig/Kernel
标签
仉鹏 修改了描述
zhangchangzhong 通过src-openeuler/kernel Pull Request !981任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
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

搜索帮助