🔍 CVE-2024-38559

4.4
CVSS Score
MEDIUM
2024-06-19
2026-10-15 01:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 SCSI qedf 드라이버에서 사용자 공간 데이터 복사 시 NUL 종료 문자를 보장하지 않아, kstrtouint 함수 사용 시 Out of Bounds 메모리 읽기 취약점이 발생할 수 있습니다. memdup_user를 NUL 종료를 보장하는 memdup_user_nul로 변경하여 해결되었습니다.

💡 쉬운 설명

커널이 사용자로부터 받은 데이터의 끝을 명시적으로 표시하지 않아, 의도하지 않은 메모리 영역까지 접근할 수 있는 문제입니다. 이를 데이터 끝을 명확히 표시하는 방식으로 수정했습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: scsi: qedf: Ensure the copied buf is NUL terminated Currently, we allocate a count-sized kernel buffer and copy count from userspace to that buffer. Later, we use kstrtouint on this buffer but we don't ensure that the string is terminated inside the buffer, this can lead to OOB read when using kstrtouint. Fix this issue by using memdup_user_nul instead of memdup_user.

📍 영향받는 시스템

Linux kernel 5.10 이상의 SCSI qedf 드라이버 (2024년 9월 5일 이전 버전)

⚔️ 공격 벡터

로컬 사용자가 sysfs를 통해 NUL 종료되지 않은 데이터를 전달하여 커널 메모리 경계 외 접근 유발

🛡️ 대응 방법

Linux 커널을 5.10.209+, 5.15.150+, 5.19.17+, 6.1.79+, 6.6.18+, 6.10.5+ 이상의 패치된 버전으로 업데이트

🔧 검증 코드

커널 버전을 확인하고 위의 권장 버전 이상인지 비교합니다. 더 높은 버전이면 취약점이 수정되었습니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel