🔍 CVE-2022-49699

5.5
CVSS Score
MEDIUM
2025-02-26
2026-11-05 20:17
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 filemap_get_read_batch() 함수에서 파일 무효화와 읽기가 경합할 때 sibling entry를 올바르게 처리하지 못해 NULL 포인터 역참조가 발생할 수 있는 문제입니다. 수정으로 해당 경우 함수를 즉시 반환하도록 하여 다음 호출에서 새 folio를 정상적으로 처리합니다.

💡 쉬운 설명

파일을 읽는 도중 다른 작업이 파일 캐시를 바꾸면 시스템이 잘못된 메모리를 참조해 오류가 날 수 있습니다. 보안 패치로 이 경합 상황을 안전하게 피하도록 수정되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: filemap: Handle sibling entries in filemap_get_read_batch() If a read races with an invalidation followed by another read, it is possible for a folio to be replaced with a higher-order folio. If that happens, we'll see a sibling entry for the new folio in the next iteration of the loop. This manifests as a NULL pointer dereference while holding the RCU read lock. Handle this by simply returning. The next call will find the new folio and handle it correctly. The other ways of handling this rare race are more complex and it's just not worth it.

📍 영향받는 시스템

패치가 적용되지 않은 Linux 커널 버전을 사용하는 시스템 전반 (수정 커밋 이전 커널)

⚔️ 공격 벡터

로컬 사용자가 파일 무효화와 읽기 작업의 경합 상태를 유발해 커널 NULL 포인터 역참조로 서비스 거부(시스템 불안정)를 일으킬 수 있음

🛡️ 대응 방법

배포판 제공 최신 커널 업데이트를 적용하고 재부팅하여 수정된 커널로 전환

🔧 검증 코드

출력된 커널 버전을 배포판 보안 공지에서 해당 CVE 수정이 포함된 패키지 버전과 비교하여, 수정 버전 이상이면 패치된 것이고 미만이면 업데이트가 필요합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel