🔍 CVE-2021-47383

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

🇰🇷 한글 설명

리눅스 커널의 tty 서브시스템 내 imageblit 함수에서 발생하는 경계 외 vmalloc 접근 취약점입니다. 사용자가 특정 필드만 포함된 fb_var_screeninfo 구조체를 ioctl로 전달할 때, 화면 크기 재설정 로직의 오류로 인해 잘못된 메모리 주소에 접근하게 됩니다.

💡 쉬운 설명

리눅스 운영체제의 화면을 그리는 과정에서 계산 오류가 발생하여, 허용되지 않은 메모리 영역을 건드릴 수 있는 문제입니다. 이를 통해 시스템이 불안정해지거나 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: tty: Fix out-of-bound vmalloc access in imageblit This issue happens when a userspace program does an ioctl FBIOPUT_VSCREENINFO passing the fb_var_screeninfo struct containing only the fields xres, yres, and bits_per_pixel with values. If this struct is the same as the previous ioctl, the vc_resize() detects it and doesn't call the resize_screen(), leaving the fb_var_screeninfo incomplete. And this leads to the updatescrollmode() calculates a wrong value to fbcon_display->vrows, which makes the real_y() return a wrong value of y, and that value, eventually, causes the imageblit to access an out-of-bound address value. To solve this issue I made the resize_screen() be called even if the screen does not need any resizing, so it will "fix and fill" the fb_var_screeninfo independently.

📍 영향받는 시스템

Linux Kernel (tty/imageblit 관련 취약점이 포함된 버전)

⚔️ 공격 벡터

사용자 공간 프로그램이 조작된 fb_var_screeninfo 구조체를 사용하여 FBIOPUT_VSCREENINFO ioctl 호출

🛡️ 대응 방법

리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 resize_screen() 로직 수정 적용

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인

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