🇰🇷 한글 설명
Linux 커널의 DAMON sysfs 인터페이스에서 메모리 할당 실패 여부를 확인하지 않아 발생하는 취약점입니다. 할당 실패 시 유효하지 않은 메모리에 접근하거나, 테스트 성공 시 할당된 객체가 해제되지 않고 누수되는 문제가 있습니다.
💡 쉬운 설명
컴퓨터의 메모리를 빌려 쓰는 과정에서 빌리기에 실패했을 때 이를 확인하지 않고 계속 사용하려다 오류가 발생하는 문제입니다. 또한, 사용이 끝난 메모리를 제대로 돌려주지 않아 시스템 자원이 낭비될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mm/damon/sysfs: catch commit test ctx alloc failure
Patch series "mm/damon/sysfs: fix commit test damon_ctx [de]allocation".
DAMON sysfs interface dynamically allocates and uses a damon_ctx object
for testing if given inputs for online DAMON parameters update is valid.
The object is being used without an allocation failure check, and leaked
when the test succeeds. Fix the two bugs.
This patch (of 2):
The damon_ctx for testing online DAMON parameters commit inputs is used
without its allocation failure check. This could result in an invalid
memory access. Fix it by directly returning an error when the allocation
failed.
📍 영향받는 시스템
DAMON(Data Access Monitor) 기능이 포함된 Linux 커널 버전
⚔️ 공격 벡터
메모리 할당 실패를 유도하여 시스템 오류(Null Pointer Dereference)를 일으키거나 자원 고갈을 유도할 수 있음
🛡️ 대응 방법
해당 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인