🔍 CVE-2025-38257

7.3
CVSS Score
HIGH
2025-07-09
2026-10-15 22:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 s390/pkey 구성 요소에서 memdup_user() 호출 시 크기 계산 과정 중 정수 오버플로가 발생할 수 있는 취약점입니다. 사용자가 ioctl 호출을 통해 전달하는 nr_apqns 변수 값이 조작될 경우, 할당된 메모리 크기와 실제 데이터 크기가 일치하지 않아 예측 불가능한 동작을 유발할 수 있습니다.

💡 쉬운 설명

사용자가 입력한 숫자를 바탕으로 컴퓨터 메모리 크기를 계산할 때, 숫자가 너무 커서 계산 오류가 발생하는 문제입니다. 이 오류를 이용하면 컴퓨터가 예상치 못한 동작을 하거나 보안이 뚫릴 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: s390/pkey: Prevent overflow in size calculation for memdup_user() Number of apqn target list entries contained in 'nr_apqns' variable is determined by userspace via an ioctl call so the result of the product in calculation of size passed to memdup_user() may overflow. In this case the actual size of the allocated area and the value describing it won't be in sync leading to various types of unpredictable behaviour later. Use a proper memdup_array_user() helper which returns an error if an overflow is detected. Note that it is different from when nr_apqns is initially zero - that case is considered valid and should be handled in subsequent pkey_handler implementations. Found by Linux Verification Center (linuxtesting.org).

📍 영향받는 시스템

s390 아키텍처를 사용하는 Linux 커널 (패치 적용 전 버전)

⚔️ 공격 벡터

사용자 공간(Userspace)에서 ioctl 시스템 호출을 통해 조작된 nr_apqns 값을 전달하여 발생

🛡️ 대응 방법

정수 오버플로를 방지하는 memdup_array_user() 헬퍼 함수를 사용하는 최신 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 최신 보안 패치 버전인지 확인

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:L/A:H

💻 영향받는 소프트웨어

Linux Kernel