Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-36906— ARM: 9381/1: kasan: clear stale stack poison

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于 ARM:9381/1:kasan 模块存在漏洞。

AI Predicted 5.3 Difficulty: Theoretical EPSS 0.23% · P13

Affected Version Matrix 12

VendorProduct Version RangeStatus
Linux Linux 5615f69bc2097452ecc954f5264d784e158d6801< 20ac71bee028ffbae4fc14ed679b23b4d3e95726 affected
5615f69bc2097452ecc954f5264d784e158d6801< ad702338fe423cb1e79745787090317256a98dab affected
5615f69bc2097452ecc954f5264d784e158d6801< ee0ce7573e5083031960faf602c9db693ab5b477 affected
5615f69bc2097452ecc954f5264d784e158d6801< b26f353786d365e658cebc9a9ace88e04fc2325e affected
5615f69bc2097452ecc954f5264d784e158d6801< c4238686f9093b98bd6245a348bcf059cdce23af affected
5.11 affected
< 5.11 unaffected
5.15.159≤ 5.15.* unaffected
… +4 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-36906

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
ARM: 9381/1: kasan: clear stale stack poison
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: ARM: 9381/1: kasan: clear stale stack poison We found below OOB crash: [ 33.452494] ================================================================== [ 33.453513] BUG: KASAN: stack-out-of-bounds in refresh_cpu_vm_stats.constprop.0+0xcc/0x2ec [ 33.454660] Write of size 164 at addr c1d03d30 by task swapper/0/0 [ 33.455515] [ 33.455767] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G O 6.1.25-mainline #1 [ 33.456880] Hardware name: Generic DT based system [ 33.457555] unwind_backtrace from show_stack+0x18/0x1c [ 33.458326] show_stack from dump_stack_lvl+0x40/0x4c [ 33.459072] dump_stack_lvl from print_report+0x158/0x4a4 [ 33.459863] print_report from kasan_report+0x9c/0x148 [ 33.460616] kasan_report from kasan_check_range+0x94/0x1a0 [ 33.461424] kasan_check_range from memset+0x20/0x3c [ 33.462157] memset from refresh_cpu_vm_stats.constprop.0+0xcc/0x2ec [ 33.463064] refresh_cpu_vm_stats.constprop.0 from tick_nohz_idle_stop_tick+0x180/0x53c [ 33.464181] tick_nohz_idle_stop_tick from do_idle+0x264/0x354 [ 33.465029] do_idle from cpu_startup_entry+0x20/0x24 [ 33.465769] cpu_startup_entry from rest_init+0xf0/0xf4 [ 33.466528] rest_init from arch_post_acpi_subsys_init+0x0/0x18 [ 33.467397] [ 33.467644] The buggy address belongs to stack of task swapper/0/0 [ 33.468493] and is located at offset 112 in frame: [ 33.469172] refresh_cpu_vm_stats.constprop.0+0x0/0x2ec [ 33.469917] [ 33.470165] This frame has 2 objects: [ 33.470696] [32, 76) 'global_zone_diff' [ 33.470729] [112, 276) 'global_node_diff' [ 33.471294] [ 33.472095] The buggy address belongs to the physical page: [ 33.472862] page:3cd72da8 refcount:1 mapcount:0 mapping:00000000 index:0x0 pfn:0x41d03 [ 33.473944] flags: 0x1000(reserved|zone=0) [ 33.474565] raw: 00001000 ed741470 ed741470 00000000 00000000 00000000 ffffffff 00000001 [ 33.475656] raw: 00000000 [ 33.476050] page dumped because: kasan: bad access detected [ 33.476816] [ 33.477061] Memory state around the buggy address: [ 33.477732] c1d03c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.478630] c1d03c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 [ 33.479526] >c1d03d00: 00 04 f2 f2 f2 f2 00 00 00 00 00 00 f1 f1 f1 f1 [ 33.480415] ^ [ 33.481195] c1d03d80: 00 00 00 00 00 00 00 00 00 00 04 f3 f3 f3 f3 f3 [ 33.482088] c1d03e00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.482978] ================================================================== We find the root cause of this OOB is that arm does not clear stale stack poison in the case of cpuidle. This patch refer to arch/arm64/kernel/sleep.S to resolve this issue. From cited commit [1] that explain the problem Functions which the compiler has instrumented for KASAN place poison on the stack shadow upon entry and remove this poison prior to returning. In the case of cpuidle, CPUs exit the kernel a number of levels deep in C code. Any instrumented functions on this critical path will leave portions of the stack shadow poisoned. If CPUs lose context and return to the kernel via a cold path, we restore a prior context saved in __cpu_suspend_enter are forgotten, and we never remove the poison they placed in the stack shadow area by functions calls between this and the actual exit of the kernel. Thus, (depending on stackframe layout) subsequent calls to instrumented functions may hit this stale poison, resulting in (spurious) KASAN splats to the console. To avoid this, clear any stale poison from the idle thread for a CPU prior to bringing a CPU online. From cited commit [2] Extend to check for CONFIG_KASAN_STACK [1] commit 0d97e6d8024c ("arm64: kasan: clear stale stack poison") [2] commit d56a9ef84bd0 ("kasan, arm64: unpoison stack only with CONFIG_KASAN_STACK")
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel 存在安全漏洞,该漏洞源于 ARM:9381/1:kasan 模块存在漏洞。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 5615f69bc2097452ecc954f5264d784e158d6801 ~ 20ac71bee028ffbae4fc14ed679b23b4d3e95726 -
Linux Linux 5.11 -

