🔍 CVE-2025-38190

5.5
CVSS Score
MEDIUM
2025-07-04
2026-11-05 21:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ATM 서브시스템에서 vcc_sendmsg() 함수가 copy_from_iter_full() 실패 시 atm_account_tx()로 증가시킨 sk_wmem_alloc 값을 되돌리지 않아 소켓이 누수되는 문제입니다. 이를 해결하기 위해 되돌리기 로직을 atm_return_tx()로 분리하여 실패 경로에서 호출하도록 수정되었습니다.

💡 쉬운 설명

ATM 네트워크 통신 중 데이터 복사가 실패하면 커널이 사용 중인 메모리 기록을 정리하지 못합니다. 이로 인해 소켓 자원이 조금씩 새어 나가 시스템 자원이 고갈될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: atm: Revert atm_account_tx() if copy_from_iter_full() fails. In vcc_sendmsg(), we account skb->truesize to sk->sk_wmem_alloc by atm_account_tx(). It is expected to be reverted by atm_pop_raw() later called by vcc->dev->ops->send(vcc, skb). However, vcc_sendmsg() misses the same revert when copy_from_iter_full() fails, and then we will leak a socket. Let's factorise the revert part as atm_return_tx() and call it in the failure path. Note that the corresponding sk_wmem_alloc operation can be found in alloc_tx() as of the blamed commit. $ git blame -L:alloc_tx net/atm/common.c c55fa3cccbc2c~

📍 영향받는 시스템

ATM 프로토콜 기능이 포함된 Linux 커널 (수정 커밋 이전 버전)

⚔️ 공격 벡터

로컬 사용자가 ATM 소켓으로 잘못된 데이터 전송을 반복 유도하여 소켓 자원을 누수시키고 서비스 거부 상태를 만들 수 있음

🛡️ 대응 방법

배포판에서 제공하는 최신 Linux 커널 보안 업데이트를 적용하고 재부팅합니다.

🔧 검증 코드

커널 버전이 패치된 배포판 업데이트 버전인지 확인하고, atm 모듈이 로드되지 않았다면 이 취약점의 영향을 받지 않습니다.

Shell / Script
uname -r && (lsmod | grep -i atm || echo 'atm module not loaded')

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Git Linux Kernel