🇰🇷 한글 설명
Linux 커널의 net/smc 구성 요소에서 세 개의 연결 상태 플래그(killed, freed, out_of_sync)가 하나의 바이트 내에 비트필드로 공유되어 발생하는 취약점입니다. 각 플래그가 공통 잠금 없이 개별적으로 수정될 때 데이터 경합(Race Condition)이 발생하여 상태 값이 의도치 않게 변경될 수 있습니다.
💡 쉬운 설명
여러 작업이 동시에 하나의 작은 저장 공간을 수정하려고 할 때, 서로의 작업 내용을 덮어씌워 시스템 상태를 꼬이게 만드는 문제입니다. 이로 인해 네트워크 연결 상태가 잘못 관리될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/smc: stop killed, freed and out_of_sync sharing a byte
The three connection state flags are single-bit bitfields, so they occupy
one byte of struct smc_connection and every store to one is a
read-modify-write of the other two:
u8 killed : 1;
u8 freed : 1;
u8 out_of_sync : 1;
They are not written under a common lock. smc_cdc_msg_validate() sets
out_of_sync from the receive tasklet, while smc_conn_kill() sets killed
from process context under lock_sock(), and the receive path does not defer
to the backlog when the socket is owned -- smc_cdc_msg_recv() takes only
bh_lock_sock().
Give each flag its own byte so a store no longer touches its neighbours.
All readers test them as booleans and are unchanged. struct smc_connection
grows by two bytes.
📍 영향받는 시스템
Linux Kernel (net/smc 모듈을 사용하는 시스템)
⚔️ 공격 벡터
네트워크 수신 태스크렛과 프로세스 컨텍스트 간의 동시 접근을 유도하는 레이스 컨디션 공격
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 취약점이 패치된 보안 업데이트 버전인지 확인하십시오.