🇰🇷 한글 설명
Linux 커널의 netfs 구성 요소에서 쓰기 작업(writeback) 중 메모리 할당 실패(ENOMEM)를 적절히 처리하지 못하는 취약점이 발견되었습니다. 이를 해결하기 위해 mempool을 추가하고 gfp_t 플래그를 사용하여 메모리 할당 로직을 개선하였습니다.
💡 쉬운 설명
컴퓨터가 데이터를 저장할 때 메모리가 부족하면 시스템이 오류를 일으키거나 멈출 수 있는 문제가 있었습니다. 메모리를 미리 확보해두는 방식을 도입하여 메모리가 부족한 상황에서도 안전하게 작동하도록 수정되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfs: Fix folio_queue ENOMEM in writeback by adding a mempool
Fix the handling of folio_queue allocation failure in writeback by adding a
mempool and passing in gfp_t flags to the rolling buffer functions that
allocate memory, using the mempool if gfp != GFP_KERNEL.
This is then extended upwards and the gfp to be used for a request is stored
in the netfs_io_request struct and is then used for both requests and
subrequests, eliminating the sleeping loops there.
The failure caused:
folio != NULL
WARNING: fs/netfs/write_issue.c:603 at netfs_writepages+0x883/0xa10 fs/netfs/write_issue.c:603, CPU#3: syz.0.17/5919
📍 영향받는 시스템
Linux kernel (netfs 구성 요소가 포함된 버전)
⚔️ 공격 벡터
메모리 부족 상황을 유도하여 커널 경고(WARNING) 및 시스템 불안정을 유발하는 방식
🛡️ 대응 방법
netfs 패치가 적용된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux