Welcome To openEuler Community
Hey @Ax0ps , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: Kernel ,
and any of the maintainers: @hanjunguo, @oekernel, @sanglipeng, @zeng_zhaorong, @zhengzengkai ,
and any of the committers: @CTC-XiboWang, @Frank_Sae, @GongLei-, @LiuYongQiang0816, @SuperSix173, @Tankll2021, @TrueAI, @allen-shi, @baratta, @caixu-blue, @chenjiesong, @chenjunxin1992, @chenke2026, @chiqijun, @chriszjh, @duanqiangwen, @fangfeng123, @fanghaiqinghw, @gaojuxin09, @gouhao2022, @guzitao, @hanjunguo, @hanliyang, @hellotcc, @hewanhan, @hjx_gitff, @hongwu-wang, @htforge, @hu-chunzhi, @hunan4222, @jackknight, @jerry_lilijun, @junlong-zheng, @juntianlinux, @kailiu42, @kaitiandu, @kazero00, @kevinzhu1, @kile2009, @koishimind, @kongzizaixian, @kylin-mayukun, @leoliu-oc, @li-huisong, @linan888, @linyunsheng, @liulongfang, @lostway1, @luckky7, @lujialin2, @markyuan4ta21, @mingqian218472, @mufengyan, @pigalsofine, @qinirao, @robinorg, @rock_hw, @sanglipeng, @shu-shengming, @shuaijiakun, @sming56_admin, @stavewu, @stkid, @wangboe2022, @wenzhiwei11, @whoisxxx, @wkfxxx, @woqidaideshi, @wsoydl, @xingmz1, @xukuohai, @yeweihua999, @ygn-ndwd-official, @yonghu_4dc5, @young-sun, @yuehaibing_planb, @yuzenghui1, @zhang-changzhong, @zhangyi089, @zhujianwei001, @zichengqu, @zqiao216 .


【缺陷描述】:请补充详细的缺陷问题现象描述
drivers/ub/urma/ubagg/ubagg_ioctl.c:170-179中的ubagg_dev_exists()函数存在Use After Free风险。当线程A使用ubagg_dev_exists()对链表g_ubagg_dev_list进行遍历时,由于未在该过程中对链表加锁,存在线程B将某个节点删除,导致线程A使用已被释放指针的风险。
一、缺陷信息
ubagg_dev_exists函数中存在的UAF风险
【缺陷所属的os版本】
NAME="openEuler"
VERSION="24.03 (LTS-SP3)"
ID="openEuler"
VERSION_ID="24.03"
PRETTY_NAME="openEuler 24.03 (LTS-SP3)"
ANSI_COLOR="0;31"
【内核版本】
6.6.0-145.0.0.600.oe2403sp3.aarch64
【缺陷所属软件及版本号】
kernel-devel-6.6.0-145.0.0.600.oe2403sp3.aarch64
【环境信息】
硬件信息
宿主机 aarch64
软件信息
umdk-urma-lib-25.12.0-B063.aarch64
umdk-urma-bin-25.12.0-B063.aarch64
umdk-urma-tools-25.12.0-B063.aarch64
umdk-urma-devel-25.12.0-B063.aarch64
umdk-urma-kmod-devel-25.12.0-208.1.0.UT.aarch64
umdk-urma-kmod-25.12.0-208.1.0.UT.aarch64
网络信息
2 节点 clos 组网
【问题复现步骤】
对链表g_ubagg_dev_list进行遍历时,用另一线程删除节点
【实际结果】
触发UAF
【期望结果】
无UAF
【其他相关附件信息】
【缺陷详情及分析指导参考链接】
二、缺陷分析结构反馈
影响性分析说明:
缺陷严重等级:(Critical/High/Moderate/Low)
缺陷根因说明:
受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2