目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2024-40915— Linux kernel 安全漏洞

一分钟漏洞结论

影响对象
Linux Linux
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于 riscv 架构的 __kernel_map_pages 函数在无效环境中睡眠。

AI 预测 6.5 利用难度: 中等 EPSS 0.21% · P11

影响版本矩阵 10

厂商产品 版本范围状态
Linux Linux 5fde3db5eb028b95aeefa1ab192d36800414e8b8< 919f8626099d9909b9a9620b05e8c8ab06581876 affected
5fde3db5eb028b95aeefa1ab192d36800414e8b8< 8661a7af04991201640863ad1a0983173f84b5eb affected
5fde3db5eb028b95aeefa1ab192d36800414e8b8< d5257ceb19d92069195254866421f425aea42915 affected
5fde3db5eb028b95aeefa1ab192d36800414e8b8< fb1cf0878328fe75d47f0aed0a65b30126fcefc4 affected
5.7 affected
< 5.7 unaffected
6.1.95≤ 6.1.* unaffected
6.6.35≤ 6.6.* unaffected
… +2 条更多
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2024-40915 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
riscv: rewrite __kernel_map_pages() to fix sleeping in invalid context
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: riscv: rewrite __kernel_map_pages() to fix sleeping in invalid context __kernel_map_pages() is a debug function which clears the valid bit in page table entry for deallocated pages to detect illegal memory accesses to freed pages. This function set/clear the valid bit using __set_memory(). __set_memory() acquires init_mm's semaphore, and this operation may sleep. This is problematic, because __kernel_map_pages() can be called in atomic context, and thus is illegal to sleep. An example warning that this causes: BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1578 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 2, name: kthreadd preempt_count: 2, expected: 0 CPU: 0 PID: 2 Comm: kthreadd Not tainted 6.9.0-g1d4c6d784ef6 #37 Hardware name: riscv-virtio,qemu (DT) Call Trace: [<ffffffff800060dc>] dump_backtrace+0x1c/0x24 [<ffffffff8091ef6e>] show_stack+0x2c/0x38 [<ffffffff8092baf8>] dump_stack_lvl+0x5a/0x72 [<ffffffff8092bb24>] dump_stack+0x14/0x1c [<ffffffff8003b7ac>] __might_resched+0x104/0x10e [<ffffffff8003b7f4>] __might_sleep+0x3e/0x62 [<ffffffff8093276a>] down_write+0x20/0x72 [<ffffffff8000cf00>] __set_memory+0x82/0x2fa [<ffffffff8000d324>] __kernel_map_pages+0x5a/0xd4 [<ffffffff80196cca>] __alloc_pages_bulk+0x3b2/0x43a [<ffffffff8018ee82>] __vmalloc_node_range+0x196/0x6ba [<ffffffff80011904>] copy_process+0x72c/0x17ec [<ffffffff80012ab4>] kernel_clone+0x60/0x2fe [<ffffffff80012f62>] kernel_thread+0x82/0xa0 [<ffffffff8003552c>] kthreadd+0x14a/0x1be [<ffffffff809357de>] ret_from_fork+0xe/0x1c Rewrite this function with apply_to_existing_page_range(). It is fine to not have any locking, because __kernel_map_pages() works with pages being allocated/deallocated and those pages are not changed by anyone else in the meantime.
来源: CVE Program / CVE List V5
CVSS Information
N/A
来源: CVE Program / CVE List V5
Vulnerability Type
N/A
来源: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于 riscv 架构的 __kernel_map_pages 函数在无效环境中睡眠。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux 5fde3db5eb028b95aeefa1ab192d36800414e8b8 ~ 919f8626099d9909b9a9620b05e8c8ab06581876 -
Linux Linux 5.7 -

二、漏洞 CVE-2024-40915 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2024-40915 的情报信息

请登录查看更多情报信息。

CVE-2024-40915 其他参考 (3)

同批安全公告 · Linux · 2024-07-12 · 共 122 条

CVE-2024-40999 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-40907 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-40923 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-40983 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-40937 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-40910 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-40911 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-40941 8.1 HIGH Linux kernel 安全漏洞
CVE-2024-40953 7.9 HIGH Linux kernel 安全漏洞
CVE-2024-40954 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-40918 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-40924 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-40925 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-40943 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-40947 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-40949 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-40990 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-40986 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-40989 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-40984 7.8 HIGH Linux kernel 安全漏洞

显示前 20 条,共 122 条。 查看全部 &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-40915

暂无评论


发表评论