🔍 CVE-2026-46151

5.5
CVSS Score
MEDIUM
2026-05-28
2026-11-06 17:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 usblp 드라이버는 IEEE 1284 장치 ID 요청 시 장치로부터 반환된 데이터 길이를 정확히 검증하지 않아 힙 메모리 누수를 유발합니다. 악의적인 프린터가 짧은 응답을 보내면 미초기화 힙 데이터가 sysfs 또는 ioctl을 통해 외부로 노출될 수 있습니다.

💡 쉬운 설명

이 결함은 프린터가 잘못된 정보를 보내면 컴퓨터의 내부 메모리 정보가 새어나갈 수 있게 합니다. 공격자가 이를 악용하여 민감한 데이터를 탈취할 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: usb: usblp: fix heap leak in IEEE 1284 device ID via short response usblp_ctrl_msg() collapses the usb_control_msg() return value to 0/-errno, discarding the actual number of bytes transferred. A broken printer can complete the GET_DEVICE_ID control transfer short and the driver has no way to know. usblp_cache_device_id_string() reads the 2-byte big-endian length prefix from the response and trusts it (clamped only to the buffer bounds). The buffer is kmalloc(1024) at probe time. A device that sends exactly two bytes (e.g. 0x03 0xFF, claiming a 1023-byte ID) leaves device_id_string[2..1022] holding stale kmalloc heap. That stale data is then exposed: - via the ieee1284_id sysfs attribute (sprintf("%s", buf+2), truncated at the first NUL in the stale heap), and - via the IOCNR_GET_DEVICE_ID ioctl, which copy_to_user()s the full claimed length regardless of NULs, up to 1021 bytes of uninitialized heap, with the leak size chosen by the device. Fix this up by just zapping the buffer with zeros before each request sent to the device.

📍 영향받는 시스템

Linux kernel (usblp 모듈)

⚔️ 공격 벡터

악성 USB 프린터 장치를 연결하여 GET_DEVICE_ID 제어 전송 시 짧은 응답을 전송

🛡️ 대응 방법

커널 패치 적용 또는 usblp 모듈에서 요청 전 버퍼를 영구히 초기화하는 코드 업데이트

🔧 검증 코드

출력된 커널 버전이 취약한 버전 범위 내에 있는지 확인하고, 해당 버전이라면 패치된 커널로 업그레이드해야 합니다.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel