🔍 CVE-2025-39958

7.8
CVSS Score
HIGH
2025-10-09
2026-11-05 22:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 s390 IOMMU에서 PCI 장치가 예기치 않게 제거(surprise hotplug)될 때, 장치를 기본 도메인에 연결하려는 시도가 실패하며 커널 경고(WARN_ON)가 발생하는 취약점입니다. 이 문제는 장치가 이미 하이퍼바이저에 의해 격리되었음에도 불구하고 연결 실패로 인해 오류를 반환하여 시스템 안정성에 영향을 줄 수 있습니다.

💡 쉬운 설명

컴퓨터 부품이 갑자기 뽑혔을 때, 시스템이 이를 처리하는 과정에서 오류를 일으켜 경고 메시지를 띄우는 문제입니다. 장치가 이미 안전하게 분리된 상태이므로, 시스템이 이를 오류로 인식하지 않고 정상적으로 넘어가도록 수정되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: iommu/s390: Make attach succeed when the device was surprise removed When a PCI device is removed with surprise hotplug, there may still be attempts to attach the device to the default domain as part of tear down via (__iommu_release_dma_ownership()), or because the removal happens during probe (__iommu_probe_device()). In both cases zpci_register_ioat() fails with a cc value indicating that the device handle is invalid. This is because the device is no longer part of the instance as far as the hypervisor is concerned. Currently this leads to an error return and s390_iommu_attach_device() fails. This triggers the WARN_ON() in __iommu_group_set_domain_nofail() because attaching to the default domain must never fail. With the device fenced by the hypervisor no DMAs to or from memory are possible and the IOMMU translations have no effect. Proceed as if the registration was successful and let the hotplug event handling clean up the device. This is similar to how devices in the error state are handled since commit 59bbf596791b ("iommu/s390: Make attach succeed even if the device is in error state") except that for removal the domain will not be registered later. This approach was also previously discussed at the link. Handle both cases, error state and removal, in a helper which checks if the error needs to be propagated or ignored. Avoid magic number condition codes by using the pre-existing, but never used, defines for PCI load/store condition codes and rename them to reflect that they apply to all PCI instructions.

📍 영향받는 시스템

Linux kernel (s390 architecture)

⚔️ 공격 벡터

물리적 또는 가상 환경에서의 PCI 장치 갑작스러운 제거 (Surprise Hotplug)

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.

Shell / Script
uname -r

📊 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