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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2023-52489— Linux kernel 安全漏洞

一分钟漏洞结论

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

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于访问memory_section->usage时存在竞争问题。

AI 预测 5.5 利用难度: 中等 EPSS 0.29% · P20

影响版本矩阵 14

厂商产品 版本范围状态
Linux Linux f46edbd1b1516da1fb34c917775168d5df576f78< 90ad17575d26874287271127d43ef3c2af876cea affected
f46edbd1b1516da1fb34c917775168d5df576f78< b448de2459b6d62a53892487ab18b7d823ff0529 affected
f46edbd1b1516da1fb34c917775168d5df576f78< 68ed9e33324021e9d6b798e9db00ca3093d2012a affected
f46edbd1b1516da1fb34c917775168d5df576f78< 70064241f2229f7ba7b9599a98f68d9142e81a97 affected
f46edbd1b1516da1fb34c917775168d5df576f78< 3a01daace71b521563c38bbbf874e14c3e58adb7 affected
f46edbd1b1516da1fb34c917775168d5df576f78< 5ec8e8ea8b7783fab150cf86404fc38cb4db8800 affected
5.3 affected
< 5.3 unaffected
… +6 条更多
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2023-52489 基础信息

漏洞信息

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

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

Vulnerability Title
mm/sparsemem: fix race in accessing memory_section->usage
来源: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: mm/sparsemem: fix race in accessing memory_section->usage The below race is observed on a PFN which falls into the device memory region with the system memory configuration where PFN's are such that [ZONE_NORMAL ZONE_DEVICE ZONE_NORMAL]. Since normal zone start and end pfn contains the device memory PFN's as well, the compaction triggered will try on the device memory PFN's too though they end up in NOP(because pfn_to_online_page() returns NULL for ZONE_DEVICE memory sections). When from other core, the section mappings are being removed for the ZONE_DEVICE region, that the PFN in question belongs to, on which compaction is currently being operated is resulting into the kernel crash with CONFIG_SPASEMEM_VMEMAP enabled. The crash logs can be seen at [1]. compact_zone() memunmap_pages ------------- --------------- __pageblock_pfn_to_page ...... (a)pfn_valid(): valid_section()//return true (b)__remove_pages()-> sparse_remove_section()-> section_deactivate(): [Free the array ms->usage and set ms->usage = NULL] pfn_section_valid() [Access ms->usage which is NULL] NOTE: From the above it can be said that the race is reduced to between the pfn_valid()/pfn_section_valid() and the section deactivate with SPASEMEM_VMEMAP enabled. The commit b943f045a9af("mm/sparse: fix kernel crash with pfn_section_valid check") tried to address the same problem by clearing the SECTION_HAS_MEM_MAP with the expectation of valid_section() returns false thus ms->usage is not accessed. Fix this issue by the below steps: a) Clear SECTION_HAS_MEM_MAP before freeing the ->usage. b) RCU protected read side critical section will either return NULL when SECTION_HAS_MEM_MAP is cleared or can successfully access ->usage. c) Free the ->usage with kfree_rcu() and set ms->usage = NULL. No attempt will be made to access ->usage after this as the SECTION_HAS_MEM_MAP is cleared thus valid_section() return false. Thanks to David/Pavan for their inputs on this patch. [1] https://lore.kernel.org/linux-mm/994410bb-89aa-d987-1f50-f514903c55aa@quicinc.com/ On Snapdragon SoC, with the mentioned memory configuration of PFN's as [ZONE_NORMAL ZONE_DEVICE ZONE_NORMAL], we are able to see bunch of issues daily while testing on a device farm. For this particular issue below is the log. Though the below log is not directly pointing to the pfn_section_valid(){ ms->usage;}, when we loaded this dump on T32 lauterbach tool, it is pointing. [ 540.578056] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 540.578068] Mem abort info: [ 540.578070] ESR = 0x0000000096000005 [ 540.578073] EC = 0x25: DABT (current EL), IL = 32 bits [ 540.578077] SET = 0, FnV = 0 [ 540.578080] EA = 0, S1PTW = 0 [ 540.578082] FSC = 0x05: level 1 translation fault [ 540.578085] Data abort info: [ 540.578086] ISV = 0, ISS = 0x00000005 [ 540.578088] CM = 0, WnR = 0 [ 540.579431] pstate: 82400005 (Nzcv daif +PAN -UAO +TCO -DIT -SSBSBTYPE=--) [ 540.579436] pc : __pageblock_pfn_to_page+0x6c/0x14c [ 540.579454] lr : compact_zone+0x994/0x1058 [ 540.579460] sp : ffffffc03579b510 [ 540.579463] x29: ffffffc03579b510 x28: 0000000000235800 x27:000000000000000c [ 540.579470] x26: 0000000000235c00 x25: 0000000000000068 x24:ffffffc03579b640 [ 540.579477] x23: 0000000000000001 x22: ffffffc03579b660 x21:0000000000000000 [ 540.579483] x20: 0000000000235bff x19: ffffffdebf7e3940 x18:ffffffdebf66d140 [ 540.579489] x17: 00000000739ba063 x16: 00000000739ba063 x15:00000000009f4bff [ 540.579495] x14: 0000008000000000 x13: 0000000000000000 x12:0000000000000001 [ 540.579501] x11: 0000000000000000 x10: 0000000000000000 x9 :ffffff897d2cd440 [ 540.579507] x8 : 0000000000000000 x7 : 0000000000000000 x6 :ffffffc03579b5b4 [ 540.579512] x5 : 0000000000027f25 x4 : ffffffc03579b5b8 x3 :0000000000000 ---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存在安全漏洞,该漏洞源于访问memory_section->usage时存在竞争问题。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Linux Linux f46edbd1b1516da1fb34c917775168d5df576f78 ~ 90ad17575d26874287271127d43ef3c2af876cea -
Linux Linux 5.3 -

二、漏洞 CVE-2023-52489 的公开POC

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

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2023-52489 的情报信息

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

CVE-2023-52489 邮件列表归档 (1)

CVE-2023-52489 其他参考 (5)

同批安全公告 · Linux · 2024-02-29 · 共 53 条

CVE-2023-52480 9.8 CRITICAL Linux kernel 安全漏洞
CVE-2023-52478 8.8 HIGH Linux kernel 安全漏洞
CVE-2023-52479 8.8 HIGH Linux kernel 安全漏洞
CVE-2024-26620 8.2 HIGH Linux kernel 安全漏洞
CVE-2021-47061 7.8 HIGH Linux kernel 安全漏洞
CVE-2023-52483 7.8 HIGH Linux kernel 安全漏洞
CVE-2021-47068 7.8 HIGH Linux kernel 安全漏洞
CVE-2023-52486 7.8 HIGH Linux kernel 安全漏洞
CVE-2023-52491 7.8 HIGH Linux kernel 安全漏洞
CVE-2021-47060 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-26608 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-26610 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-26614 7.8 HIGH Linux kernel安全漏洞
CVE-2024-26617 7.8 HIGH Linux kernel 安全漏洞
CVE-2024-26611 7.5 HIGH Linux kernel 安全漏洞
CVE-2021-47066 7.1 HIGH Linux kernel 安全漏洞
CVE-2021-47055 7.1 HIGH Linux kernel 安全漏洞
CVE-2023-52497 7.1 HIGH Linux kernel 安全漏洞
CVE-2021-47054 Linux kernel 安全漏洞
CVE-2021-47065 Linux kernel 安全漏洞

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

IV. Related Vulnerabilities

V. Comments for CVE-2023-52489

暂无评论


发表评论