🔍 CVE-2025-21647

7.3
CVSS Score
HIGH
2025-01-19
2026-07-30 06:17
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 sch_cake 스케줄러에서 호스트 벌크 플로우 카운터에 대한 경계 검사가 누락되어 언더플로우가 발생할 수 있는 취약점입니다. 이로 인해 메모리 경계를 벗어난 접근(Out-of-bounds access)이 발생할 수 있으며, 이를 방지하기 위해 카운터 접근 시 경계 검사를 수행하는 헬퍼 함수가 도입되었습니다.

💡 쉬운 설명

네트워크 데이터를 처리하는 리눅스 시스템의 특정 기능에서 숫자가 너무 작아져 오류가 발생하는 문제가 발견되었습니다. 이 오류를 이용하면 시스템의 메모리 영역을 잘못 건드려 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: sched: sch_cake: add bounds checks to host bulk flow fairness counts Even though we fixed a logic error in the commit cited below, syzbot still managed to trigger an underflow of the per-host bulk flow counters, leading to an out of bounds memory access. To avoid any such logic errors causing out of bounds memory accesses, this commit factors out all accesses to the per-host bulk flow counters to a series of helpers that perform bounds-checking before any increments and decrements. This also has the benefit of improving readability by moving the conditional checks for the flow mode into these helpers, instead of having them spread out throughout the code (which was the cause of the original logic error). As part of this change, the flow quantum calculation is consolidated into a helper function, which means that the dithering applied to the ost load scaling is now applied both in the DRR rotation and when a sparse flow's quantum is first initiated. The only user-visible effect of this is that the maximum packet size that can be sent while a flow stays sparse will now vary with +/- one byte in some cases. This should not make a noticeable difference in practice, and thus it's not worth complicating the code to preserve the old behaviour.

📍 영향받는 시스템

Linux Kernel (sch_cake 스케줄러를 사용하는 버전)

⚔️ 공격 벡터

특수하게 조작된 네트워크 트래픽을 통해 sch_cake 스케줄러의 카운터 언더플로우 유도

🛡️ 대응 방법

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

🔧 검증 코드

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

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:L/A:H

💻 영향받는 소프트웨어

Linux Kernel