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

目标: 1000 元 · 已筹: 1359 元

100%

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

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于允许越界读取。

AI 预测 7.8 利用难度: 较易 EPSS 0.23% · P13

影响版本矩阵 6

厂商产品 版本范围状态
Linux Linux 90b4fe17981e155432c4dbc490606d0c2e9c2199< 048cc4a028e635d339687ed968985d2d1669494c affected
90b4fe17981e155432c4dbc490606d0c2e9c2199< 992b54bd083c5bee24ff7cc35991388ab08598c4 affected
6.8 affected
< 6.8 unaffected
6.8.8≤ 6.8.* unaffected
6.9≤ * unaffected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
KVM: x86/mmu: x86: Don't overflow lpage_info when checking attributes
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: KVM: x86/mmu: x86: Don't overflow lpage_info when checking attributes Fix KVM_SET_MEMORY_ATTRIBUTES to not overflow lpage_info array and trigger KASAN splat, as seen in the private_mem_conversions_test selftest. When memory attributes are set on a GFN range, that range will have specific properties applied to the TDP. A huge page cannot be used when the attributes are inconsistent, so they are disabled for those the specific huge pages. For internal KVM reasons, huge pages are also not allowed to span adjacent memslots regardless of whether the backing memory could be mapped as huge. What GFNs support which huge page sizes is tracked by an array of arrays 'lpage_info' on the memslot, of ‘kvm_lpage_info’ structs. Each index of lpage_info contains a vmalloc allocated array of these for a specific supported page size. The kvm_lpage_info denotes whether a specific huge page (GFN and page size) on the memslot is supported. These arrays include indices for unaligned head and tail huge pages. Preventing huge pages from spanning adjacent memslot is covered by incrementing the count in head and tail kvm_lpage_info when the memslot is allocated, but disallowing huge pages for memory that has mixed attributes has to be done in a more complicated way. During the KVM_SET_MEMORY_ATTRIBUTES ioctl KVM updates lpage_info for each memslot in the range that has mismatched attributes. KVM does this a memslot at a time, and marks a special bit, KVM_LPAGE_MIXED_FLAG, in the kvm_lpage_info for any huge page. This bit is essentially a permanently elevated count. So huge pages will not be mapped for the GFN at that page size if the count is elevated in either case: a huge head or tail page unaligned to the memslot or if KVM_LPAGE_MIXED_FLAG is set because it has mixed attributes. To determine whether a huge page has consistent attributes, the KVM_SET_MEMORY_ATTRIBUTES operation checks an xarray to make sure it consistently has the incoming attribute. Since level - 1 huge pages are aligned to level huge pages, it employs an optimization. As long as the level - 1 huge pages are checked first, it can just check these and assume that if each level - 1 huge page contained within the level sized huge page is not mixed, then the level size huge page is not mixed. This optimization happens in the helper hugepage_has_attrs(). Unfortunately, although the kvm_lpage_info array representing page size 'level' will contain an entry for an unaligned tail page of size level, the array for level - 1 will not contain an entry for each GFN at page size level. The level - 1 array will only contain an index for any unaligned region covered by level - 1 huge page size, which can be a smaller region. So this causes the optimization to overflow the level - 1 kvm_lpage_info and perform a vmalloc out of bounds read. In some cases of head and tail pages where an overflow could happen, callers skip the operation completely as KVM_LPAGE_MIXED_FLAG is not required to prevent huge pages as discussed earlier. But for memslots that are smaller than the 1GB page size, it does call hugepage_has_attrs(). In this case the huge page is both the head and tail page. The issue can be observed simply by compiling the kernel with CONFIG_KASAN_VMALLOC and running the selftest “private_mem_conversions_test”, which produces the output like the following: BUG: KASAN: vmalloc-out-of-bounds in hugepage_has_attrs+0x7e/0x110 Read of size 4 at addr ffffc900000a3008 by task private_mem_con/169 Call Trace: dump_stack_lvl print_report ? __virt_addr_valid ? hugepage_has_attrs ? hugepage_has_attrs kasan_report ? hugepage_has_attrs hugepage_has_attrs kvm_arch_post_set_memory_attributes kvm_vm_ioctl It is a little ambiguous whether the unaligned head page (in the bug case also the tail page) should be expected to have KVM_LPAGE_MIXED_FLAG set. It is not functionally required, as the unal ---truncated---
来源: 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存在安全漏洞,该漏洞源于允许越界读取。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux 90b4fe17981e155432c4dbc490606d0c2e9c2199 ~ 048cc4a028e635d339687ed968985d2d1669494c -
Linux Linux 6.8 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2024-26991 邮件列表归档 (3)

CVE-2024-26991 其他参考 (2)

同批安全公告 · Linux · 2024-05-01 · 共 159 条

CVE-2024-27388 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-26953 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-26931 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-27053 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-26990 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-26952 8.3 HIGH Linux kernel 安全漏洞
CVE-2024-27018 8.2 HIGH Linux kernel 安全漏洞
CVE-2024-26936 8.2 HIGH Linux kernel 安全漏洞
CVE-2024-26980 8.2 HIGH Linux kernel 安全漏洞
CVE-2024-26954 8.1 HIGH Linux kernel 安全漏洞
CVE-2024-26994 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-26966 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-26974 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-26976 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-27062 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-27061 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-26983 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-27058 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-27056 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-27017 7.8 HIGH Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-26991

暂无评论


发表评论