🔍 CVE-2025-22036

7.8
CVSS Score
HIGH
2025-04-16
2026-07-30 06:22
✅ 완료

🇰🇷 한글 설명

Linux 커널의 exfat 파일 시스템에서 get_block 호출 시 스택에 할당된 buffer_head를 사용하는 과정에서 Use-After-Free(UAF)로 인한 스택 오염이 발생할 수 있는 취약점입니다. 특정 레이스 컨디션 상황에서 buffer_head가 유효하지 않은 상태로 참조되어 메모리 손상을 일으킵니다.

💡 쉬운 설명

파일 시스템이 데이터를 읽는 과정에서 메모리 관리 실수로 인해 시스템의 중요한 데이터가 저장된 공간(스택)이 망가질 수 있는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: exfat: fix random stack corruption after get_block When get_block is called with a buffer_head allocated on the stack, such as do_mpage_readpage, stack corruption due to buffer_head UAF may occur in the following race condition situation. <CPU 0> <CPU 1> mpage_read_folio <<bh on stack>> do_mpage_readpage exfat_get_block bh_read __bh_read get_bh(bh) submit_bh wait_on_buffer ... end_buffer_read_sync __end_buffer_read_notouch unlock_buffer <<keep going>> ... ... ... ... <<bh is not valid out of mpage_read_folio>> . . another_function <<variable A on stack>> put_bh(bh) atomic_dec(bh->b_count) * stack corruption here * This patch returns -EAGAIN if a folio does not have buffers when bh_read needs to be called. By doing this, the caller can fallback to functions like block_read_full_folio(), create a buffer_head in the folio, and then call get_block again. Let's do not call bh_read() with on-stack buffer_head.

📍 영향받는 시스템

exfat 파일 시스템을 사용하는 Linux 커널 버전

⚔️ 공격 벡터

특수하게 조작된 exfat 파일 시스템을 마운트하여 레이스 컨디션을 유도함으로써 발생

🛡️ 대응 방법

exfat 관련 스택 오염 방지 패치가 적용된 최신 Linux 커널로 업데이트

🔧 검증 코드

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

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