🇰🇷 한글 설명
Linux 커널의 netfilter nft_counter 구성 요소에서 발생한 취약점으로, 카운터 값을 가져오고 초기화하는 과정에서 동시성 제어가 이루어지지 않아 발생합니다. 스핀락(spinlock)을 추가하여 여러 프로세스가 동시에 카운터를 초기화할 때 값이 음수로 떨어지는 언더런(underrun) 현상을 방지하도록 수정되었습니다.
💡 쉬운 설명
여러 작업이 동시에 숫자를 세고 초기화하려고 할 때, 계산이 꼬여서 숫자가 마이너스로 변할 수 있는 오류입니다. 이를 막기 위해 한 번에 하나의 작업만 처리하도록 순서를 정해주는 안전장치를 만들었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nft_counter: serialize reset with spinlock
Add a global static spinlock to serialize counter fetch+reset
operations, preventing concurrent dump-and-reset from underrunning
values.
The lock is taken before fetching the total so that two parallel
resets cannot both read the same counter values and then both
subtract them.
A global lock is used for simplicity since resets are infrequent.
If this becomes a bottleneck, it can be replaced with a per-net
lock later.
📍 영향받는 시스템
Linux kernel (netfilter/nft_counter 모듈 사용 시스템)
⚔️ 공격 벡터
동시적인 카운터 덤프 및 리셋 요청을 통한 데이터 무결성 훼손 (Race Condition)
🛡️ 대응 방법
해당 패치가 적용된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인