🔍 CVE-2026-80795

0.0
CVSS Score
UNKNOWN
2026-09-04
2026-10-19 09:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 NFC NCI 서브시스템에서 nci_target_auto_activated() 함수가 배열의 크기를 확인하지 않고 데이터를 추가하여 발생하는 경계 외 쓰기(Out-of-bounds write) 취약점입니다. 공격자가 반복적인 탐색 과정을 유도하여 n_targets 카운트를 증가시키면, 고정된 크기의 배열 범위를 벗어나 메모리를 덮어쓸 수 있습니다.

💡 쉬운 설명

NFC 장치가 연결될 때 정보를 저장하는 목록의 크기가 꽉 찼는지 확인하지 않아 발생하는 오류입니다. 이로 인해 정해진 공간을 넘어 다른 중요한 메모리 영역을 망가뜨릴 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: nfc: nci: fix out-of-bounds write in nci_target_auto_activated() nci_target_auto_activated() appends a target to the fixed-size array ndev->targets[NCI_MAX_DISCOVERED_TARGETS] and increments ndev->n_targets without first checking the array is full; unlike its sibling nci_add_new_target(), which bails out when n_targets already equals NCI_MAX_DISCOVERED_TARGETS. ndev->n_targets is only cleared by nci_clear_target_list(), so an NFCC that repeatedly re-runs discovery (RF_DISCOVER_RSP, which re-enters NCI_DISCOVERY without clearing the target list) and reports an auto-activated target (RF_INTF_ACTIVATED_NTF) drives n_targets past the limit. The append then writes a struct nfc_target past the end of the array (a slab out-of-bounds write), and nfc_targets_found() goes on to walk the array with the inflated count: BUG: KASAN: slab-out-of-bounds in nci_add_new_protocol+0x94/0x2ac [nci] Write of size 2 at addr ffff0000c7299a18 by task kworker/u8:0/12 Workqueue: nfc0_nci_rx_wq nci_rx_work [nci] Call trace: nci_add_new_protocol+0x94/0x2ac [nci] nci_ntf_packet+0xddc/0x11a0 [nci] nci_rx_work+0x15c/0x1e0 [nci] process_one_work+0x2dc/0x500 worker_thread+0x240/0x460 kthread+0x1c0/0x1d0 ret_from_fork+0x10/0x20 The buggy address belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1024 bytes to the right of allocated 1560-byte region [ffff0000c7299000, ffff0000c7299618) Guard nci_target_auto_activated() with the same check used by nci_add_new_target().

📍 영향받는 시스템

Linux Kernel (NFC NCI subsystem)

⚔️ 공격 벡터

조작된 NFC 신호를 반복적으로 송신하여 커널 메모리 내의 배열 범위를 초과하도록 유도

🛡️ 대응 방법

nci_target_auto_activated() 함수에 nci_add_new_target()과 동일한 배열 크기 검사 로직을 적용하여 커널 업데이트

🔧 검증 코드

현재 실행 중인 커널 버전을 확인하여 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel