🇰🇷 한글 설명
Linux 커널의 NFC LLCP 구성 요소에서 서비스 이름을 로깅할 때 슬랩 영역 경계를 벗어나는 읽기(slab-out-of-bounds read) 취약점이 발견되었습니다. nfc_llcp_wks_sap() 및 nfc_llcp_build_sdreq_tlv() 함수가 널 종료 문자가 없는 문자열을 %s 형식으로 출력하여 메모리 경계를 넘어 읽는 문제가 발생합니다.
💡 쉬운 설명
NFC 통신 기능을 처리하는 과정에서 컴퓨터 메모리의 정해진 범위를 넘어서 데이터를 읽어오는 오류가 있습니다. 이로 인해 시스템 정보가 유출되거나 프로그램이 예기치 않게 종료될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nfc: llcp: fix slab-out-of-bounds reads when logging service names
nfc_llcp_wks_sap() and nfc_llcp_build_sdreq_tlv() pass non-null-
terminated strings to pr_debug() using the %s format specifier.
The buffers are allocated via kmemdup() or come from netlink
attributes and are not guaranteed to be null-terminated, causing
__dynamic_pr_debug() to read beyond the allocated region:
KASAN: slab-out-of-bounds Read in __dynamic_pr_debug
Fix both call sites by using %.*s with the explicit length to limit
the output to the actual length of the string.
📍 영향받는 시스템
NFC LLCP 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 NFC 서비스 이름을 포함한 네트워크 패킷을 전송하여 메모리 경계 외 읽기 유도
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 패치된 최신 보안 업데이트 버전인지 확인