🇰🇷 한글 설명
Linux 커널의 SCSI target iSCSI 구성 요소에서 lio_target_nacl_info_show() 함수가 버퍼 길이를 확인하지 않고 sprintf()를 사용하여 버퍼 오버플로우가 발생할 수 있는 취약점입니다. 다수의 iSCSI 연결을 생성할 경우 configfs에서 제공하는 버퍼를 초과하여 메모리를 손상시킬 수 있습니다.
💡 쉬운 설명
컴퓨터가 정보를 기록할 때 준비된 공간보다 더 많은 양의 데이터를 써서 메모리가 망가지는 문제입니다. 많은 수의 연결을 만들어 시스템의 중요한 정보를 덮어쓸 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
scsi: target: iscsi: Fix buffer overflow in lio_target_nacl_info_show()
The function lio_target_nacl_info_show() uses sprintf() in a loop to print
details for every iSCSI connection in a session without checking for the
buffer length. With enough iSCSI connections it's possible to overflow the
buffer provided by configfs and corrupt the memory.
This patch replaces sprintf() with sysfs_emit_at() that checks for buffer
boundries.
📍 영향받는 시스템
Linux kernel (scsi: target: iscsi 관련 모듈 사용 시스템)
⚔️ 공격 벡터
다수의 iSCSI 연결을 생성하여 lio_target_nacl_info_show() 함수 호출 시 버퍼 오버플로우 유도
🛡️ 대응 방법
sprintf()를 sysfs_emit_at()으로 교체한 최신 Linux 커널 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인