🔍 CVE-2021-47102

7.1
CVSS Score
HIGH
2024-03-04
2026-08-04 10:16
✅ 완료

🇰🇷 한글 설명

Linux 커널의 Marvell Prestera 네트워크 드라이버에서 특정 이벤트 발생 시 잘못된 구조체 필드에 접근하여 발생하는 메모리 오류 취약점입니다. 특정 조건이 아닌 이벤트에서도 상위 장치 정보를 참조하려고 시도하여 스택 범위 외 메모리 접근(stack-out-of-bounds)을 유발합니다.

💡 쉬운 설명

네트워크 장치가 작동할 때 프로그램이 잘못된 메모리 주소를 읽으려고 시도하는 오류입니다. 이로 인해 시스템이 불안정해지거나 예기치 않게 종료될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net: marvell: prestera: fix incorrect structure access In line: upper = info->upper_dev; We access upper_dev field, which is related only for particular events (e.g. event == NETDEV_CHANGEUPPER). So, this line cause invalid memory access for another events, when ptr is not netdev_notifier_changeupper_info. The KASAN logs are as follows: [ 30.123165] BUG: KASAN: stack-out-of-bounds in prestera_netdev_port_event.constprop.0+0x68/0x538 [prestera] [ 30.133336] Read of size 8 at addr ffff80000cf772b0 by task udevd/778 [ 30.139866] [ 30.141398] CPU: 0 PID: 778 Comm: udevd Not tainted 5.16.0-rc3 #6 [ 30.147588] Hardware name: DNI AmazonGo1 A7040 board (DT) [ 30.153056] Call trace: [ 30.155547] dump_backtrace+0x0/0x2c0 [ 30.159320] show_stack+0x18/0x30 [ 30.162729] dump_stack_lvl+0x68/0x84 [ 30.166491] print_address_description.constprop.0+0x74/0x2b8 [ 30.172346] kasan_report+0x1e8/0x250 [ 30.176102] __asan_load8+0x98/0xe0 [ 30.179682] prestera_netdev_port_event.constprop.0+0x68/0x538 [prestera] [ 30.186847] prestera_netdev_event_handler+0x1b4/0x1c0 [prestera] [ 30.193313] raw_notifier_call_chain+0x74/0xa0 [ 30.197860] call_netdevice_notifiers_info+0x68/0xc0 [ 30.202924] register_netdevice+0x3cc/0x760 [ 30.207190] register_netdev+0x24/0x50 [ 30.211015] prestera_device_register+0x8a0/0xba0 [prestera]

📍 영향받는 시스템

Linux kernel (Marvell Prestera driver 사용 환경, 5.16.0-rc3 포함 이전 버전)

⚔️ 공격 벡터

네트워크 이벤트 발생을 유도하여 커널의 잘못된 메모리 접근을 트리거하는 방식

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전이 취약점이 수정된 버전(패치 적용 버전)인지 확인하십시오.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel