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

目标: 1000 元 · 已筹: 1359 元

100%

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

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于resource处理模块在处理CXL内存时region_intersects函数与add_memory_driver_managed函数之间的冲突。

AI 预测 5.5 利用难度: 中等 EPSS 0.30% · P21

可能的 ATT&CK 技术 1 AI

T1055 · Process Injection

影响版本矩阵 18

厂商产品 版本范围状态
Linux Linux c221c0b0308fd01d9fb33a16f64d2fd95f8830a4< 333fbaf6864a4ca031367eb947961a1f3484d337 affected
c221c0b0308fd01d9fb33a16f64d2fd95f8830a4< 1d5f85f1b7db79c75c9e07d6571ce2a7bdf725c4 affected
c221c0b0308fd01d9fb33a16f64d2fd95f8830a4< 8a6fef7d22a1d952aed68584d3fcc0d018d2bdc3 affected
c221c0b0308fd01d9fb33a16f64d2fd95f8830a4< 4b90d2eb451b357681063ba4552b10b39d7ad885 affected
c221c0b0308fd01d9fb33a16f64d2fd95f8830a4< 393331e16ce205e036e58b3d8ca4ee2e635f21d9 affected
c221c0b0308fd01d9fb33a16f64d2fd95f8830a4< 06ff97a20b8c9e9d256b0d2c3e87f78f8ccea3de affected
c221c0b0308fd01d9fb33a16f64d2fd95f8830a4< 927abc5b7d6d2c2e936bec5a2f71d9512c5e72f7 affected
c221c0b0308fd01d9fb33a16f64d2fd95f8830a4< b4afe4183ec77f230851ea139d91e5cf2644c68b affected
… +10 条更多
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
resource: fix region_intersects() vs add_memory_driver_managed()
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: resource: fix region_intersects() vs add_memory_driver_managed() On a system with CXL memory, the resource tree (/proc/iomem) related to CXL memory may look like something as follows. 490000000-50fffffff : CXL Window 0 490000000-50fffffff : region0 490000000-50fffffff : dax0.0 490000000-50fffffff : System RAM (kmem) Because drivers/dax/kmem.c calls add_memory_driver_managed() during onlining CXL memory, which makes "System RAM (kmem)" a descendant of "CXL Window X". This confuses region_intersects(), which expects all "System RAM" resources to be at the top level of iomem_resource. This can lead to bugs. For example, when the following command line is executed to write some memory in CXL memory range via /dev/mem, $ dd if=data of=/dev/mem bs=$((1 << 10)) seek=$((0x490000000 >> 10)) count=1 dd: error writing '/dev/mem': Bad address 1+0 records in 0+0 records out 0 bytes copied, 0.0283507 s, 0.0 kB/s the command fails as expected. However, the error code is wrong. It should be "Operation not permitted" instead of "Bad address". More seriously, the /dev/mem permission checking in devmem_is_allowed() passes incorrectly. Although the accessing is prevented later because ioremap() isn't allowed to map system RAM, it is a potential security issue. During command executing, the following warning is reported in the kernel log for calling ioremap() on system RAM. ioremap on RAM at 0x0000000490000000 - 0x0000000490000fff WARNING: CPU: 2 PID: 416 at arch/x86/mm/ioremap.c:216 __ioremap_caller.constprop.0+0x131/0x35d Call Trace: memremap+0xcb/0x184 xlate_dev_mem_ptr+0x25/0x2f write_mem+0x94/0xfb vfs_write+0x128/0x26d ksys_write+0xac/0xfe do_syscall_64+0x9a/0xfd entry_SYSCALL_64_after_hwframe+0x4b/0x53 The details of command execution process are as follows. In the above resource tree, "System RAM" is a descendant of "CXL Window 0" instead of a top level resource. So, region_intersects() will report no System RAM resources in the CXL memory region incorrectly, because it only checks the top level resources. Consequently, devmem_is_allowed() will return 1 (allow access via /dev/mem) for CXL memory region incorrectly. Fortunately, ioremap() doesn't allow to map System RAM and reject the access. So, region_intersects() needs to be fixed to work correctly with the resource tree with "System RAM" not at top level as above. To fix it, if we found a unmatched resource in the top level, we will continue to search matched resources in its descendant resources. So, we will not miss any matched resources in resource tree anymore. In the new implementation, an example resource tree |------------- "CXL Window 0" ------------| |-- "System RAM" --| will behave similar as the following fake resource tree for region_intersects(, IORESOURCE_SYSTEM_RAM, ), |-- "System RAM" --||-- "CXL Window 0a" --| Where "CXL Window 0a" is part of the original "CXL Window 0" that isn't covered by "System RAM".
来源: 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存在安全漏洞,该漏洞源于resource处理模块在处理CXL内存时region_intersects函数与add_memory_driver_managed函数之间的冲突。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux c221c0b0308fd01d9fb33a16f64d2fd95f8830a4 ~ 333fbaf6864a4ca031367eb947961a1f3484d337 -
Linux Linux 5.1 -

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2024-49878 补丁与修复 (7)

同批安全公告 · Linux · 2024-10-21 · 共 372 条

CVE-2024-50043 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-48985 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-47695 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-50033 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-49855 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-50047 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-50046 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2022-49003 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2024-49996 9.4 CRITICAL Linux kernel 安全漏洞
CVE-2024-47678 9.4 CRITICAL Linux kernel 安全漏洞
CVE-2022-49017 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-50029 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-50041 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-49939 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-48960 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-48962 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-48964 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-49015 8.8 HIGH Linux kernel 安全漏洞
CVE-2022-48967 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-49930 8.8 HIGH Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2024-49878

暂无评论


发表评论