🔍 CVE-2023-54238

7.8
CVSS Score
HIGH
2025-12-30
2026-10-15 22:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 mlx5 드라이버에서 PTP resync 작업 중 SKB(Socket Buffer)가 적절히 해제되지 않아 발생하는 메모리 누수 취약점입니다. 또한, 카운터 비교 과정에서 데이터 타입 변환 오류로 인해 FIFO 버퍼 공간 확인 로직에 결함이 발생할 수 있습니다.

💡 쉬운 설명

네트워크 장치를 관리하는 소프트웨어에서 사용한 메모리를 제대로 돌려주지 않아 시스템 자원이 계속 낭비되는 문제입니다. 이 문제가 지속되면 시스템 성능이 떨어지거나 메모리 부족으로 인해 시스템이 불안정해질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: mlx5: fix skb leak while fifo resync and push During ptp resync operation SKBs were poped from the fifo but were never freed neither by napi_consume nor by dev_kfree_skb_any. Add call to napi_consume_skb to properly free SKBs. Another leak was happening because mlx5e_skb_fifo_has_room() had an error in the check. Comparing free running counters works well unless C promotes the types to something wider than the counter. In this case counters are u16 but the result of the substraction is promouted to int and it causes wrong result (negative value) of the check when producer have already overlapped but consumer haven't yet. Explicit cast to u16 fixes the issue.

📍 영향받는 시스템

mlx5 드라이버를 사용하는 Linux 커널 버전

⚔️ 공격 벡터

직접적인 외부 공격보다는 시스템 운영 중 지속적인 메모리 누수를 유발하여 서비스 거부(DoS) 상태를 유도할 수 있음

🛡️ 대응 방법

mlx5 드라이버의 패치가 적용된 최신 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