🔍 CVE-2022-48989

7.8
CVSS Score
HIGH
2024-10-21
2026-08-04 10:17
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 fscache 구성 요소에서 cookie_lru와 use_cookie 간의 레이스 컨디션으로 인해 발생하는 취약점입니다. 쿠키가 만료되어 삭제되는 과정 중에 다른 스레드가 해당 쿠키를 사용하려고 시도하면 NULL 포인터 역참조가 발생하여 커널 오류(Oops)가 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터가 데이터를 임시로 저장해두는 과정에서, 삭제하려는 데이터와 사용하려는 데이터가 동시에 충돌하여 시스템이 갑자기 멈추거나 오류가 발생하는 문제입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: fscache: Fix oops due to race with cookie_lru and use_cookie If a cookie expires from the LRU and the LRU_DISCARD flag is set, but the state machine has not run yet, it's possible another thread can call fscache_use_cookie and begin to use it. When the cookie_worker finally runs, it will see the LRU_DISCARD flag set, transition the cookie->state to LRU_DISCARDING, which will then withdraw the cookie. Once the cookie is withdrawn the object is removed the below oops will occur because the object associated with the cookie is now NULL. Fix the oops by clearing the LRU_DISCARD bit if another thread uses the cookie before the cookie_worker runs. BUG: kernel NULL pointer dereference, address: 0000000000000008 ... CPU: 31 PID: 44773 Comm: kworker/u130:1 Tainted: G E 6.0.0-5.dneg.x86_64 #1 Hardware name: Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Workqueue: events_unbound netfs_rreq_write_to_cache_work [netfs] RIP: 0010:cachefiles_prepare_write+0x28/0x90 [cachefiles] ... Call Trace: netfs_rreq_write_to_cache_work+0x11c/0x320 [netfs] process_one_work+0x217/0x3e0 worker_thread+0x4a/0x3b0 kthread+0xd6/0x100

📍 영향받는 시스템

Linux kernel (fscache/netfs 관련 모듈을 사용하는 시스템)

⚔️ 공격 벡터

로컬 시스템에서 특정 레이스 컨디션을 유발하는 커널 작업 수행을 통한 서비스 거부(DoS)

🛡️ 대응 방법

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

🔧 검증 코드

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

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