🔍 CVE-2025-38000

7.8
CVSS Score
HIGH
2025-06-06
2026-10-15 22:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 HFSC 스케줄러에서 패킷을 큐에 넣을 때 qlen 및 backlog 계산이 잘못되는 버그가 발견되었습니다. 패킷을 큐에 추가하기 전에 peek 작업을 수행하면서 큐 상태가 불일치하게 되어, 빈 HFSC 클래스가 활성 목록에 남아 Use-After-Free와 같은 심각한 보안 문제를 일으킬 수 있습니다.

💡 쉬운 설명

네트워크 데이터를 처리하는 순서가 꼬여서 시스템이 데이터가 없는데도 있다고 착각하거나 그 반대의 상황이 발생할 수 있습니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 권한을 탈취할 수 있는 취약점이 존재합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue() When enqueuing the first packet to an HFSC class, hfsc_enqueue() calls the child qdisc's peek() operation before incrementing sch->q.qlen and sch->qstats.backlog. If the child qdisc uses qdisc_peek_dequeued(), this may trigger an immediate dequeue and potential packet drop. In such cases, qdisc_tree_reduce_backlog() is called, but the HFSC qdisc's qlen and backlog have not yet been updated, leading to inconsistent queue accounting. This can leave an empty HFSC class in the active list, causing further consequences like use-after-free. This patch fixes the bug by moving the increment of sch->q.qlen and sch->qstats.backlog before the call to the child qdisc's peek() operation. This ensures that queue length and backlog are always accurate when packet drops or dequeues are triggered during the peek.

📍 영향받는 시스템

Linux kernel (HFSC scheduler module 사용 환경)

⚔️ 공격 벡터

특정 네트워크 트래픽 패턴을 유도하여 커널의 큐 관리 로직을 교란함으로써 메모리 오류 유발

🛡️ 대응 방법

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