🔍 CVE-2025-40063

7.0
CVSS Score
HIGH
2025-10-28
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 crypto 컴포넌트에서 구조체 레이아웃 무작위화로 인해 메모리 구조의 불일치가 발생할 수 있는 취약점입니다. scomp_alg 구조체의 함수 포인터 순서가 무작위화될 경우 crypto_acomp_streams 구조체와 정의가 일치하지 않아 메모리 오류가 발생할 수 있습니다. 이 문제는 scomp_alg에서 union을 제거하여 두 구조체가 동일한 레이아웃을 공유하도록 수정되었습니다.

💡 쉬운 설명

컴퓨터가 데이터를 암호화할 때 사용하는 설계도가 무작위로 섞이면서, 서로 다른 두 설계도가 서로 맞지 않게 되는 문제입니다. 이로 인해 시스템이 잘못된 메모리 위치를 참조하여 오류가 발생하거나 불안정해질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: crypto: comp - Use same definition of context alloc and free ops In commit 42d9f6c77479 ("crypto: acomp - Move scomp stream allocation code into acomp"), the crypto_acomp_streams struct was made to rely on having the alloc_ctx and free_ctx operations defined in the same order as the scomp_alg struct. But in that same commit, the alloc_ctx and free_ctx members of scomp_alg may be randomized by structure layout randomization, since they are contained in a pure ops structure (containing only function pointers). If the pointers within scomp_alg are randomized, but those in crypto_acomp_streams are not, then the order may no longer match. This fixes the problem by removing the union from scomp_alg so that both crypto_acomp_streams and scomp_alg will share the same definition of alloc_ctx and free_ctx, ensuring they will always have the same layout.

📍 영향받는 시스템

구조체 레이아웃 무작위화(Structure Layout Randomization)가 적용된 리눅스 커널 버전

⚔️ 공격 벡터

메모리 레이아웃 불일치를 이용한 커널 메모리 오염 또는 시스템 불안정 유도

🛡️ 대응 방법

해당 취약점이 수정된 최신 리눅스 커널 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 패치가 적용된 최신 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel