🇰🇷 한글 설명
Linux 커널의 sunrpc 구성 요소에서 svc_pool_for_cpu() 함수가 스레드가 없는 풀(pool)로 경로를 지정할 수 있는 취약점이 발견되었습니다. 특정 설정에서 서비스 스레드 수가 NUMA 노드 수보다 적을 경우, 일부 풀에 스레드가 할당되지 않아 연결이 무한 대기 상태에 빠질 수 있습니다.
💡 쉬운 설명
컴퓨터의 작업 처리 통로 중 일부에 일꾼(스레드)이 배치되지 않아, 특정 작업이 들어와도 처리되지 못하고 멈춰버리는 문제입니다. 이로 인해 네트워크 연결이 끊기지 않고 계속 대기 상태로 남아 시스템 성능에 영향을 줄 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
sunrpc: route to a populated pool in svc_pool_for_cpu()
svc_set_num_threads() spreads the requested threads evenly across the
service's pools (base = nrservs / sv_nrpools). When a service runs
fewer threads than it has pools -- e.g. an nfsd configured with fewer
threads than the host has NUMA nodes while running in "pernode" or
"percpu" mode -- the trailing pools are left with no threads at all.
svc_xprt_enqueue() selects a pool from the CPU servicing the transport,
queues the transport on that pool's sp_xprts, and only wakes a thread
from the same pool. Each thread services exclusively its own pool, so a
transport that lands on a threadless pool is enqueued on sp_xprts and
never picked up: the connection hangs indefinitely.
Have svc_pool_for_cpu() skip pools that currently have no threads,
falling back to the next populated pool. This trades NUMA locality for
a guarantee that the work is actually serviced. sp_nrthreads is only
updated under the service mutex; the lockless read here is a best-effort
routing hint, so annotate it with data_race().
📍 영향받는 시스템
Linux kernel (sunrpc 구성 요소가 포함된 버전)
⚔️ 공격 벡터
특정 NUMA 노드 설정 및 스레드 수 설정을 가진 환경에서 네트워크 연결을 유도하여 서비스 거부(DoS) 유발
🛡️ 대응 방법
스레드가 없는 풀을 건너뛰고 활성화된 풀로 경로를 지정하도록 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전인지 배포판 보안 공지를 통해 확인하십시오.