🇰🇷 한글 설명
Linux 커널의 fs/statmount 구성 요소에서 statmount_mnt_idmap 함수가 슬랩(slab) 메모리 경계를 벗어난 쓰기 오류를 발생시킵니다. seq_printf() 호출 시 오버플로가 발생하더라도 수동으로 카운터를 조작하여 오버플로 감지를 방해함으로써, 결과적으로 동적 할당된 버퍼에 1바이트의 NULL 값을 잘못 쓰는 취약점입니다.
💡 쉬운 설명
데이터를 기록하는 과정에서 메모리 공간이 꽉 찼는지 확인하는 절차에 오류가 있어, 허용된 범위를 벗어나 메모리의 다른 부분을 건드릴 수 있는 문제입니다. 이로 인해 시스템의 안정성이 떨어지거나 보안 위협이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
fs/statmount: fix slab out-of-bounds write in statmount_mnt_idmap
statmount_mnt_idmap() writes one mapping with seq_printf() and then
manually advances seq->count to include the NUL separator.
If seq_printf() overflows, seq_set_overflow() sets seq->count to
seq->size. The manual seq->count++ changes this to seq->size + 1.
seq_has_overflowed() then no longer detects the overflow. The corrupted
count returns to statmount_string(), which later executes:
seq->buf[seq->count++] = '\0';
This causes a 1-byte NULL out-of-bounds write on the dynamically
allocated seq buffer.
Fix this by checking for overflow immediately after seq_printf().
📍 영향받는 시스템
Linux Kernel (statmount 관련 기능이 포함된 버전)
⚔️ 공격 벡터
특정 파일 시스템 마운트 관련 시스템 호출을 통해 메모리 오버플로를 유도하여 경계 밖 쓰기 발생
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 seq_printf() 이후 오버플로 체크 로직을 적용해야 합니다.
🔧 검증 코드
출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 보안 공지(CVE-2026-64074)와 대조하여 확인합니다.