🇰🇷 한글 설명
Linux 커널의 dm-verity 구성 요소에서 FEC(Forward Error Correction) 계산 중 버퍼 오버플로우 취약점이 발견되었습니다. 잘못된 인덱스 계산으로 인해 erasure locator polynomial 루프가 할당된 범위를 벗어나 메모리에 쓰기를 수행하며, 이로 인해 신드롬 버퍼(syndrome buffer)가 손상될 수 있습니다.
💡 쉬운 설명
데이터 오류를 수정하는 과정에서 컴퓨터 메모리의 정해진 공간보다 더 많은 데이터를 쓰려고 시도하는 오류입니다. 이로 인해 시스템의 중요한 데이터가 망가져 보안 문제가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dm-verity: fix buffer overflow in FEC calculation
There's a buffer overflow in dm-verity-fec:
if (neras && *neras <= v->fec->roots)
fio->erasures[(*neras)++] = i;
This allows *neras to reach roots + 1 (the post-increment pushes it past
roots). This value is then passed as no_eras to decode_rs8(). Inside the
RS decoder (lib/reed_solomon/decode_rs.c:113-121), the erasure locator
polynomial loop writes lambda[j] where j can reach nroots + 1 — one
element past the end of lambda[] (which is sized nroots + 1, valid
indices 0..nroots). The out-of-bounds write lands on syn[0], corrupting
the syndrome buffer.
📍 영향받는 시스템
Linux kernel (dm-verity 모듈 사용 시스템)
⚔️ 공격 벡터
조작된 FEC 데이터를 dm-verity를 통해 처리하도록 유도하여 메모리 오염 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인