🔍 CVE-2025-39841

9.8
CVSS Score
CRITICAL
2025-09-19
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 scsi: lpfc 드라이버 내 지연된 수신 경로(deferred receive path)에서 버퍼 해제 및 초기화 순서 오류로 인해 Use-After-Free(UAF) 취약점이 발생합니다. 버퍼를 먼저 해제한 후 락(lock)을 유지한 채 컨텍스트 포인터를 지우는 잘못된 순서로 인해, 다른 경로에서 동일한 포인터에 접근할 경우 이중 해제나 UAF가 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터 메모리를 정리하는 순서가 잘못되어, 이미 사용이 끝난 메모리 공간을 다른 프로그램이 다시 사용하려고 할 때 충돌이 발생하는 문제입니다. 이로 인해 시스템이 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Fix buffer free/clear order in deferred receive path Fix a use-after-free window by correcting the buffer release sequence in the deferred receive path. The code freed the RQ buffer first and only then cleared the context pointer under the lock. Concurrent paths (e.g., ABTS and the repost path) also inspect and release the same pointer under the lock, so the old order could lead to double-free/UAF. Note that the repost path already uses the correct pattern: detach the pointer under the lock, then free it after dropping the lock. The deferred path should do the same.

📍 영향받는 시스템

Linux Kernel (scsi: lpfc 드라이버를 사용하는 시스템)

⚔️ 공격 벡터

특정 SCSI 명령(ABTS 등)을 유도하여 메모리 해제 순서 오류를 일으키는 로컬 또는 원격 공격

🛡️ 대응 방법

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

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel