🔍 CVE-2024-26706

7.8
CVSS Score
HIGH
2024-04-03
2026-08-04 11:16
✅ 완료

🇰🇷 한글 설명

Linux 커널의 parisc 아키텍처에서 예외 처리기가 사용자 공간 메모리 접근 시 오류 코드를 저장하는 과정에서 데이터 손상이 발생할 수 있는 취약점입니다. 컴파일러가 지정된 레지스터(%r29) 대신 다른 레지스터를 사용할 경우, 예외 처리기가 잘못된 레지스터에 값을 덮어씌워 데이터가 오염됩니다.

💡 쉬운 설명

컴퓨터의 메모리 오류를 처리하는 과정에서 엉뚱한 저장 공간을 건드려 데이터가 망가지는 문제입니다. 이로 인해 시스템이 예상치 못한 방식으로 동작하거나 오류가 발생할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: parisc: Fix random data corruption from exception handler The current exception handler implementation, which assists when accessing user space memory, may exhibit random data corruption if the compiler decides to use a different register than the specified register %r29 (defined in ASM_EXCEPTIONTABLE_REG) for the error code. If the compiler choose another register, the fault handler will nevertheless store -EFAULT into %r29 and thus trash whatever this register is used for. Looking at the assembly I found that this happens sometimes in emulate_ldd(). To solve the issue, the easiest solution would be if it somehow is possible to tell the fault handler which register is used to hold the error code. Using %0 or %1 in the inline assembly is not posssible as it will show up as e.g. %r29 (with the "%r" prefix), which the GNU assembler can not convert to an integer. This patch takes another, better and more flexible approach: We extend the __ex_table (which is out of the execution path) by one 32-word. In this word we tell the compiler to insert the assembler instruction "or %r0,%r0,%reg", where %reg references the register which the compiler choosed for the error return code. In case of an access failure, the fault handler finds the __ex_table entry and can examine the opcode. The used register is encoded in the lowest 5 bits, and the fault handler can then store -EFAULT into this register. Since we extend the __ex_table to 3 words we can't use the BUILDTIME_TABLE_SORT config option any longer.

📍 영향받는 시스템

Linux kernel (parisc architecture)

⚔️ 공격 벡터

특정 메모리 접근 패턴을 유도하여 예외 처리기를 트리거함으로써 레지스터 데이터 오염 유발

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트

🔧 검증 코드

출력 결과에 parisc 아키텍처 정보가 포함되어 있다면 해당 취약점의 영향권에 있는 시스템일 가능성이 높습니다.

Shell / Script
uname -a | grep -i 'parisc'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel