🇰🇷 한글 설명
Linux 커널의 nzxt-smart2 hwmon 드라이버에서 DMA 정렬 문제로 인한 메모리 오염 취약점이 발견되었습니다. 비일관성(non-coherent) CPU 아키텍처(ARM, MIPS 등)에서 DMA 매핑 시 인접한 변수를 손상시켜 시스템 불안정성을 초래할 수 있습니다.
💡 쉬운 설명
하드웨어와 메모리가 데이터를 주고받는 과정에서 데이터의 위치가 맞지 않아 주변의 중요한 정보를 덮어쓰는 오류가 발생합니다. 이로 인해 시스템이 갑자기 멈추거나 예상치 못한 동작을 할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (nzxt-smart2) DMA-align output buffer
Sashiko reports:
When send_output_report() calls hid_hw_output_report(), the underlying USB
HID core calls usb_interrupt_msg() which maps this buffer directly for DMA.
When the DMA mapping flushes or invalidates the cacheline, it will corrupt
the adjacent variables (mutex, update_interval) that were modified
concurrently by the CPU. This causes memory corruption due to cacheline
sharing on non-coherent CPU architectures (such as ARM or MIPS). The DMA
API debugging tool (CONFIG_DMA_API_DEBUG) will trigger runtime warnings
for this violation.
Any operation that triggers send_output_report() (like setting a fan speed
or updating the interval) causes the USB DMA mapping. On systems with
non-coherent caches, this structural bug causes immediate and deterministic
memory corruption.
Align the output buffer to ARCH_DMA_MINALIGN to fix the problem.
📍 영향받는 시스템
nzxt-smart2 드라이버를 사용하는 Linux 커널 (특히 ARM 또는 MIPS 아키텍처 기반 시스템)
⚔️ 공격 벡터
팬 속도 조절이나 업데이트 간격 설정 등 send_output_report()를 호출하는 하드웨어 제어 동작을 통해 유도됨
🛡️ 대응 방법
출력 버퍼를 ARCH_DMA_MINALIGN에 맞춰 정렬하도록 커널 패치를 적용해야 함
🔧 검증 코드
커널 버전과 해당 모듈의 존재 여부를 확인하여 패치 적용 여부를 검토함
uname -a && modinfo nzxt_smart2 2>/dev/null
📊 CVSS Vector String
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
💻 영향받는 소프트웨어
NVIDIA Cloud Gaming Guest Driver for Linux