登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
代码拉取完成,页面将自动刷新
仓库状态说明
开源项目
>
其他开源
>
操作系统
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
128
Star
73
Fork
331
src-openEuler
/
kernel
关闭
代码
Issues
1197
Pull Requests
35
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
CVE-2024-40962
已完成
#IACR20
CVE和安全问题
openeuler-ci-bot
拥有者
创建于
2024-07-13 16:15
一、漏洞信息 漏洞编号:[CVE-2024-40962](https://nvd.nist.gov/vuln/detail/CVE-2024-40962) 漏洞归属组件:[kernel](https://gitee.com/src-openeuler/kernel) 漏洞归属的版本:4.19.140,4.19.194,4.19.90,5.10.0,6.1.0,6.1.14,6.1.19,6.1.5,6.1.6,6.1.8,6.4.0,6.6.0 CVSS V2.0分值: BaseScore:0.0 Medium Vector:CVSS:2.0/ 漏洞简述: In the Linux kernel, the following vulnerability has been resolved:btrfs: zoned: allocate dummy checksums for zoned NODATASUM writesShin ichiro reported that when he s running fstests test-casebtrfs/167 on emulated zoned devices, he s seeing the following NULLpointer dereference in btrfs_zone_finish_endio() : Oops: general protection fault, probably for non-canonical address 0xdffffc0000000011: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000088-0x000000000000008f] CPU: 4 PID: 2332440 Comm: kworker/u80:15 Tainted: G W 6.10.0-rc2-kts+ #4 Hardware name: Supermicro Super Server/X11SPi-TF, BIOS 3.3 02/21/2020 Workqueue: btrfs-endio-write btrfs_work_helper [btrfs] RIP: 0010:btrfs_zone_finish_endio.part.0+0x34/0x160 [btrfs] RSP: 0018:ffff88867f107a90 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff893e5534 RDX: 0000000000000011 RSI: 0000000000000004 RDI: 0000000000000088 RBP: 0000000000000002 R08: 0000000000000001 R09: ffffed1081696028 R10: ffff88840b4b0143 R11: ffff88834dfff600 R12: ffff88840b4b0000 R13: 0000000000020000 R14: 0000000000000000 R15: ffff888530ad5210 FS: 0000000000000000(0000) GS:ffff888e3f800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f87223fff38 CR3: 00000007a7c6a002 CR4: 00000000007706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: <TASK> ? __die_body.cold+0x19/0x27 ? die_addr+0x46/0x70 ? exc_general_protection+0x14f/0x250 ? asm_exc_general_protection+0x26/0x30 ? do_raw_read_unlock+0x44/0x70 ? btrfs_zone_finish_endio.part.0+0x34/0x160 [btrfs] btrfs_finish_one_ordered+0x5d9/0x19a0 [btrfs] ? __pfx_lock_release+0x10/0x10 ? do_raw_write_lock+0x90/0x260 ? __pfx_do_raw_write_lock+0x10/0x10 ? __pfx_btrfs_finish_one_ordered+0x10/0x10 [btrfs] ? _raw_write_unlock+0x23/0x40 ? btrfs_finish_ordered_zoned+0x5a9/0x850 [btrfs] ? lock_acquire+0x435/0x500 btrfs_work_helper+0x1b1/0xa70 [btrfs] ? __schedule+0x10a8/0x60b0 ? __pfx___might_resched+0x10/0x10 process_one_work+0x862/0x1410 ? __pfx_lock_acquire+0x10/0x10 ? __pfx_process_one_work+0x10/0x10 ? assign_work+0x16c/0x240 worker_thread+0x5e6/0x1010 ? __pfx_worker_thread+0x10/0x10 kthread+0x2c3/0x3a0 ? trace_irq_enable.constprop.0+0xce/0x110 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x31/0x70 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK>Enabling CONFIG_BTRFS_ASSERT revealed the following assertion totrigger: assertion failed: !list_empty(&ordered->list), in fs/btrfs/zoned.c:1815This indicates, that we re missing the checksums list on theordered_extent. As btrfs/167 is doing a NOCOW write this is to beexpected.Further analysis with drgn confirmed the assumption: >>> inode = prog.crashed_thread().stack_trace()[11][ ordered ].inode >>> btrfs_inode = drgn.container_of(inode, struct btrfs_inode , vfs_inode ) >>> print(btrfs_inode.flags) (u32)1As zoned emulation mode simulates conventional zones on regular devices,we cannot use zone-append for writing. But we re only attaching dummychecksums if we re doing a zone-append write.So for NOCOW zoned data writes on conventional zones, also attach adummy checksum. 漏洞公开时间:2024-07-12 21:15:18 漏洞创建时间:2024-07-27 01:57:30 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2024-40962 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/082b3d4e788953a3ff42ecdb70c4210149076285 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/25cfe59f4470a051d1b80f51fa0ca3a5048e4a19 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/cebae292e0c32a228e8f2219c270a7237be24a6a | | | suse_bugzilla | http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-40962 | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | suse_bugzilla | https://www.cve.org/CVERecord?id=CVE-2024-40962 | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | suse_bugzilla | https://git.kernel.org/stable/c/082b3d4e788953a3ff42ecdb70c4210149076285 | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | suse_bugzilla | https://git.kernel.org/stable/c/25cfe59f4470a051d1b80f51fa0ca3a5048e4a19 | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | suse_bugzilla | https://git.kernel.org/stable/c/cebae292e0c32a228e8f2219c270a7237be24a6a | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | suse_bugzilla | https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-40962.mbox | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | ubuntu | https://www.cve.org/CVERecord?id=CVE-2024-40962 | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://git.kernel.org/linus/cebae292e0c32a228e8f2219c270a7237be24a6a (6.10-rc5) | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://git.kernel.org/stable/c/082b3d4e788953a3ff42ecdb70c4210149076285 | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://git.kernel.org/stable/c/25cfe59f4470a051d1b80f51fa0ca3a5048e4a19 | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://git.kernel.org/stable/c/cebae292e0c32a228e8f2219c270a7237be24a6a | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://nvd.nist.gov/vuln/detail/CVE-2024-40962 | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://launchpad.net/bugs/cve/CVE-2024-40962 | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://security-tracker.debian.org/tracker/CVE-2024-40962 | https://ubuntu.com/security/CVE-2024-40962 | | debian | | https://security-tracker.debian.org/tracker/CVE-2024-40962 | | cve_search | | https://git.kernel.org/stable/c/082b3d4e788953a3ff42ecdb70c4210149076285 | | cve_search | | https://git.kernel.org/stable/c/25cfe59f4470a051d1b80f51fa0ca3a5048e4a19 | | cve_search | | https://git.kernel.org/stable/c/cebae292e0c32a228e8f2219c270a7237be24a6a | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: openBrain开源漏洞感知系统 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> | 影响的包 | 修复版本 | 修复补丁 | 问题引入补丁 | 来源 | | ------- | -------- | ------- | -------- | --------- | | linux | | https://git.kernel.org/linus/cebae292e0c32a228e8f2219c270a7237be24a6a | https://git.kernel.org/linus/cbfce4c7fbde23cc8bcba44822a58c728caf6ec9 | ubuntu | </details> 二、漏洞分析结构反馈 影响性分析说明: In the Linux kernel, the following vulnerability has been resolved:btrfs: zoned: allocate dummy checksums for zoned NODATASUM writesShin ichiro reported that when he s running fstests test-casebtrfs/167 on emulated zoned devices, he s seeing the following NULLpointer dereference in btrfs_zone_finish_endio() : Oops: general protection fault, probably for non-canonical address 0xdffffc0000000011: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000088-0x000000000000008f] CPU: 4 PID: 2332440 Comm: kworker/u80:15 Tainted: G W 6.10.0-rc2-kts+ #4 Hardware name: Supermicro Super Server/X11SPi-TF, BIOS 3.3 02/21/2020 Workqueue: btrfs-endio-write btrfs_work_helper [btrfs] RIP: 0010:btrfs_zone_finish_endio.part.0+0x34/0x160 [btrfs] RSP: 0018:ffff88867f107a90 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff893e5534 RDX: 0000000000000011 RSI: 0000000000000004 RDI: 0000000000000088 RBP: 0000000000000002 R08: 0000000000000001 R09: ffffed1081696028 R10: ffff88840b4b0143 R11: ffff88834dfff600 R12: ffff88840b4b0000 R13: 0000000000020000 R14: 0000000000000000 R15: ffff888530ad5210 FS: 0000000000000000(0000) GS:ffff888e3f800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f87223fff38 CR3: 00000007a7c6a002 CR4: 00000000007706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: <TASK> ? __die_body.cold+0x19/0x27 ? die_addr+0x46/0x70 ? exc_general_protection+0x14f/0x250 ? asm_exc_general_protection+0x26/0x30 ? do_raw_read_unlock+0x44/0x70 ? btrfs_zone_finish_endio.part.0+0x34/0x160 [btrfs] btrfs_finish_one_ordered+0x5d9/0x19a0 [btrfs] ? __pfx_lock_release+0x10/0x10 ? do_raw_write_lock+0x90/0x260 ? __pfx_do_raw_write_lock+0x10/0x10 ? __pfx_btrfs_finish_one_ordered+0x10/0x10 [btrfs] ? _raw_write_unlock+0x23/0x40 ? btrfs_finish_ordered_zoned+0x5a9/0x850 [btrfs] ? lock_acquire+0x435/0x500 btrfs_work_helper+0x1b1/0xa70 [btrfs] ? __schedule+0x10a8/0x60b0 ? __pfx___might_resched+0x10/0x10 process_one_work+0x862/0x1410 ? __pfx_lock_acquire+0x10/0x10 ? __pfx_process_one_work+0x10/0x10 ? assign_work+0x16c/0x240 worker_thread+0x5e6/0x1010 ? __pfx_worker_thread+0x10/0x10 kthread+0x2c3/0x3a0 ? trace_irq_enable.constprop.0+0xce/0x110 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x31/0x70 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK>Enabling CONFIG_BTRFS_ASSERT revealed the following assertion totrigger: assertion failed: !list_empty(&ordered->list), in fs/btrfs/zoned.c:1815This indicates, that we re missing the checksums list on theordered_extent. As btrfs/167 is doing a NOCOW write this is to beexpected.Further analysis with drgn confirmed the assumption: >>> inode = prog.crashed_thread().stack_trace()[11][ ordered ].inode >>> btrfs_inode = drgn.container_of(inode, struct btrfs_inode , vfs_inode ) >>> print(btrfs_inode.flags) (u32)1As zoned emulation mode simulates conventional zones on regular devices,we cannot use zone-append for writing. But we re only attaching dummychecksums if we re doing a zone-append write.So for NOCOW zoned data writes on conventional zones, also attach adummy checksum. openEuler评分: 5.5 Vector:CVSS:2.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 受影响版本排查(受影响/不受影响): 1.openEuler-24.03-LTS(6.6.0):受影响 2.openEuler-20.03-LTS-SP4(4.19.90):不受影响 3.openEuler-22.03-LTS-SP1(5.10.0):不受影响 4.openEuler-22.03-LTS-SP3(5.10.0):不受影响 5.openEuler-22.03-LTS-SP4(5.10.0):不受影响 6.master(6.1.0):不受影响 7.openEuler-24.03-LTS-Next(6.6.0):不受影响 修复是否涉及abi变化(是/否): 1.openEuler-20.03-LTS-SP4(4.19.90):否 2.openEuler-22.03-LTS-SP1(5.10.0):否 3.openEuler-22.03-LTS-SP3(5.10.0):否 4.master(6.1.0):否 5.openEuler-24.03-LTS(6.6.0):否 6.openEuler-24.03-LTS-Next(6.6.0):否 7.openEuler-22.03-LTS-SP4(5.10.0):否 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2024-1960
一、漏洞信息 漏洞编号:[CVE-2024-40962](https://nvd.nist.gov/vuln/detail/CVE-2024-40962) 漏洞归属组件:[kernel](https://gitee.com/src-openeuler/kernel) 漏洞归属的版本:4.19.140,4.19.194,4.19.90,5.10.0,6.1.0,6.1.14,6.1.19,6.1.5,6.1.6,6.1.8,6.4.0,6.6.0 CVSS V2.0分值: BaseScore:0.0 Medium Vector:CVSS:2.0/ 漏洞简述: In the Linux kernel, the following vulnerability has been resolved:btrfs: zoned: allocate dummy checksums for zoned NODATASUM writesShin ichiro reported that when he s running fstests test-casebtrfs/167 on emulated zoned devices, he s seeing the following NULLpointer dereference in btrfs_zone_finish_endio() : Oops: general protection fault, probably for non-canonical address 0xdffffc0000000011: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000088-0x000000000000008f] CPU: 4 PID: 2332440 Comm: kworker/u80:15 Tainted: G W 6.10.0-rc2-kts+ #4 Hardware name: Supermicro Super Server/X11SPi-TF, BIOS 3.3 02/21/2020 Workqueue: btrfs-endio-write btrfs_work_helper [btrfs] RIP: 0010:btrfs_zone_finish_endio.part.0+0x34/0x160 [btrfs] RSP: 0018:ffff88867f107a90 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff893e5534 RDX: 0000000000000011 RSI: 0000000000000004 RDI: 0000000000000088 RBP: 0000000000000002 R08: 0000000000000001 R09: ffffed1081696028 R10: ffff88840b4b0143 R11: ffff88834dfff600 R12: ffff88840b4b0000 R13: 0000000000020000 R14: 0000000000000000 R15: ffff888530ad5210 FS: 0000000000000000(0000) GS:ffff888e3f800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f87223fff38 CR3: 00000007a7c6a002 CR4: 00000000007706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: <TASK> ? __die_body.cold+0x19/0x27 ? die_addr+0x46/0x70 ? exc_general_protection+0x14f/0x250 ? asm_exc_general_protection+0x26/0x30 ? do_raw_read_unlock+0x44/0x70 ? btrfs_zone_finish_endio.part.0+0x34/0x160 [btrfs] btrfs_finish_one_ordered+0x5d9/0x19a0 [btrfs] ? __pfx_lock_release+0x10/0x10 ? do_raw_write_lock+0x90/0x260 ? __pfx_do_raw_write_lock+0x10/0x10 ? __pfx_btrfs_finish_one_ordered+0x10/0x10 [btrfs] ? _raw_write_unlock+0x23/0x40 ? btrfs_finish_ordered_zoned+0x5a9/0x850 [btrfs] ? lock_acquire+0x435/0x500 btrfs_work_helper+0x1b1/0xa70 [btrfs] ? __schedule+0x10a8/0x60b0 ? __pfx___might_resched+0x10/0x10 process_one_work+0x862/0x1410 ? __pfx_lock_acquire+0x10/0x10 ? __pfx_process_one_work+0x10/0x10 ? assign_work+0x16c/0x240 worker_thread+0x5e6/0x1010 ? __pfx_worker_thread+0x10/0x10 kthread+0x2c3/0x3a0 ? trace_irq_enable.constprop.0+0xce/0x110 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x31/0x70 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK>Enabling CONFIG_BTRFS_ASSERT revealed the following assertion totrigger: assertion failed: !list_empty(&ordered->list), in fs/btrfs/zoned.c:1815This indicates, that we re missing the checksums list on theordered_extent. As btrfs/167 is doing a NOCOW write this is to beexpected.Further analysis with drgn confirmed the assumption: >>> inode = prog.crashed_thread().stack_trace()[11][ ordered ].inode >>> btrfs_inode = drgn.container_of(inode, struct btrfs_inode , vfs_inode ) >>> print(btrfs_inode.flags) (u32)1As zoned emulation mode simulates conventional zones on regular devices,we cannot use zone-append for writing. But we re only attaching dummychecksums if we re doing a zone-append write.So for NOCOW zoned data writes on conventional zones, also attach adummy checksum. 漏洞公开时间:2024-07-12 21:15:18 漏洞创建时间:2024-07-27 01:57:30 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2024-40962 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/082b3d4e788953a3ff42ecdb70c4210149076285 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/25cfe59f4470a051d1b80f51fa0ca3a5048e4a19 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/cebae292e0c32a228e8f2219c270a7237be24a6a | | | suse_bugzilla | http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-40962 | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | suse_bugzilla | https://www.cve.org/CVERecord?id=CVE-2024-40962 | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | suse_bugzilla | https://git.kernel.org/stable/c/082b3d4e788953a3ff42ecdb70c4210149076285 | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | suse_bugzilla | https://git.kernel.org/stable/c/25cfe59f4470a051d1b80f51fa0ca3a5048e4a19 | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | suse_bugzilla | https://git.kernel.org/stable/c/cebae292e0c32a228e8f2219c270a7237be24a6a | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | suse_bugzilla | https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-40962.mbox | https://bugzilla.suse.com/show_bug.cgi?id=1227815 | | ubuntu | https://www.cve.org/CVERecord?id=CVE-2024-40962 | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://git.kernel.org/linus/cebae292e0c32a228e8f2219c270a7237be24a6a (6.10-rc5) | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://git.kernel.org/stable/c/082b3d4e788953a3ff42ecdb70c4210149076285 | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://git.kernel.org/stable/c/25cfe59f4470a051d1b80f51fa0ca3a5048e4a19 | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://git.kernel.org/stable/c/cebae292e0c32a228e8f2219c270a7237be24a6a | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://nvd.nist.gov/vuln/detail/CVE-2024-40962 | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://launchpad.net/bugs/cve/CVE-2024-40962 | https://ubuntu.com/security/CVE-2024-40962 | | ubuntu | https://security-tracker.debian.org/tracker/CVE-2024-40962 | https://ubuntu.com/security/CVE-2024-40962 | | debian | | https://security-tracker.debian.org/tracker/CVE-2024-40962 | | cve_search | | https://git.kernel.org/stable/c/082b3d4e788953a3ff42ecdb70c4210149076285 | | cve_search | | https://git.kernel.org/stable/c/25cfe59f4470a051d1b80f51fa0ca3a5048e4a19 | | cve_search | | https://git.kernel.org/stable/c/cebae292e0c32a228e8f2219c270a7237be24a6a | </details> 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: openBrain开源漏洞感知系统 漏洞补丁信息: <details> <summary>详情(点击展开)</summary> | 影响的包 | 修复版本 | 修复补丁 | 问题引入补丁 | 来源 | | ------- | -------- | ------- | -------- | --------- | | linux | | https://git.kernel.org/linus/cebae292e0c32a228e8f2219c270a7237be24a6a | https://git.kernel.org/linus/cbfce4c7fbde23cc8bcba44822a58c728caf6ec9 | ubuntu | </details> 二、漏洞分析结构反馈 影响性分析说明: In the Linux kernel, the following vulnerability has been resolved:btrfs: zoned: allocate dummy checksums for zoned NODATASUM writesShin ichiro reported that when he s running fstests test-casebtrfs/167 on emulated zoned devices, he s seeing the following NULLpointer dereference in btrfs_zone_finish_endio() : Oops: general protection fault, probably for non-canonical address 0xdffffc0000000011: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000088-0x000000000000008f] CPU: 4 PID: 2332440 Comm: kworker/u80:15 Tainted: G W 6.10.0-rc2-kts+ #4 Hardware name: Supermicro Super Server/X11SPi-TF, BIOS 3.3 02/21/2020 Workqueue: btrfs-endio-write btrfs_work_helper [btrfs] RIP: 0010:btrfs_zone_finish_endio.part.0+0x34/0x160 [btrfs] RSP: 0018:ffff88867f107a90 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff893e5534 RDX: 0000000000000011 RSI: 0000000000000004 RDI: 0000000000000088 RBP: 0000000000000002 R08: 0000000000000001 R09: ffffed1081696028 R10: ffff88840b4b0143 R11: ffff88834dfff600 R12: ffff88840b4b0000 R13: 0000000000020000 R14: 0000000000000000 R15: ffff888530ad5210 FS: 0000000000000000(0000) GS:ffff888e3f800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f87223fff38 CR3: 00000007a7c6a002 CR4: 00000000007706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: <TASK> ? __die_body.cold+0x19/0x27 ? die_addr+0x46/0x70 ? exc_general_protection+0x14f/0x250 ? asm_exc_general_protection+0x26/0x30 ? do_raw_read_unlock+0x44/0x70 ? btrfs_zone_finish_endio.part.0+0x34/0x160 [btrfs] btrfs_finish_one_ordered+0x5d9/0x19a0 [btrfs] ? __pfx_lock_release+0x10/0x10 ? do_raw_write_lock+0x90/0x260 ? __pfx_do_raw_write_lock+0x10/0x10 ? __pfx_btrfs_finish_one_ordered+0x10/0x10 [btrfs] ? _raw_write_unlock+0x23/0x40 ? btrfs_finish_ordered_zoned+0x5a9/0x850 [btrfs] ? lock_acquire+0x435/0x500 btrfs_work_helper+0x1b1/0xa70 [btrfs] ? __schedule+0x10a8/0x60b0 ? __pfx___might_resched+0x10/0x10 process_one_work+0x862/0x1410 ? __pfx_lock_acquire+0x10/0x10 ? __pfx_process_one_work+0x10/0x10 ? assign_work+0x16c/0x240 worker_thread+0x5e6/0x1010 ? __pfx_worker_thread+0x10/0x10 kthread+0x2c3/0x3a0 ? trace_irq_enable.constprop.0+0xce/0x110 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x31/0x70 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK>Enabling CONFIG_BTRFS_ASSERT revealed the following assertion totrigger: assertion failed: !list_empty(&ordered->list), in fs/btrfs/zoned.c:1815This indicates, that we re missing the checksums list on theordered_extent. As btrfs/167 is doing a NOCOW write this is to beexpected.Further analysis with drgn confirmed the assumption: >>> inode = prog.crashed_thread().stack_trace()[11][ ordered ].inode >>> btrfs_inode = drgn.container_of(inode, struct btrfs_inode , vfs_inode ) >>> print(btrfs_inode.flags) (u32)1As zoned emulation mode simulates conventional zones on regular devices,we cannot use zone-append for writing. But we re only attaching dummychecksums if we re doing a zone-append write.So for NOCOW zoned data writes on conventional zones, also attach adummy checksum. openEuler评分: 5.5 Vector:CVSS:2.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H 受影响版本排查(受影响/不受影响): 1.openEuler-24.03-LTS(6.6.0):受影响 2.openEuler-20.03-LTS-SP4(4.19.90):不受影响 3.openEuler-22.03-LTS-SP1(5.10.0):不受影响 4.openEuler-22.03-LTS-SP3(5.10.0):不受影响 5.openEuler-22.03-LTS-SP4(5.10.0):不受影响 6.master(6.1.0):不受影响 7.openEuler-24.03-LTS-Next(6.6.0):不受影响 修复是否涉及abi变化(是/否): 1.openEuler-20.03-LTS-SP4(4.19.90):否 2.openEuler-22.03-LTS-SP1(5.10.0):否 3.openEuler-22.03-LTS-SP3(5.10.0):否 4.master(6.1.0):否 5.openEuler-24.03-LTS(6.6.0):否 6.openEuler-24.03-LTS-Next(6.6.0):否 7.openEuler-22.03-LTS-SP4(5.10.0):否 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2024-1960
评论 (
12
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
进行中
已完成
已拒绝
负责人
未设置
标签
CVE/FIXED
sig/Kernel
未设置
项目
未立项任务
未立项任务
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(3)
1
https://gitee.com/src-openeuler/kernel.git
git@gitee.com:src-openeuler/kernel.git
src-openeuler
kernel
kernel
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册