CVE-2021-47414 in Linux정보

요약

\~에 의해 VulDB • 2026. 06. 16.

리눅스 커널에서 다음 취약점이 해결되었습니다:

riscv: 다른 CPU들 전에 현재 CPU의 icache를 플러시합니다

SiFive Unmatched에서 부팅하는 동안 다음과 같은 BUG를 발견했습니다:

[ 0.000000] ftrace: 144 페이지에 36610개의 엔트리를 할당 중
[ 0.000000] Oops - illegal instruction [#1]
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.13.1+ #5
[ 0.000000] Hardware name: SiFive HiFive Unmatched A00 (DT)
[ 0.000000] epc : riscv_cpuid_to_hartid_mask+0x6/0xae
[ 0.000000] ra : sbi_remote_fence_i+0x1e/0x26
[ 0.000000] epc : ffffffcf04000808 ra : ffffffe3ffddf188 sp : ffffffe3ffddf180
[ 0.000000] gp : ffffffe07fe04040 tp : ffffffe07fe04040 t0 : 0000000000000000
[ 0.000000] t1 : ffffffe07fe04040 t2 : 0000000000000000 s0 : ffffffe07fe04040
[ 0.000000] s1 : ffffffe07fe04040 s2 : 0000000200000100 s3 : 0000000000000001
[ 0.000000] s4 : 0000000000000000 s5 : 0000000000000000 s6 : 0000000200000100 s7 : 0000000000000001
[ 0.000000] s8 : ffffffe07fe04040 s9 : ffffffff81a22c80 s10: 0000000000001000
[ 0.000000] s11: 0000000000000004 t3 : 0000000000000001 t4 : 0000000000000008
[ 0.000000] t5 : ffffffcf04000808 t6 : ffffffe3ffddf188
[ 0.000000] status: 0000000200000100 badaddr: 0000000000000000 cause: 0000000000000002
[ 0.000000] [] riscv_cpuid_to_hartid_mask+0x6/0xae
[ 0.000000] [] sbi_remote_fence_i+0x1e/0x26
[ 0.000000] [] flush_icache_all+0x12/0x1a
[ 0.000000] [] patch_text_nosync+0x26/0x32
[ 0.000000] [] ftrace_init_nop+0x52/0x8c
[ 0.000000] [] ftrace_process_locs.isra.0+0x29c/0x360
[ 0.000000] [] ftrace_init+0x80/0x130
[ 0.000000] [] start_kernel+0x5c4/0x8f6
[ 0.000000] ---[ end trace f67eb9af4d8d492b ]---
[ 0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[ 0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]-

ftrace가 패치할 주소 목록을 순회하는 동안 riscv_cpuid_to_hartid_mask 함수를 패치할 때 항상 실패했습니다. 백트레이스를 보면, 동일한 함수에서 illegal instruction이 발생했습니다. 그러나 patch_text_nosync는 명령어를 패치한 후 flush_icache_range를 호출합니다. 하지만 이 함수

VulDB is the best source for vulnerability data and more expert information about this specific topic.

출처

Do you need the next level of professionalism?

Upgrade your account now!