🇰🇷 한글 설명
Linux 커널의 DRBD 구성 요소에서 데이터 응답의 페이로드 크기가 범위를 벗어나는 취약점이 발견되었습니다. 공격자가 조작된 크기의 데이터를 전송할 경우 정수 언더플로우 또는 오버플로우가 발생하여 커널 메모리가 손상될 수 있습니다.
💡 쉬운 설명
네트워크를 통해 데이터를 주고받는 과정에서 데이터의 크기를 잘못 계산하여 시스템의 중요한 메모리 영역을 망가뜨릴 수 있는 결함입니다. 해커가 가짜 데이터를 보내면 컴퓨터의 핵심 운영체제 부분이 오작동하거나 제어권을 뺏길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drbd: reject data replies with an out-of-range payload size
recv_dless_read() receives a P_DATA_REPLY from a peer into the bio of an
outstanding read request. The peer-supplied payload length reaches it as
the signed int data_size, and two peer-controlled inputs can make it
negative. With a negotiated data-integrity-alg the digest length is
subtracted first, so a reply whose payload is smaller than the digest
underflows data_size. With no integrity algorithm (the default) data_size
is assigned from the unsigned h95/h100 wire length and drbdd() never
bounds it for a payload-carrying command, so a length above INT_MAX casts
it negative; this path needs no non-default feature. The bio receive loop
then computes expect = min_t(int, data_size, bv_len), which is negative,
and drbd_recv_all_warn(mapped, expect) receives with a size_t of SIZE_MAX
into the first mapped page.
The sibling receive path read_in_block() is not affected: it uses an
unsigned size and rejects it against DRBD_MAX_BIO_SIZE before receiving.
Reject a data reply whose size is negative after the optional digest
subtraction, covering both triggers.
Impact: a malicious or man-in-the-middle DRBD peer copies attacker-chosen
bytes past a bio page in the receiver, corrupting kernel memory. A node
that reads from its peer (a diskless node, or read-balancing to the peer)
is exposed in the default configuration; data-integrity-alg is not
required.
📍 영향받는 시스템
DRBD(Distributed Replicated Block Device)를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
악의적인 DRBD 피어 또는 중간자(MitM) 공격자가 조작된 페이로드 크기를 가진 데이터를 전송
🛡️ 대응 방법
DRBD의 데이터 크기 검증 로직이 포함된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 보안 업데이트 버전인지 확인