🔍 CVE-2021-47541

7.8
CVSS Score
HIGH
2024-05-24
2026-08-04 10:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 mlx4_en 드라이버 내 mlx4_en_try_alloc_resources() 함수에서 Use-After-Free 취약점이 발견되었습니다. mlx4_en_copy_priv() 호출 중 오류가 발생할 경우 tx_cq가 해제되지만, 이후 mlx4_en_alloc_resources()에서 해제된 메모리에 다시 접근하여 문제가 발생합니다.

💡 쉬운 설명

컴퓨터의 네트워크 장치를 관리하는 프로그램이 이미 사용이 끝나서 버려진 메모리 공간을 다시 사용하려고 시도하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 공격에 악용될 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net/mlx4_en: Fix an use-after-free bug in mlx4_en_try_alloc_resources() In mlx4_en_try_alloc_resources(), mlx4_en_copy_priv() is called and tmp->tx_cq will be freed on the error path of mlx4_en_copy_priv(). After that mlx4_en_alloc_resources() is called and there is a dereference of &tmp->tx_cq[t][i] in mlx4_en_alloc_resources(), which could lead to a use after free problem on failure of mlx4_en_copy_priv(). Fix this bug by adding a check of mlx4_en_copy_priv() This bug was found by a static analyzer. The analysis employs differential checking to identify inconsistent security operations (e.g., checks or kfrees) between two code paths and confirms that the inconsistent operations are not recovered in the current function or the callers, so they constitute bugs. Note that, as a bug found by static analysis, it can be a false positive or hard to trigger. Multiple researchers have cross-reviewed the bug. Builds with CONFIG_MLX4_EN=m show no new warnings, and our static analyzer no longer warns about this code.

📍 영향받는 시스템

mlx4_en 드라이버를 사용하는 Linux 커널 시스템

⚔️ 공격 벡터

특정 네트워크 리소스 할당 과정에서 오류를 유도하여 메모리 참조 오류를 일으킴

🛡️ 대응 방법

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:H/A:H

💻 영향받는 소프트웨어

Linux Kernel