登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情
代码拉取完成,页面将自动刷新
仓库状态说明
开源项目
>
其他开源
>
操作系统
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
128
Star
73
Fork
329
src-openEuler
/
kernel
关闭
代码
Issues
1197
Pull Requests
35
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
CVE-2024-26688
已完成
#I9E2F0
CVE和安全问题
openeuler-ci-bot
拥有者
创建于
2024-04-03 23:35
一、漏洞信息 漏洞编号:[CVE-2024-26688](https://nvd.nist.gov/vuln/detail/CVE-2024-26688) 漏洞归属组件:[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 CVSS V2.0分值: BaseScore:0.0 Low Vector:CVSS:2.0/ 漏洞简述: In the Linux kernel, the following vulnerability has been resolved:fs,hugetlb: fix NULL pointer dereference in hugetlbs_fill_superWhen configuring a hugetlb filesystem via the fsconfig() syscall, there isa possible NULL dereference in hugetlbfs_fill_super() caused by assigningNULL to ctx->hstate in hugetlbfs_parse_param() when the requested pagesizeis non valid.E.g: Taking the following steps: fd = fsopen( hugetlbfs , FSOPEN_CLOEXEC); fsconfig(fd, FSCONFIG_SET_STRING, pagesize , 1024 , 0); fsconfig(fd, FSCONFIG_CMD_CREATE, NULL, NULL, 0);Given that the requested pagesize is invalid, ctxt->hstate will be replacedwith NULL, losing its previous value, and we will print an error: ... ... case Opt_pagesize: ps = memparse(param->string, &rest); ctx->hstate = h; if (!ctx->hstate) { pr_err( Unsupported page size %lu MB n , ps / SZ_1M); return -EINVAL; } return 0; ... ...This is a problem because later on, we will dereference ctxt->hstate inhugetlbfs_fill_super() ... ... sb->s_blocksize = huge_page_size(ctx->hstate); ... ...Causing below Oops.Fix this by replacing cxt->hstate value only when then pagesize is knownto be valid. kernel: hugetlbfs: Unsupported page size 0 MB kernel: BUG: kernel NULL pointer dereference, address: 0000000000000028 kernel: #PF: supervisor read access in kernel mode kernel: #PF: error_code(0x0000) - not-present page kernel: PGD 800000010f66c067 P4D 800000010f66c067 PUD 1b22f8067 PMD 0 kernel: Oops: 0000 [#1] PREEMPT SMP PTI kernel: CPU: 4 PID: 5659 Comm: syscall Tainted: G E 6.8.0-rc2-default+ #22 5a47c3fef76212addcc6eb71344aabc35190ae8f kernel: Hardware name: Intel Corp. GROVEPORT/GROVEPORT, BIOS GVPRCRB1.86B.0016.D04.1705030402 05/03/2017 kernel: RIP: 0010:hugetlbfs_fill_super+0xb4/0x1a0 kernel: Code: 48 8b 3b e8 3e c6 ed ff 48 85 c0 48 89 45 20 0f 84 d6 00 00 00 48 b8 ff ff ff ff ff ff ff 7f 4c 89 e7 49 89 44 24 20 48 8b 03 <8b> 48 28 b8 00 10 00 00 48 d3 e0 49 89 44 24 18 48 8b 03 8b 40 28 kernel: RSP: 0018:ffffbe9960fcbd48 EFLAGS: 00010246 kernel: RAX: 0000000000000000 RBX: ffff9af5272ae780 RCX: 0000000000372004 kernel: RDX: ffffffffffffffff RSI: ffffffffffffffff RDI: ffff9af555e9b000 kernel: RBP: ffff9af52ee66b00 R08: 0000000000000040 R09: 0000000000370004 kernel: R10: ffffbe9960fcbd48 R11: 0000000000000040 R12: ffff9af555e9b000 kernel: R13: ffffffffa66b86c0 R14: ffff9af507d2f400 R15: ffff9af507d2f400 kernel: FS: 00007ffbc0ba4740(0000) GS:ffff9b0bd7000000(0000) knlGS:0000000000000000 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kernel: CR2: 0000000000000028 CR3: 00000001b1ee0000 CR4: 00000000001506f0 kernel: Call Trace: kernel: <TASK> kernel: ? __die_body+0x1a/0x60 kernel: ? page_fault_oops+0x16f/0x4a0 kernel: ? search_bpf_extables+0x65/0x70 kernel: ? fixup_exception+0x22/0x310 kernel: ? exc_page_fault+0x69/0x150 kernel: ? asm_exc_page_fault+0x22/0x30 kernel: ? __pfx_hugetlbfs_fill_super+0x10/0x10 kernel: ? hugetlbfs_fill_super+0xb4/0x1a0 kernel: ? hugetlbfs_fill_super+0x28/0x1a0 kernel: ? __pfx_hugetlbfs_fill_super+0x10/0x10 kernel: vfs_get_super+0x40/0xa0 kernel: ? __pfx_bpf_lsm_capable+0x10/0x10 kernel: vfs_get_tree+0x25/0xd0 kernel: vfs_cmd_create+0x64/0xe0 kernel: __x64_sys_fsconfig+0x395/0x410 kernel: do_syscall_64+0x80/0x160 kernel: ? syscall_exit_to_user_mode+0x82/0x240 kernel: ? do_syscall_64+0x8d/0x160 kernel: ? syscall_exit_to_user_mode+0x82/0x240 kernel: ? do_syscall_64+0x8d/0x160 kernel: ? exc_page_fault+0x69/0x150 kernel: entry_SYSCALL_64_after_hwframe+0x6e/0x76 kernel: RIP: 0033:0x7ffbc0cb87c9 kernel: Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 97 96 0d 00 f7 d8 64 89 01 48 kernel: RSP: 002b:00007ffc29d2f388 EFLAGS: 00000206 ORIG_RAX: 00000000000001af kernel: RAX: fffffffffff---truncated--- 漏洞公开时间:2024-04-03 23:15:52 漏洞创建时间:2024-04-03 23:35:33 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2024-26688 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/13c5a9fb07105557a1fa9efdb4f23d7ef30b7274 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/1dde8ef4b7a749ae1bc73617c91775631d167557 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/22850c9950a4e43a67299755d11498f3292d02ff | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/2e2c07104b4904aed1389a59b25799b95a85b5b9 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/79d72c68c58784a3e1cd2378669d51bfd0cb7498 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/80d852299987a8037be145a94f41874228f1a773 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/ec78418801ef7b0c22cd6a30145ec480dd48db39 | | | suse_bugzilla | http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26688 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://www.cve.org/CVERecord?id=CVE-2024-26688 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/13c5a9fb07105557a1fa9efdb4f23d7ef30b7274 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/1dde8ef4b7a749ae1bc73617c91775631d167557 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/22850c9950a4e43a67299755d11498f3292d02ff | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/2e2c07104b4904aed1389a59b25799b95a85b5b9 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/79d72c68c58784a3e1cd2378669d51bfd0cb7498 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/80d852299987a8037be145a94f41874228f1a773 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/ec78418801ef7b0c22cd6a30145ec480dd48db39 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://bugzilla.redhat.com/show_bug.cgi?id=2273105 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | redhat_bugzilla | https://lore.kernel.org/linux-cve-announce/2024040336-CVE-2024-26688-7b0e@gregkh/T | https://bugzilla.redhat.com/show_bug.cgi?id=2273105 | | ubuntu | https://git.kernel.org/linus/79d72c68c58784a3e1cd2378669d51bfd0cb7498 (6.8-rc4) | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/1dde8ef4b7a749ae1bc73617c91775631d167557 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/80d852299987a8037be145a94f41874228f1a773 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/22850c9950a4e43a67299755d11498f3292d02ff | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/2e2c07104b4904aed1389a59b25799b95a85b5b9 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/13c5a9fb07105557a1fa9efdb4f23d7ef30b7274 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/ec78418801ef7b0c22cd6a30145ec480dd48db39 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/79d72c68c58784a3e1cd2378669d51bfd0cb7498 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://www.cve.org/CVERecord?id=CVE-2024-26688 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://nvd.nist.gov/vuln/detail/CVE-2024-26688 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://launchpad.net/bugs/cve/CVE-2024-26688 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://security-tracker.debian.org/tracker/CVE-2024-26688 | https://ubuntu.com/security/CVE-2024-26688 | | debian | | https://security-tracker.debian.org/tracker/CVE-2024-26688 | | ubuntu | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-26688 | https://ubuntu.com/security/CVE-2024-26688 | </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/79d72c68c58784a3e1cd2378669d51bfd0cb7498 | https://git.kernel.org/linus/32021982a324dce93b4ae00c06213bf45fb319c8 | ubuntu | </details> 二、漏洞分析结构反馈 影响性分析说明: In the Linux kernel, the following vulnerability has been resolved:fs,hugetlb: fix NULL pointer dereference in hugetlbs_fill_superWhen configuring a hugetlb filesystem via the fsconfig() syscall, there isa possible NULL dereference in hugetlbfs_fill_super() caused by assigningNULL to ctx->hstate in hugetlbfs_parse_param() when the requested pagesizeis non valid.E.g: Taking the following steps: fd = fsopen( hugetlbfs , FSOPEN_CLOEXEC); fsconfig(fd, FSCONFIG_SET_STRING, pagesize , 1024 , 0); fsconfig(fd, FSCONFIG_CMD_CREATE, NULL, NULL, 0);Given that the requested pagesize is invalid, ctxt->hstate will be replacedwith NULL, losing its previous value, and we will print an error: ... ... case Opt_pagesize: ps = memparse(param->string, &rest); ctx->hstate = h; if (!ctx->hstate) { pr_err( Unsupported page size %lu MB n , ps / SZ_1M); return -EINVAL; } return 0; ... ...This is a problem because later on, we will dereference ctxt->hstate inhugetlbfs_fill_super() ... ... sb->s_blocksize = huge_page_size(ctx->hstate); ... ...Causing below Oops.Fix this by replacing cxt->hstate value only when then pagesize is knownto be valid. kernel: hugetlbfs: Unsupported page size 0 MB kernel: BUG: kernel NULL pointer dereference, address: 0000000000000028 kernel: #PF: supervisor read access in kernel mode kernel: #PF: error_code(0x0000) - not-present page kernel: PGD 800000010f66c067 P4D 800000010f66c067 PUD 1b22f8067 PMD 0 kernel: Oops: 0000 [#1] PREEMPT SMP PTI kernel: CPU: 4 PID: 5659 Comm: syscall Tainted: G E 6.8.0-rc2-default+ #22 5a47c3fef76212addcc6eb71344aabc35190ae8f kernel: Hardware name: Intel Corp. GROVEPORT/GROVEPORT, BIOS GVPRCRB1.86B.0016.D04.1705030402 05/03/2017 kernel: RIP: 0010:hugetlbfs_fill_super+0xb4/0x1a0 kernel: Code: 48 8b 3b e8 3e c6 ed ff 48 85 c0 48 89 45 20 0f 84 d6 00 00 00 48 b8 ff ff ff ff ff ff ff 7f 4c 89 e7 49 89 44 24 20 48 8b 03 <8b> 48 28 b8 00 10 00 00 48 d3 e0 49 89 44 24 18 48 8b 03 8b 40 28 kernel: RSP: 0018:ffffbe9960fcbd48 EFLAGS: 00010246 kernel: RAX: 0000000000000000 RBX: ffff9af5272ae780 RCX: 0000000000372004 kernel: RDX: ffffffffffffffff RSI: ffffffffffffffff RDI: ffff9af555e9b000 kernel: RBP: ffff9af52ee66b00 R08: 0000000000000040 R09: 0000000000370004 kernel: R10: ffffbe9960fcbd48 R11: 0000000000000040 R12: ffff9af555e9b000 kernel: R13: ffffffffa66b86c0 R14: ffff9af507d2f400 R15: ffff9af507d2f400 kernel: FS: 00007ffbc0ba4740(0000) GS:ffff9b0bd7000000(0000) knlGS:0000000000000000 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kernel: CR2: 0000000000000028 CR3: 00000001b1ee0000 CR4: 00000000001506f0 kernel: Call Trace: kernel: <TASK> kernel: ? __die_body+0x1a/0x60 kernel: ? page_fault_oops+0x16f/0x4a0 kernel: ? search_bpf_extables+0x65/0x70 kernel: ? fixup_exception+0x22/0x310 kernel: ? exc_page_fault+0x69/0x150 kernel: ? asm_exc_page_fault+0x22/0x30 kernel: ? __pfx_hugetlbfs_fill_super+0x10/0x10 kernel: ? hugetlbfs_fill_super+0xb4/0x1a0 kernel: ? hugetlbfs_fill_super+0x28/0x1a0 kernel: ? __pfx_hugetlbfs_fill_super+0x10/0x10 kernel: vfs_get_super+0x40/0xa0 kernel: ? __pfx_bpf_lsm_capable+0x10/0x10 kernel: vfs_get_tree+0x25/0xd0 kernel: vfs_cmd_create+0x64/0xe0 kernel: __x64_sys_fsconfig+0x395/0x410 kernel: do_syscall_64+0x80/0x160 kernel: ? syscall_exit_to_user_mode+0x82/0x240 kernel: ? do_syscall_64+0x8d/0x160 kernel: ? syscall_exit_to_user_mode+0x82/0x240 kernel: ? do_syscall_64+0x8d/0x160 kernel: ? exc_page_fault+0x69/0x150 kernel: entry_SYSCALL_64_after_hwframe+0x6e/0x76 kernel: RIP: 0033:0x7ffbc0cb87c9 kernel: Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 97 96 0d 00 f7 d8 64 89 01 48 kernel: RSP: 002b:00007ffc29d2f388 EFLAGS: 00000206 ORIG_RAX: 00000000000001af kernel: RAX: fffffffffff---truncated--- 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-22.03-LTS(5.10.0):受影响 2.openEuler-22.03-LTS-SP1(5.10.0):受影响 3.openEuler-22.03-LTS-SP2(5.10.0):受影响 4.openEuler-22.03-LTS-SP3(5.10.0):受影响 5.openEuler-20.03-LTS-SP1(4.19.90):不受影响 6.openEuler-20.03-LTS-SP4(4.19.90):不受影响 7.master(6.1.0):不受影响 8.openEuler-22.03-LTS-Next(5.10.0):不受影响 9.openEuler-24.03-LTS:不受影响 10.openEuler-24.03-LTS-Next:不受影响 修复是否涉及abi变化(是/否): 1.openEuler-20.03-LTS-SP1(4.19.90):否 2.openEuler-20.03-LTS-SP4(4.19.90):否 3.openEuler-22.03-LTS(5.10.0):否 4.openEuler-22.03-LTS-SP1(5.10.0):否 5.openEuler-22.03-LTS-SP2(5.10.0):否 6.openEuler-22.03-LTS-SP3(5.10.0):否 7.master(6.1.0):否 8.openEuler-22.03-LTS-Next(5.10.0):否 9.openEuler-24.03-LTS:否 10.openEuler-24.03-LTS-Next:否 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2024-1622
一、漏洞信息 漏洞编号:[CVE-2024-26688](https://nvd.nist.gov/vuln/detail/CVE-2024-26688) 漏洞归属组件:[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 CVSS V2.0分值: BaseScore:0.0 Low Vector:CVSS:2.0/ 漏洞简述: In the Linux kernel, the following vulnerability has been resolved:fs,hugetlb: fix NULL pointer dereference in hugetlbs_fill_superWhen configuring a hugetlb filesystem via the fsconfig() syscall, there isa possible NULL dereference in hugetlbfs_fill_super() caused by assigningNULL to ctx->hstate in hugetlbfs_parse_param() when the requested pagesizeis non valid.E.g: Taking the following steps: fd = fsopen( hugetlbfs , FSOPEN_CLOEXEC); fsconfig(fd, FSCONFIG_SET_STRING, pagesize , 1024 , 0); fsconfig(fd, FSCONFIG_CMD_CREATE, NULL, NULL, 0);Given that the requested pagesize is invalid, ctxt->hstate will be replacedwith NULL, losing its previous value, and we will print an error: ... ... case Opt_pagesize: ps = memparse(param->string, &rest); ctx->hstate = h; if (!ctx->hstate) { pr_err( Unsupported page size %lu MB n , ps / SZ_1M); return -EINVAL; } return 0; ... ...This is a problem because later on, we will dereference ctxt->hstate inhugetlbfs_fill_super() ... ... sb->s_blocksize = huge_page_size(ctx->hstate); ... ...Causing below Oops.Fix this by replacing cxt->hstate value only when then pagesize is knownto be valid. kernel: hugetlbfs: Unsupported page size 0 MB kernel: BUG: kernel NULL pointer dereference, address: 0000000000000028 kernel: #PF: supervisor read access in kernel mode kernel: #PF: error_code(0x0000) - not-present page kernel: PGD 800000010f66c067 P4D 800000010f66c067 PUD 1b22f8067 PMD 0 kernel: Oops: 0000 [#1] PREEMPT SMP PTI kernel: CPU: 4 PID: 5659 Comm: syscall Tainted: G E 6.8.0-rc2-default+ #22 5a47c3fef76212addcc6eb71344aabc35190ae8f kernel: Hardware name: Intel Corp. GROVEPORT/GROVEPORT, BIOS GVPRCRB1.86B.0016.D04.1705030402 05/03/2017 kernel: RIP: 0010:hugetlbfs_fill_super+0xb4/0x1a0 kernel: Code: 48 8b 3b e8 3e c6 ed ff 48 85 c0 48 89 45 20 0f 84 d6 00 00 00 48 b8 ff ff ff ff ff ff ff 7f 4c 89 e7 49 89 44 24 20 48 8b 03 <8b> 48 28 b8 00 10 00 00 48 d3 e0 49 89 44 24 18 48 8b 03 8b 40 28 kernel: RSP: 0018:ffffbe9960fcbd48 EFLAGS: 00010246 kernel: RAX: 0000000000000000 RBX: ffff9af5272ae780 RCX: 0000000000372004 kernel: RDX: ffffffffffffffff RSI: ffffffffffffffff RDI: ffff9af555e9b000 kernel: RBP: ffff9af52ee66b00 R08: 0000000000000040 R09: 0000000000370004 kernel: R10: ffffbe9960fcbd48 R11: 0000000000000040 R12: ffff9af555e9b000 kernel: R13: ffffffffa66b86c0 R14: ffff9af507d2f400 R15: ffff9af507d2f400 kernel: FS: 00007ffbc0ba4740(0000) GS:ffff9b0bd7000000(0000) knlGS:0000000000000000 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kernel: CR2: 0000000000000028 CR3: 00000001b1ee0000 CR4: 00000000001506f0 kernel: Call Trace: kernel: <TASK> kernel: ? __die_body+0x1a/0x60 kernel: ? page_fault_oops+0x16f/0x4a0 kernel: ? search_bpf_extables+0x65/0x70 kernel: ? fixup_exception+0x22/0x310 kernel: ? exc_page_fault+0x69/0x150 kernel: ? asm_exc_page_fault+0x22/0x30 kernel: ? __pfx_hugetlbfs_fill_super+0x10/0x10 kernel: ? hugetlbfs_fill_super+0xb4/0x1a0 kernel: ? hugetlbfs_fill_super+0x28/0x1a0 kernel: ? __pfx_hugetlbfs_fill_super+0x10/0x10 kernel: vfs_get_super+0x40/0xa0 kernel: ? __pfx_bpf_lsm_capable+0x10/0x10 kernel: vfs_get_tree+0x25/0xd0 kernel: vfs_cmd_create+0x64/0xe0 kernel: __x64_sys_fsconfig+0x395/0x410 kernel: do_syscall_64+0x80/0x160 kernel: ? syscall_exit_to_user_mode+0x82/0x240 kernel: ? do_syscall_64+0x8d/0x160 kernel: ? syscall_exit_to_user_mode+0x82/0x240 kernel: ? do_syscall_64+0x8d/0x160 kernel: ? exc_page_fault+0x69/0x150 kernel: entry_SYSCALL_64_after_hwframe+0x6e/0x76 kernel: RIP: 0033:0x7ffbc0cb87c9 kernel: Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 97 96 0d 00 f7 d8 64 89 01 48 kernel: RSP: 002b:00007ffc29d2f388 EFLAGS: 00000206 ORIG_RAX: 00000000000001af kernel: RAX: fffffffffff---truncated--- 漏洞公开时间:2024-04-03 23:15:52 漏洞创建时间:2024-04-03 23:35:33 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2024-26688 <details> <summary>更多参考(点击展开)</summary> | 参考来源 | 参考链接 | 来源链接 | | ------- | -------- | -------- | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/13c5a9fb07105557a1fa9efdb4f23d7ef30b7274 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/1dde8ef4b7a749ae1bc73617c91775631d167557 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/22850c9950a4e43a67299755d11498f3292d02ff | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/2e2c07104b4904aed1389a59b25799b95a85b5b9 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/79d72c68c58784a3e1cd2378669d51bfd0cb7498 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/80d852299987a8037be145a94f41874228f1a773 | | | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | https://git.kernel.org/stable/c/ec78418801ef7b0c22cd6a30145ec480dd48db39 | | | suse_bugzilla | http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-26688 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://www.cve.org/CVERecord?id=CVE-2024-26688 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/13c5a9fb07105557a1fa9efdb4f23d7ef30b7274 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/1dde8ef4b7a749ae1bc73617c91775631d167557 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/22850c9950a4e43a67299755d11498f3292d02ff | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/2e2c07104b4904aed1389a59b25799b95a85b5b9 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/79d72c68c58784a3e1cd2378669d51bfd0cb7498 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/80d852299987a8037be145a94f41874228f1a773 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://git.kernel.org/stable/c/ec78418801ef7b0c22cd6a30145ec480dd48db39 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | suse_bugzilla | https://bugzilla.redhat.com/show_bug.cgi?id=2273105 | https://bugzilla.suse.com/show_bug.cgi?id=1222482 | | redhat_bugzilla | https://lore.kernel.org/linux-cve-announce/2024040336-CVE-2024-26688-7b0e@gregkh/T | https://bugzilla.redhat.com/show_bug.cgi?id=2273105 | | ubuntu | https://git.kernel.org/linus/79d72c68c58784a3e1cd2378669d51bfd0cb7498 (6.8-rc4) | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/1dde8ef4b7a749ae1bc73617c91775631d167557 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/80d852299987a8037be145a94f41874228f1a773 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/22850c9950a4e43a67299755d11498f3292d02ff | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/2e2c07104b4904aed1389a59b25799b95a85b5b9 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/13c5a9fb07105557a1fa9efdb4f23d7ef30b7274 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/ec78418801ef7b0c22cd6a30145ec480dd48db39 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://git.kernel.org/stable/c/79d72c68c58784a3e1cd2378669d51bfd0cb7498 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://www.cve.org/CVERecord?id=CVE-2024-26688 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://nvd.nist.gov/vuln/detail/CVE-2024-26688 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://launchpad.net/bugs/cve/CVE-2024-26688 | https://ubuntu.com/security/CVE-2024-26688 | | ubuntu | https://security-tracker.debian.org/tracker/CVE-2024-26688 | https://ubuntu.com/security/CVE-2024-26688 | | debian | | https://security-tracker.debian.org/tracker/CVE-2024-26688 | | ubuntu | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-26688 | https://ubuntu.com/security/CVE-2024-26688 | </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/79d72c68c58784a3e1cd2378669d51bfd0cb7498 | https://git.kernel.org/linus/32021982a324dce93b4ae00c06213bf45fb319c8 | ubuntu | </details> 二、漏洞分析结构反馈 影响性分析说明: In the Linux kernel, the following vulnerability has been resolved:fs,hugetlb: fix NULL pointer dereference in hugetlbs_fill_superWhen configuring a hugetlb filesystem via the fsconfig() syscall, there isa possible NULL dereference in hugetlbfs_fill_super() caused by assigningNULL to ctx->hstate in hugetlbfs_parse_param() when the requested pagesizeis non valid.E.g: Taking the following steps: fd = fsopen( hugetlbfs , FSOPEN_CLOEXEC); fsconfig(fd, FSCONFIG_SET_STRING, pagesize , 1024 , 0); fsconfig(fd, FSCONFIG_CMD_CREATE, NULL, NULL, 0);Given that the requested pagesize is invalid, ctxt->hstate will be replacedwith NULL, losing its previous value, and we will print an error: ... ... case Opt_pagesize: ps = memparse(param->string, &rest); ctx->hstate = h; if (!ctx->hstate) { pr_err( Unsupported page size %lu MB n , ps / SZ_1M); return -EINVAL; } return 0; ... ...This is a problem because later on, we will dereference ctxt->hstate inhugetlbfs_fill_super() ... ... sb->s_blocksize = huge_page_size(ctx->hstate); ... ...Causing below Oops.Fix this by replacing cxt->hstate value only when then pagesize is knownto be valid. kernel: hugetlbfs: Unsupported page size 0 MB kernel: BUG: kernel NULL pointer dereference, address: 0000000000000028 kernel: #PF: supervisor read access in kernel mode kernel: #PF: error_code(0x0000) - not-present page kernel: PGD 800000010f66c067 P4D 800000010f66c067 PUD 1b22f8067 PMD 0 kernel: Oops: 0000 [#1] PREEMPT SMP PTI kernel: CPU: 4 PID: 5659 Comm: syscall Tainted: G E 6.8.0-rc2-default+ #22 5a47c3fef76212addcc6eb71344aabc35190ae8f kernel: Hardware name: Intel Corp. GROVEPORT/GROVEPORT, BIOS GVPRCRB1.86B.0016.D04.1705030402 05/03/2017 kernel: RIP: 0010:hugetlbfs_fill_super+0xb4/0x1a0 kernel: Code: 48 8b 3b e8 3e c6 ed ff 48 85 c0 48 89 45 20 0f 84 d6 00 00 00 48 b8 ff ff ff ff ff ff ff 7f 4c 89 e7 49 89 44 24 20 48 8b 03 <8b> 48 28 b8 00 10 00 00 48 d3 e0 49 89 44 24 18 48 8b 03 8b 40 28 kernel: RSP: 0018:ffffbe9960fcbd48 EFLAGS: 00010246 kernel: RAX: 0000000000000000 RBX: ffff9af5272ae780 RCX: 0000000000372004 kernel: RDX: ffffffffffffffff RSI: ffffffffffffffff RDI: ffff9af555e9b000 kernel: RBP: ffff9af52ee66b00 R08: 0000000000000040 R09: 0000000000370004 kernel: R10: ffffbe9960fcbd48 R11: 0000000000000040 R12: ffff9af555e9b000 kernel: R13: ffffffffa66b86c0 R14: ffff9af507d2f400 R15: ffff9af507d2f400 kernel: FS: 00007ffbc0ba4740(0000) GS:ffff9b0bd7000000(0000) knlGS:0000000000000000 kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kernel: CR2: 0000000000000028 CR3: 00000001b1ee0000 CR4: 00000000001506f0 kernel: Call Trace: kernel: <TASK> kernel: ? __die_body+0x1a/0x60 kernel: ? page_fault_oops+0x16f/0x4a0 kernel: ? search_bpf_extables+0x65/0x70 kernel: ? fixup_exception+0x22/0x310 kernel: ? exc_page_fault+0x69/0x150 kernel: ? asm_exc_page_fault+0x22/0x30 kernel: ? __pfx_hugetlbfs_fill_super+0x10/0x10 kernel: ? hugetlbfs_fill_super+0xb4/0x1a0 kernel: ? hugetlbfs_fill_super+0x28/0x1a0 kernel: ? __pfx_hugetlbfs_fill_super+0x10/0x10 kernel: vfs_get_super+0x40/0xa0 kernel: ? __pfx_bpf_lsm_capable+0x10/0x10 kernel: vfs_get_tree+0x25/0xd0 kernel: vfs_cmd_create+0x64/0xe0 kernel: __x64_sys_fsconfig+0x395/0x410 kernel: do_syscall_64+0x80/0x160 kernel: ? syscall_exit_to_user_mode+0x82/0x240 kernel: ? do_syscall_64+0x8d/0x160 kernel: ? syscall_exit_to_user_mode+0x82/0x240 kernel: ? do_syscall_64+0x8d/0x160 kernel: ? exc_page_fault+0x69/0x150 kernel: entry_SYSCALL_64_after_hwframe+0x6e/0x76 kernel: RIP: 0033:0x7ffbc0cb87c9 kernel: Code: 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 97 96 0d 00 f7 d8 64 89 01 48 kernel: RSP: 002b:00007ffc29d2f388 EFLAGS: 00000206 ORIG_RAX: 00000000000001af kernel: RAX: fffffffffff---truncated--- 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-22.03-LTS(5.10.0):受影响 2.openEuler-22.03-LTS-SP1(5.10.0):受影响 3.openEuler-22.03-LTS-SP2(5.10.0):受影响 4.openEuler-22.03-LTS-SP3(5.10.0):受影响 5.openEuler-20.03-LTS-SP1(4.19.90):不受影响 6.openEuler-20.03-LTS-SP4(4.19.90):不受影响 7.master(6.1.0):不受影响 8.openEuler-22.03-LTS-Next(5.10.0):不受影响 9.openEuler-24.03-LTS:不受影响 10.openEuler-24.03-LTS-Next:不受影响 修复是否涉及abi变化(是/否): 1.openEuler-20.03-LTS-SP1(4.19.90):否 2.openEuler-20.03-LTS-SP4(4.19.90):否 3.openEuler-22.03-LTS(5.10.0):否 4.openEuler-22.03-LTS-SP1(5.10.0):否 5.openEuler-22.03-LTS-SP2(5.10.0):否 6.openEuler-22.03-LTS-SP3(5.10.0):否 7.master(6.1.0):否 8.openEuler-22.03-LTS-Next(5.10.0):否 9.openEuler-24.03-LTS:否 10.openEuler-24.03-LTS-Next:否 三、漏洞修复 安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2024-1622
评论 (
9
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
进行中
已完成
已拒绝
负责人
未设置
sanglipeng
sanglipeng
负责人
协作者
+负责人
+协作者
标签
CVE/FIXED
sig/Kernel
未设置
项目
未立项任务
未立项任务
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(2)
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 帐号,请先登录后再操作。
立即登录
没有帐号,去注册