🇰🇷 한글 설명
Linux 커널의 bpf 구성 요소에서 마운트 옵션을 파싱할 때 발생하는 메모리 누수 취약점입니다. bpf_parse_param() 함수가 param->string 값을 보존하지 않아, 할당된 kmalloc 영역이 해제되지 않고 메모리에 남게 됩니다.
💡 쉬운 설명
컴퓨터의 핵심 운영체제인 리눅스에서 특정 작업을 수행할 때 사용한 메모리를 제대로 돌려주지 않는 결함이 발견되었습니다. 이 문제가 반복되면 시스템의 메모리가 점차 부족해져 성능 저하나 시스템 중단이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
bpf: Preserve param->string when parsing mount options
In bpf_parse_param(), keep the value of param->string intact so it can
be freed later. Otherwise, the kmalloc area pointed to by param->string
will be leaked as shown below:
unreferenced object 0xffff888118c46d20 (size 8):
comm "new_name", pid 12109, jiffies 4295580214
hex dump (first 8 bytes):
61 6e 79 00 38 c9 5c 7e any.8.\~
backtrace (crc e1b7f876):
[<00000000c6848ac7>] kmemleak_alloc+0x4b/0x80
[<00000000de9f7d00>] __kmalloc_node_track_caller_noprof+0x36e/0x4a0
[<000000003e29b886>] memdup_user+0x32/0xa0
[<0000000007248326>] strndup_user+0x46/0x60
[<0000000035b3dd29>] __x64_sys_fsconfig+0x368/0x3d0
[<0000000018657927>] x64_sys_call+0xff/0x9f0
[<00000000c0cabc95>] do_syscall_64+0x3b/0xc0
[<000000002f331597>] entry_SYSCALL_64_after_hwframe+0x4b/0x53
📍 영향받는 시스템
Linux Kernel (bpf 관련 모듈을 사용하는 시스템)
⚔️ 공격 벡터
로컬 사용자가 특수하게 조작된 마운트 옵션을 포함한 시스템 호출(fsconfig 등)을 실행하여 메모리 누수를 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인