🔍 CVE-2025-39674

5.5
CVSS Score
MEDIUM
2025-09-05
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 SCSI UFS 드라이버에서 MSI(Message Signaled Interrupts) 할당 실패 시 발생하는 Null 포인터 역참조 취약점입니다. 특정 커밋 이후 ESI 설정 과정에서 자원 할당에 실패하더라도 자동 정리 매크로가 할당되지 않은 자원을 해제하려 시도하면서 커널 패닉을 유발합니다.

💡 쉬운 설명

컴퓨터의 저장 장치(UFS)를 설정하는 과정에서 오류가 발생했을 때, 시스템이 잘못된 메모리 주소를 참조하여 컴퓨터가 갑자기 멈추거나 꺼질 수 있는 문제입니다. 하드웨어 성능 최적화 기능이 작동하는 과정에서 발생하는 소프트웨어 오류입니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: scsi: ufs: ufs-qcom: Fix ESI null pointer dereference ESI/MSI is a performance optimization feature that provides dedicated interrupts per MCQ hardware queue. This is optional feature and UFS MCQ should work with and without ESI feature. Commit e46a28cea29a ("scsi: ufs: qcom: Remove the MSI descriptor abuse") brings a regression in ESI (Enhanced System Interrupt) configuration that causes a null pointer dereference when Platform MSI allocation fails. The issue occurs in when platform_device_msi_init_and_alloc_irqs() in ufs_qcom_config_esi() fails (returns -EINVAL) but the current code uses __free() macro for automatic cleanup free MSI resources that were never successfully allocated. Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008 Call trace: mutex_lock+0xc/0x54 (P) platform_device_msi_free_irqs_all+0x1c/0x40 ufs_qcom_config_esi+0x1d0/0x220 [ufs_qcom] ufshcd_config_mcq+0x28/0x104 ufshcd_init+0xa3c/0xf40 ufshcd_pltfrm_init+0x504/0x7d4 ufs_qcom_probe+0x20/0x58 [ufs_qcom] Fix by restructuring the ESI configuration to try MSI allocation first, before any other resource allocation and instead use explicit cleanup instead of __free() macro to avoid cleanup of unallocated resources. Tested on SM8750 platform with MCQ enabled, both with and without Platform ESI support.

📍 영향받는 시스템

Linux Kernel (Qualcomm UFS MCQ/ESI 관련 드라이버 포함 버전)

⚔️ 공격 벡터

로컬 공격자가 하드웨어 자원 할당 실패를 유도하여 커널 패닉(DoS)을 일으킬 수 있음

🛡️ 대응 방법

커널 패치를 적용하여 MSI 할당 순서를 조정하고, 자동 정리 매크로 대신 명시적 자원 해제 방식을 사용하도록 업데이트해야 함

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel