🇰🇷 한글 설명
Linux 커널의 uleds 드라이버에서 사용자 공간이 제공한 이름 문자열이 널 종료(null-terminated)되지 않아 발생할 수 있는 버퍼 오버리드 취약점입니다. strchr() 함수 대신 strnchr()를 사용하고 문자열의 적절한 종료 여부를 명시적으로 확인하도록 수정되었습니다.
💡 쉬운 설명
사용자가 입력한 이름 데이터가 끝을 알리는 표시가 없을 때, 시스템이 데이터의 끝을 찾지 못하고 메모리를 과도하게 읽어버리는 문제입니다. 이로 인해 시스템 정보가 유출되거나 프로그램이 예기치 않게 종료될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
leds: uleds: Fix potential buffer overread
The name string supplied by userspace is not guaranteed to be
null-terminated, so using strchr() on it might result in a buffer
overread. The same thing will happen when said string is used by
the LED class device.
Fix this by using strnchr() instead and explicitly check that
the name string is properly null-terminated.
📍 영향받는 시스템
Linux kernel (uleds driver component)
⚔️ 공격 벡터
사용자 공간(userspace)에서 조작된 널 종료되지 않은 문자열을 uleds 드라이버로 전달
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이상인지 확인