🔍 CVE-2026-99202

0.0
CVSS Score
UNKNOWN
2026-10-28
2026-10-30 13:21
✅ 완료

🇰🇷 한글 설명

Linux 커널의 libsas 드라이버에서 HA(호스트 어댑터) resume 경로 중 SMP IO 요청이 pm_runtime_get_sync()로 인해 교착 상태에 빠지는 문제가 수정되었습니다. 확장기(expander)에 연결된 SATA 디스크의 하드 리셋 과정에서 발생하며, 참조 카운트 획득 방식을 get_noresume()/put()으로 변경하고 BSG 경로에서만 resume_and_get()을 사용하도록 고쳤습니다.

💡 쉬운 설명

서버의 저장장치 연결 장치가 전원 복구 중일 때 자기 자신을 기다리며 멈추는 버그입니다. 이 문제를 해결하여 시스템이 복구 과정에서 멈추지 않도록 했습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: scsi: libsas: Fix SMP IO deadlock during HA resume smp_execute_task_sg() calls pm_runtime_get_sync() on the host before issuing an SMP command. When that command is itself issued from the HA resume path, the get_sync() deadlocks: it waits for the ongoing resume (the device is RPM_RESUMING), while the resume is blocked in sas_drain_work() waiting for that same SMP IO to complete. The deadlock needs an expander-attached SATA disk. During sas_resume_ha() -> sas_drain_work(), DISCE_RESUME -> sas_resume_sata() -> ata_sas_port_resume() requests ATA_EH_RESET, and the hard reset for such a disk is done via SMP PHY CONTROL (sas_ata_hard_reset() -> sas_phy_reset() -> sas_smp_phy_control() -> smp_execute_task_sg()). Direct-attached SATA resets through lldd_control_phy() and SSP devices use TMFs, so neither hits this. Replace the get_sync()/put_sync() pair with pm_runtime_get_noresume()/pm_runtime_put(). smp_execute_task_sg() only needs to hold off autosuspend while the SMP is in flight, and it must not try to resume the host: a sync resume issued from the HA resume path itself is what deadlocks, and by the time sas_resume_ha() runs, hw_init has already reinitialized the hardware, so the device is accessible without one. The usage reference is still required. Discovery work normally runs inside an event worker's PM reference, taken at sas_notify_port_event() notify time and held until the handler has flushed the disco queue. sas_rediscover_ex_phy() however requeues DISCE_REVALIDATE_DOMAIN from within the revalidation worker itself, and flush_workqueue() does not wait for work items queued during execution, so that chained revalidation runs with no outer PM reference - without the get_noresume(), its SMP could race autosuspend. For the BSG path, sas_smp_handler() is the only caller which may find the host autosuspended: expander SMP requests do not go through any SCSI device request queue, so nothing else in that path holds the host awake. Resume it there with pm_runtime_resume_and_get() and check the result.

📍 영향받는 시스템

패치 이전 Linux 커널의 libsas(SCSI SAS) 드라이버를 사용하는 시스템 (확장기 연결 SATA 디스크 환경)

⚔️ 공격 벡터

공개된 정보상 원격 공격 경로는 확인되지 않으며, 전원 복구 시 발생하는 내부 교착 상태(서비스 거부 성격)로 보임

🛡️ 대응 방법

배포판 제공 최신 Linux 커널 업데이트를 적용하고 재부팅하세요.

🔧 검증 코드

출력된 커널 버전을 배포판의 보안 권고 및 패치된 커널 빌드 번호와 비교하여, 해당 수정이 포함된 버전인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel