🔍 CVE-2026-98226

0.0
CVSS Score
UNKNOWN
2026-10-06
2026-10-19 10:18
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 스왑 메모리 관리 과정에서 SWAP_USAGE_OFFLIST_BIT 플래그와 실제 사용량 카운트가 충돌하는 취약점이 발견되었습니다. 4TiB 이상의 스왑을 사용하는 시스템에서 이 비트가 충돌하면 사용량이 잘못 계산되거나, swapoff 실행 시 데이터 손실이 발생하고 커널의 리스트 구조가 손상될 수 있습니다.

💡 쉬운 설명

컴퓨터가 메모리가 부족할 때 사용하는 임시 저장 공간(스왑)의 숫자를 세는 과정에서 계산 오류가 발생하는 문제입니다. 이 오류로 인해 저장된 데이터가 사라지거나 시스템이 불안정해질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: mm, swap: fix SWAP_USAGE_OFFLIST_BIT collision with real usage count SWAP_USAGE_OFFLIST_BIT is embedded in the si->inuse_pages usage counter, and is meant to sit above any value that counter can reach. However, it is defined from BITS_PER_TYPE(atomic_t), so it is bit 30. On a system with 4 KiB pages the flag collides with the usage count once that count reaches 4 TiB. swap_usage_in_pages() masks bit 30 out, so whenever the real count has that bit set, every caller of it reads 4 TiB low: * /proc/swaps understates Used by 4 TiB. * A raw count of exactly 2^30 masks to zero, so try_to_unuse() takes its "if (!swap_usage_in_pages(si)) goto success;" early exit and swapoff tears the device down while pages are still swapped out. Nothing in the rest of swapoff aborts the teardown, so those pages are lost. Independently of swapoff, the collision also corrupts the counter and the plist. On a device in normal use, a free that leaves bit 30 set in the count makes swap_usage_sub() see the flag where there is only count, and call add_to_avail_list(). It clears the bit with fetch_and(~SWAP_USAGE_OFFLIST_BIT), leaving the stored count 4 TiB below the real one, and calls plist_add() on a device that is already listed, tripping the WARN_ON(!plist_node_empty(node)) in plist_add() and linking the node a second time. Change the definition of SWAP_USAGE_OFFLIST_BIT to be based on atomic_long_t instead. Note that the usage counter field itself is of this same type, so it is still a valid bit.

📍 영향받는 시스템

4 TiB 이상의 스왑 공간을 사용하는 Linux Kernel 시스템

⚔️ 공격 벡터

직접적인 공격보다는 대규모 스왑 사용 환경에서 자연적으로 발생하거나 swapoff 명령 실행 시 데이터 손실 유발

🛡️ 대응 방법

SWAP_USAGE_OFFLIST_BIT 정의를 atomic_t에서 atomic_long_t로 변경한 최신 리눅스 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 배포판 보안 공지를 통해 확인하십시오.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel