🔍 CVE-2026-99183

0.0
CVSS Score
UNKNOWN
2026-10-28
2026-10-28 11:17
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 Rocket NPU 드라이버(accel/rocket)에서 sched_to_core() 함수가 rdev->cores[] 배열을 num_cores까지만 검색하여, 코어 제거 후 뒤쪽에 위치한 여전히 바인딩된 코어를 찾지 못하고 NULL을 반환하는 문제입니다. 호출자들이 반환값을 검사하지 않아 NULL 포인터 역참조가 발생합니다.

💡 쉬운 설명

여러 NPU 코어 중 하나를 제거하면, 남은 일부 코어를 드라이버가 찾지 못해 커널이 잘못된 메모리 접근으로 충돌할 수 있습니다. 이 취약점은 시스템 불안정이나 서비스 중단을 일으킬 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: accel/rocket: search every core slot when looking up a scheduler sched_to_core() walks rdev->cores[] up to rdev->num_cores, and rocket_remove() decrements num_cores for every core it removes. Unbind a core that is not the last one and the cores behind it fall outside the search, so sched_to_core() returns NULL for a core that is still bound and still running jobs. Neither caller checks the result: rocket_job_run(): rocket_fence_create(core), core->dev rocket_job_timedout(): dev_err(core->dev, "NPU job timed out") Unbinding the middle core of the three on an RK3588 while three clients are submitting to all of them faults twice, once from the surviving core's job queue and once from its reset work: KASAN: null-ptr-deref in range [0x0000000000000220-0x0000000000000227] Workqueue: fdad0000.npu drm_sched_run_job_work [gpu_sched] pc : rocket_job_run+0x234/0x838 [rocket] Call trace: rocket_job_run+0x234/0x838 [rocket] drm_sched_run_job_work+0x2cc/0xad8 [gpu_sched] process_one_work+0x640/0x14f0 KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Workqueue: rocket-reset-2 drm_sched_job_timedout [gpu_sched] pc : rocket_job_timedout+0xf0/0x1e0 [rocket] Call trace: rocket_job_timedout+0xf0/0x1e0 [rocket] drm_sched_job_timedout+0x188/0x6a0 [gpu_sched] Both are the third core: the workqueue names are its device and its core->index, and it was left at slot 2 while num_cores had dropped to 2. Search all the slots that were allocated, the way find_core_for_dev() now does. A core that is still bound is then found, and the two callers get the pointer they already assume they have. This does not make unbinding one core out of several safe. An open client keeps an entity pointing at the scheduler of the core that went away: drm_sched reports it as not ready for every job that lands on it, and the client waits in dma_fence_default_wait for a fence that will never signal. Stopping the NULL dereference is what belongs in a fix; the rest wants more thought.

📍 영향받는 시스템

Linux 커널의 accel/rocket 드라이버를 사용하는 다중 코어 Rocket NPU 시스템 (예: RK3588 기반 장치, 수정 전 커널 버전)

⚔️ 공격 벡터

로컬 권한을 가진 사용자 또는 관리자가 여러 NPU 코어 중 중간 코어를 언바인드하면서 동시에 작업을 제출할 때 커널 NULL 포인터 역참조가 발생합니다.

🛡️ 대응 방법

커널을 해당 패치(sched_to_core가 할당된 모든 슬롯을 검색하도록 수정)가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전을 배포판의 보안 공지 또는 해당 수정 커밋이 포함된 버전과 비교하여, 패치가 적용된 커널인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel