🔍 CVE-2025-21788

7.5
CVSS Score
HIGH
2025-02-27
2026-07-30 06:21
✅ 완료

🇰🇷 한글 설명

Linux 커널의 am65-cpsw 이더넷 드라이버에서 특정 XDP 처리 시 메모리 누수가 발생하는 취약점이 해결되었습니다. XDP 프로그램 결과가 XDP_PASS가 아닐 경우 am65_cpsw_build_skb()를 통해 할당된 메모리가 해제되지 않고 남는 문제가 있었습니다.

💡 쉬운 설명

네트워크 데이터를 처리하는 과정에서 불필요하게 메모리를 사용한 뒤 이를 다시 돌려주지 않아 시스템 메모리가 점차 고갈될 수 있는 문제입니다. 패치를 통해 메모리 낭비를 막고 네트워크 처리 성능도 향상되었습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: net: ethernet: ti: am65-cpsw: fix memleak in certain XDP cases If the XDP program doesn't result in XDP_PASS then we leak the memory allocated by am65_cpsw_build_skb(). It is pointless to allocate SKB memory before running the XDP program as we would be wasting CPU cycles for cases other than XDP_PASS. Move the SKB allocation after evaluating the XDP program result. This fixes the memleak. A performance boost is seen for XDP_DROP test. XDP_DROP test: Before: 460256 rx/s 0 err/s After: 784130 rx/s 0 err/s

📍 영향받는 시스템

Linux kernel (am65-cpsw driver 사용 시스템)

⚔️ 공격 벡터

특정 XDP 동작을 유발하는 네트워크 트래픽을 지속적으로 전송하여 메모리 고갈 유도

🛡️ 대응 방법

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

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel