🇰🇷 한글 설명
리눅스 커널의 Realtek DSA 드라이버 중 realtek-mdio 모듈에서 경계 외 메모리 접근(Out-of-bounds access) 취약점이 발견되었습니다. 특정 구조체에서 chip_data를 위한 공간을 충분히 할당하지 않아 메모리 오염이 발생할 수 있으며, 이는 KASAN이나 특정 부트로더 환경에서 명확하게 나타납니다.
💡 쉬운 설명
컴퓨터의 핵심 부품인 리눅스 커널에서 데이터를 저장할 공간을 실제 필요한 것보다 작게 만드는 실수가 있었습니다. 이로 인해 정해진 범위를 벗어나 다른 데이터를 건드릴 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: dsa: realtek: fix out-of-bounds access
The probe function sets priv->chip_data to (void *)priv + sizeof(*priv)
with the expectation that priv has enough trailing space.
However, only realtek-smi actually allocated this chip_data space.
Do likewise in realtek-mdio to fix out-of-bounds accesses.
These accesses likely went unnoticed so far, because of an (unused)
buf[4096] member in struct realtek_priv, which caused kmalloc to
round up the allocated buffer to a big enough size, so nothing of
value was overwritten. With a different allocator (like in the barebox
bootloader port of the driver) or with KASAN, the memory corruption
becomes quickly apparent.
📍 영향받는 시스템
Realtek DSA 드라이버를 사용하는 Linux Kernel (realtek-mdio 모듈 포함 버전)
⚔️ 공격 벡터
메모리 오염을 유발할 수 있는 특정 드라이버 초기화 과정 또는 메모리 할당 환경 조작
🛡️ 대응 방법
Realtek-mdio 드라이버의 chip_data 공간 할당 로직이 수정된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인