🇰🇷 한글 설명
Linux 커널의 auxdisplay: charlcd 드라이버에서 등록 실패 시 백라이트 관련 지연된 작업(delayed work)을 취소하지 않아 발생하는 취약점입니다. 등록 실패 시 객체가 해제되더라도 지연된 작업이 해당 메모리 주소를 참조하여 Use-After-Free 문제가 발생할 수 있습니다.
💡 쉬운 설명
장치를 켜는 과정에서 오류가 발생했을 때, 이미 삭제된 메모리 주소를 다시 사용하려고 시도하여 시스템이 충돌하거나 보안 문제가 생길 수 있는 결함입니다. 이를 해결하기 위해 장치 등록이 실패하면 진행 중이던 작업을 즉시 중단하도록 수정되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
auxdisplay: charlcd: cancel backlight work on registration failure
With CONFIG_CHARLCD_BL_FLASH, charlcd_init() schedules bl_work before
charlcd_register() calls misc_register(). If registration fails, the
caller frees the charlcd object while delayed work still contains its
address.
Add charlcd_deinit() to cancel the delayed work and turn the backlight
off. Use it for both registration rollback and normal unregistration.
📍 영향받는 시스템
CONFIG_CHARLCD_BL_FLASH 옵션이 활성화된 Linux 커널
⚔️ 공격 벡터
로컬 공격자가 장치 등록 실패를 유도하여 메모리 손상 및 권한 상승 시도 가능
🛡️ 대응 방법
해당 취약점이 패치된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인