🇰🇷 한글 설명
Linux 커널의 systemport 네트워크 드라이버에서 여러 전송 큐(TX queue)를 동시에 사용할 때 디스크립터 목록에 대한 동기화 문제가 발생합니다. 이로 인해 하드웨어가 잘못된 데이터 버퍼를 참조하거나 패킷 길이가 손상된 상태로 체크섬이 계산되는 데이터 오염 현상이 발생할 수 있습니다.
💡 쉬운 설명
네트워크 카드가 데이터를 보낼 때 여러 통로를 동시에 사용하면 데이터의 위치 정보가 엉키는 문제가 있습니다. 이로 인해 데이터 내용이 깨지거나 잘못된 정보가 전송될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: systemport: Add global locking for descriptor lifecycle
The descriptor list is a shared resource across all of the transmit queues, and
the locking mechanism used today only protects concurrency across a given
transmit queue between the transmit and reclaiming. This creates an opportunity
for the SYSTEMPORT hardware to work on corrupted descriptors if we have
multiple producers at once which is the case when using multiple transmit
queues.
This was particularly noticeable when using multiple flows/transmit queues and
it showed up in interesting ways in that UDP packets would get a correct UDP
header checksum being calculated over an incorrect packet length. Similarly TCP
packets would get an equally correct checksum computed by the hardware over an
incorrect packet length.
The SYSTEMPORT hardware maintains an internal descriptor list that it re-arranges
when the driver produces a new descriptor anytime it writes to the
WRITE_PORT_{HI,LO} registers, there is however some delay in the hardware to
re-organize its descriptors and it is possible that concurrent TX queues
eventually break this internal allocation scheme to the point where the
length/status part of the descriptor gets used for an incorrect data buffer.
The fix is to impose a global serialization for all TX queues in the short
section where we are writing to the WRITE_PORT_{HI,LO} registers which solves
the corruption even with multiple concurrent TX queues being used.
📍 영향받는 시스템
Linux kernel (systemport driver 사용 환경)
⚔️ 공격 벡터
다중 전송 큐(Multiple TX queues)를 사용하는 네트워크 트래픽 환경에서 데이터 오염 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 전송 큐에 대한 글로벌 잠금(Global locking) 메커니즘을 적용해야 합니다.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전 이상인지 확인합니다.