🔍 CVE-2024-40900

7.8
CVSS Score
HIGH
2024-07-12
2026-08-04 11:19
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 cachefiles 구성 요소에서 플러싱 요청 시 xarray로부터 요청을 적절히 제거하지 않아 발생하는 취약점입니다. 이로 인해 특정 동시성 상황에서 이미 해제된 메모리 영역에 접근하는 Use-After-Free(UAF) 문제가 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터가 이미 사용이 끝나서 지워버린 데이터를 다른 작업이 실수로 다시 읽으려고 시도할 때 발생하는 오류입니다. 이 과정에서 시스템이 불안정해지거나 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: cachefiles: remove requests from xarray during flushing requests Even with CACHEFILES_DEAD set, we can still read the requests, so in the following concurrency the request may be used after it has been freed: mount | daemon_thread1 | daemon_thread2 ------------------------------------------------------------ cachefiles_ondemand_init_object cachefiles_ondemand_send_req REQ_A = kzalloc(sizeof(*req) + data_len) wait_for_completion(&REQ_A->done) cachefiles_daemon_read cachefiles_ondemand_daemon_read // close dev fd cachefiles_flush_reqs complete(&REQ_A->done) kfree(REQ_A) xa_lock(&cache->reqs); cachefiles_ondemand_select_req req->msg.opcode != CACHEFILES_OP_READ // req use-after-free !!! xa_unlock(&cache->reqs); xa_destroy(&cache->reqs) Hence remove requests from cache->reqs when flushing them to avoid accessing freed requests.

📍 영향받는 시스템

Linux Kernel (cachefiles 모듈 사용 시)

⚔️ 공격 벡터

특정 조건에서 동시성(Concurrency)을 유도하여 해제된 메모리 주소에 접근하는 방식

🛡️ 대응 방법

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

🔧 검증 코드

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

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