🔍 CVE-2025-39873

7.8
CVSS Score
HIGH
2025-09-23
2026-10-19 21:10
✅ 완료

🇰🇷 한글 설명

Linux 커널의 xilinx_can 드라이버에서 전송된 SKB(Socket Buffer)를 사용하는 과정 중 Use-After-Free 취약점이 발견되었습니다. can_put_echo_skb() 함수가 SKB의 소유권을 가져와 메모리를 해제할 수 있음에도 불구하고, xcan_write_frame() 함수가 그 이후에도 해당 메모리에 접근하여 문제가 발생합니다.

💡 쉬운 설명

컴퓨터가 이미 사용이 끝나서 삭제한 메모리 공간을 다시 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 공격에 악용될 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: can: xilinx_can: xcan_write_frame(): fix use-after-free of transmitted SKB can_put_echo_skb() takes ownership of the SKB and it may be freed during or after the call. However, xilinx_can xcan_write_frame() keeps using SKB after the call. Fix that by only calling can_put_echo_skb() after the code is done touching the SKB. The tx_lock is held for the entire xcan_write_frame() execution and also on the can_get_echo_skb() side so the order of operations does not matter. An earlier fix commit 3d3c817c3a40 ("can: xilinx_can: Fix usage of skb memory") did not move the can_put_echo_skb() call far enough. [mkl: add "commit" in front of sha1 in patch description] [mkl: fix indention]

📍 영향받는 시스템

Xilinx CAN 컨트롤러를 사용하는 Linux 커널 시스템

⚔️ 공격 벡터

특정 조건에서 CAN 프레임을 전송하여 메모리 해제 후 접근을 유도하는 방식

🛡️ 대응 방법

해당 취약점이 수정된 최신 버전의 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