🔍 CVE-2024-53126

7.1
CVSS Score
HIGH
2024-12-04
2026-08-04 11:21
✅ 완료

🇰🇷 한글 설명

Linux 커널의 vdpa solidrun 드라이버에서 발생한 취약점으로, psnet_open_pf_bar() 및 snet_open_vf_bar() 함수 내에서 문자열을 스택에 할당하여 발생합니다. 이 문자열이 나중에 사용될 경우 스택 프레임이 사라져 정의되지 않은 동작(Undefined Behavior)을 유발할 수 있습니다.

💡 쉬운 설명

프로그램이 임시로 사용하는 메모리 공간(스택)에 중요한 정보를 저장했다가, 그 공간이 사라진 뒤에 정보를 다시 쓰려고 시도하면서 발생하는 오류입니다. 이로 인해 시스템이 예상치 못하게 작동하거나 불안정해질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: vdpa: solidrun: Fix UB bug with devres In psnet_open_pf_bar() and snet_open_vf_bar() a string later passed to pcim_iomap_regions() is placed on the stack. Neither pcim_iomap_regions() nor the functions it calls copy that string. Should the string later ever be used, this, consequently, causes undefined behavior since the stack frame will by then have disappeared. Fix the bug by allocating the strings on the heap through devm_kasprintf().

📍 영향받는 시스템

Linux kernel (vdpa: solidrun 드라이버 포함 버전)

⚔️ 공격 벡터

로컬 공격자가 특정 드라이버 동작을 유도하여 메모리 오염 및 정의되지 않은 동작을 유발

🛡️ 대응 방법

문자열을 스택이 아닌 힙 메모리에 할당하도록 수정된 최신 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