🔍 CVE-2024-38541

7.8
CVSS Score
HIGH
2024-06-19
2026-08-04 11:18
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 of_modalias() 함수에서 버퍼 크기가 충분하지 않을 경우 len 매개변수가 음수가 되어 버퍼 범위를 벗어나는 메모리 오버플로우가 발생할 수 있습니다. 이 취약점은 snprintf() 호출 이후 버퍼 크기를 확인하는 로직을 추가하여 해결되었습니다.

💡 쉬운 설명

데이터를 담는 그릇(버퍼)의 크기보다 더 큰 데이터를 넣으려고 할 때 발생하는 오류입니다. 이로 인해 시스템의 메모리 영역을 침범하여 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: of: module: add buffer overflow check in of_modalias() In of_modalias(), if the buffer happens to be too small even for the 1st snprintf() call, the len parameter will become negative and str parameter (if not NULL initially) will point beyond the buffer's end. Add the buffer overflow check after the 1st snprintf() call and fix such check after the strlen() call (accounting for the terminating NUL char).

📍 영향받는 시스템

of_modalias() 함수를 사용하는 Linux Kernel 버전

⚔️ 공격 벡터

조작된 Open Firmware(OF) 데이터를 통해 메모리 오버플로우 유도

🛡️ 대응 방법

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

🔧 검증 코드

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

Shell / Script
uname -r

📊 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