II. Public POCs for CVE-2024-36906

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-36906

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

Other References for CVE-2024-36906 (5)

Same Patch Batch · Linux · 2024-05-30 · 93 CVEs total

CVE-2024-36958 9.8 CRITICAL NFSD: Fix nfsd4_encode_fattr4() crasher
CVE-2024-36886 9.8 CRITICAL tipc: fix UAF in error path
CVE-2024-36911 9.8 CRITICAL hv_netvsc: Don't free decrypted memory
CVE-2024-36912 9.6 CRITICAL Drivers: hv: vmbus: Track decrypted status in vmbus_gpadl
CVE-2024-36913 9.3 CRITICAL Drivers: hv: vmbus: Leak pages if set_memory_encrypted() fails
CVE-2024-36909 9.3 CRITICAL Drivers: hv: vmbus: Don't free ring buffers that couldn't be re-encrypted
CVE-2024-36922 8.8 HIGH wifi: iwlwifi: read txq->read_ptr under lock
CVE-2024-36921 8.8 HIGH wifi: iwlwifi: mvm: guard against invalid STA ID on removal
CVE-2024-36910 8.4 HIGH uio_hv_generic: Don't free decrypted memory
CVE-2024-36032 8.1 HIGH Bluetooth: qca: fix info leak when fetching fw build id
CVE-2024-36933 7.8 HIGH nsh: Restore skb->{protocol,data,mac_header} for outer header in nsh_gso_segment().
CVE-2024-36904 7.8 HIGH tcp: Use refcount_inc_not_zero() in tcp_twsk_unique().
CVE-2024-36914 7.8 HIGH drm/amd/display: Skip on writeback when it's not applicable
CVE-2024-36918 7.8 HIGH bpf: Check bloom filter map value size
CVE-2024-36018 7.8 HIGH nouveau/uvmm: fix addr/range calcs for remap operations
CVE-2024-36894 7.8 HIGH usb: gadget: f_fs: Fix race between aio_cancel() and AIO request complete
CVE-2024-36890 7.8 HIGH mm/slab: make __free(kfree) accept error pointers
CVE-2024-36940 7.8 HIGH pinctrl: core: delete incorrect free in pinctrl_enable()
CVE-2024-36928 7.8 HIGH s390/qeth: Fix kernel panic after setting hsuid
CVE-2024-36884 7.8 HIGH iommu/arm-smmu: Use the correct type in nvidia_smmu_context_fault()

Showing top 20 of 93 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2024-36906

No comments yet


Leave a comment