🔍 CVE-2024-39480

8.4
CVSS Score
HIGH
2024-07-05
2026-08-04 11:18
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 kdb 모듈에서 탭 완성(tab-complete) 기능을 사용할 때 버퍼 오버플로가 발생하는 취약점입니다. strncpy() 함수 사용 시 목적지 버퍼 크기가 아닌 소스 버퍼 크기를 전달하여, 명령 버퍼가 가득 찬 상태에서 커서 위치에 따라 버퍼 범위를 벗어난 쓰기가 발생할 수 있습니다.

💡 쉬운 설명

리눅스 커널의 특정 기능에서 키보드의 'Tab' 키를 눌러 자동 완성 기능을 사용할 때 메모리 오류가 발생할 수 있습니다. 이 오류를 악용하면 시스템의 메모리를 넘쳐나게 만들어 보안 문제를 일으킬 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: kdb: Fix buffer overflow during tab-complete Currently, when the user attempts symbol completion with the Tab key, kdb will use strncpy() to insert the completed symbol into the command buffer. Unfortunately it passes the size of the source buffer rather than the destination to strncpy() with predictably horrible results. Most obviously if the command buffer is already full but cp, the cursor position, is in the middle of the buffer, then we will write past the end of the supplied buffer. Fix this by replacing the dubious strncpy() calls with memmove()/memcpy() calls plus explicit boundary checks to make sure we have enough space before we start moving characters around.

📍 영향받는 시스템

Linux Kernel (kdb 모듈이 포함된 버전)

⚔️ 공격 벡터

kdb 환경에서 탭 완성 기능을 이용한 특수 상황의 입력값 주입

🛡️ 대응 방법

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

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel