🔍 CVE-2026-89902

7.8
CVSS Score
HIGH
2026-09-16
2026-10-19 09:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 LoongArch 아키텍처에서 사용자 공간의 중단점(breakpoint) 명령어가 실행될 때 선점 카운트(preempt count)가 언더플로우되는 취약점입니다. 이로 인해 인터럽트 컨텍스트로 오인되어 소켓 할당 시 cgroup 정책을 우회할 수 있는 보안 결함이 발생합니다.

💡 쉬운 설명

사용자가 특정 명령어를 사용하여 시스템의 계산 규칙을 꼬이게 만들 수 있는 오류입니다. 이를 통해 원래는 차단되어야 할 네트워크 연결을 보안 규칙을 피해 몰래 생성할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: LoongArch: Avoid preempt count underflow without probe LoongArch uses break 11 for the breakpoint placed after an instruction that Kprobes executes out of line. Since userspace can issue the same break instruction, do_bp() can reach kprobe_singlestep_handler() when there is no current probe. The handler actually returns false in this case, but it first calls preempt_enable_no_resched(). The corresponding preempt_disable() is done by kprobe_breakpoint_handler() on a real Kprobe hit, so it has not run here. As a result, an ordinary userspace breakpoint (code 11) underflows the current task's preempt count. This also makes in_interrupt() return true until the task schedules. One visible consequence is the socket cgroup attribution: cgroup_sk_alloc() treats the allocation as interrupt context and assigns the socket to the root cgroup. A socket opened from the SIGTRAP handler can then avoid a BPF_CGROUP_INET_SOCK_CREATE policy attached to the task's own cgroup. Return as soon as kprobe_running() reports no active probe. The same check has appeared in [PATCH v10 2/4] of the original LoongArch Kprobes series, but was dropped before the feature reached mainline.

📍 영향받는 시스템

LoongArch 아키텍처를 사용하는 Linux 커널 버전

⚔️ 공격 벡터

사용자 공간에서 의도적으로 특정 중단점(break 11) 명령어를 실행하여 커널의 선점 카운트를 조작

🛡️ 대응 방법

kprobe_running()을 통해 활성 프로브 여부를 확인하도록 커널을 최신 패치 버전으로 업데이트

🔧 검증 코드

출력 결과에 LoongArch 아키텍처 정보가 포함되어 있는지 확인하여 해당 시스템의 취약 가능성을 판단합니다.

Shell / Script
uname -a && grep -i 'LoongArch' /proc/cpuinfo

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel