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

目标: 1000 元 · 已筹: 1359 元

100%

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

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于 parisc 架构存在随机段错误问题。

CVSS 7.8 · High EPSS 0.29% · P21

可能的 ATT&CK 技术 1 AI

T1499.001 · OS Exhaustion Flood

影响版本矩阵 8

厂商产品 版本范围状态
Linux Linux 2de8b4cc2051ee1d40eedbcf94de0e7d04507c37< 5bf196f1936bf93df31112fbdfb78c03537c07b0 affected
2de8b4cc2051ee1d40eedbcf94de0e7d04507c37< d66f2607d89f760cdffed88b22f309c895a2af20 affected
2de8b4cc2051ee1d40eedbcf94de0e7d04507c37< 72d95924ee35c8cd16ef52f912483ee938a34d49 affected
5.18 affected
< 5.18 unaffected
6.6.35≤ 6.6.* unaffected
6.9.6≤ 6.9.* unaffected
6.10≤ * unaffected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
parisc: Try to fix random segmentation faults in package builds
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: parisc: Try to fix random segmentation faults in package builds PA-RISC systems with PA8800 and PA8900 processors have had problems with random segmentation faults for many years. Systems with earlier processors are much more stable. Systems with PA8800 and PA8900 processors have a large L2 cache which needs per page flushing for decent performance when a large range is flushed. The combined cache in these systems is also more sensitive to non-equivalent aliases than the caches in earlier systems. The majority of random segmentation faults that I have looked at appear to be memory corruption in memory allocated using mmap and malloc. My first attempt at fixing the random faults didn't work. On reviewing the cache code, I realized that there were two issues which the existing code didn't handle correctly. Both relate to cache move-in. Another issue is that the present bit in PTEs is racy. 1) PA-RISC caches have a mind of their own and they can speculatively load data and instructions for a page as long as there is a entry in the TLB for the page which allows move-in. TLBs are local to each CPU. Thus, the TLB entry for a page must be purged before flushing the page. This is particularly important on SMP systems. In some of the flush routines, the flush routine would be called and then the TLB entry would be purged. This was because the flush routine needed the TLB entry to do the flush. 2) My initial approach to trying the fix the random faults was to try and use flush_cache_page_if_present for all flush operations. This actually made things worse and led to a couple of hardware lockups. It finally dawned on me that some lines weren't being flushed because the pte check code was racy. This resulted in random inequivalent mappings to physical pages. The __flush_cache_page tmpalias flush sets up its own TLB entry and it doesn't need the existing TLB entry. As long as we can find the pte pointer for the vm page, we can get the pfn and physical address of the page. We can also purge the TLB entry for the page before doing the flush. Further, __flush_cache_page uses a special TLB entry that inhibits cache move-in. When switching page mappings, we need to ensure that lines are removed from the cache. It is not sufficient to just flush the lines to memory as they may come back. This made it clear that we needed to implement all the required flush operations using tmpalias routines. This includes flushes for user and kernel pages. After modifying the code to use tmpalias flushes, it became clear that the random segmentation faults were not fully resolved. The frequency of faults was worse on systems with a 64 MB L2 (PA8900) and systems with more CPUs (rp4440). The warning that I added to flush_cache_page_if_present to detect pages that couldn't be flushed triggered frequently on some systems. Helge and I looked at the pages that couldn't be flushed and found that the PTE was either cleared or for a swap page. Ignoring pages that were swapped out seemed okay but pages with cleared PTEs seemed problematic. I looked at routines related to pte_clear and noticed ptep_clear_flush. The default implementation just flushes the TLB entry. However, it was obvious that on parisc we need to flush the cache page as well. If we don't flush the cache page, stale lines will be left in the cache and cause random corruption. Once a PTE is cleared, there is no way to find the physical address associated with the PTE and flush the associated page at a later time. I implemented an updated change with a parisc specific version of ptep_clear_flush. It fixed the random data corruption on Helge's rp4440 and rp3440, as well as on my c8000. At this point, I realized that I could restore the code where we only flush in flush_cache_page_if_present if the page has been accessed. However, for this, we also need to flush the cache when the accessed bit is cleared in ---truncated---
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
来源: 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 存在安全漏洞,该漏洞源于 parisc 架构存在随机段错误问题。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux 2de8b4cc2051ee1d40eedbcf94de0e7d04507c37 ~ 5bf196f1936bf93df31112fbdfb78c03537c07b0 -
Linux Linux 5.18 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2024-40918 其他参考 (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-40956 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 安全漏洞
CVE-2024-40991 7.8 HIGH Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-40918

暂无评论


发表评论