🇰🇷 한글 설명
Linux 커널의 sm501fb 프레임 버퍼 드라이버에서 OF 바인딩 코드의 버퍼 오류가 발견되었습니다. 이 취약점은 프로브 함수 실패 시 메모리 누수, CRT와 PANEL 동시 활성화 시 Use-After-Free 및 이중 해제, 그리고 모드 문자열 처리 과정에서의 버퍼 오버런을 유발합니다.
💡 쉬운 설명
리눅스 운영체제의 화면 출력 관련 코드에서 메모리를 잘못 관리하여 시스템이 불안정해지거나 해킹될 수 있는 결함이 발견되었습니다. 잘못된 데이터를 입력하면 컴퓨터의 메모리 영역을 넘어서는 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
fbdev: sm501fb: Fix buffer errors in OF binding code
The code that gets the frame buffer mode from OF has 'use after free',
'buffer overrun' and memory leaks.
info->edid_data isn't free if the probe functions fail or if
pd->def_mode is set.
If both the CRT and PANEL are enabled info->edid_data is used after
being freed and is freed twice.
The string returned by of_get_property(np, "mode", &len) is just
written over either the static "640x480-16@60" or the module parameter
string without any regard for the length (which is most likely longer).
Use kstrump() for the OF mode and free everything before freeing 'info.
📍 영향받는 시스템
Linux kernel (sm501fb driver module)
⚔️ 공격 벡터
장치 트리(Device Tree)의 OF 속성을 조작하여 메모리 오버런 또는 Use-After-Free 유도
🛡️ 대응 방법
sm501fb 드라이버의 메모리 해제 로직 및 kstrump() 사용을 포함한 커널 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 확인하십시오.