🔍 CVE-2025-40268

0.0
CVSS Score
UNKNOWN
2025-12-06
2026-10-30 13:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 CIFS 클라이언트 모듈 내 smb3_fs_context_parse_param 함수에서 메모리 누수 취약점이 발견되었습니다. 사용자가 fsconfig를 두 번 호출할 경우, 첫 번째 호출 시 할당된 소스 메모리가 적절히 해제되지 않아 시스템 자원이 낭비될 수 있습니다.

💡 쉬운 설명

컴퓨터가 작업을 수행하기 위해 메모리를 빌려 썼는데, 작업이 끝난 후 이를 제대로 돌려주지 않아 메모리가 계속 쌓이는 문제입니다. 이 현상이 반복되면 시스템의 메모리가 부족해져 성능이 떨어지거나 멈출 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: cifs: client: fix memory leak in smb3_fs_context_parse_param The user calls fsconfig twice, but when the program exits, free() only frees ctx->source for the second fsconfig, not the first. Regarding fc->source, there is no code in the fs context related to its memory reclamation. To fix this memory leak, release the source memory corresponding to ctx or fc before each parsing. syzbot reported: BUG: memory leak unreferenced object 0xffff888128afa360 (size 96): backtrace (crc 79c9c7ba): kstrdup+0x3c/0x80 mm/util.c:84 smb3_fs_context_parse_param+0x229b/0x36c0 fs/smb/client/fs_context.c:1444 BUG: memory leak unreferenced object 0xffff888112c7d900 (size 96): backtrace (crc 79c9c7ba): smb3_fs_context_fullpath+0x70/0x1b0 fs/smb/client/fs_context.c:629 smb3_fs_context_parse_param+0x2266/0x36c0 fs/smb/client/fs_context.c:1438

📍 영향받는 시스템

Linux Kernel (CIFS client module)

⚔️ 공격 벡터

로컬 사용자가 특수하게 구성된 fsconfig 시스템 호출을 반복적으로 수행하여 메모리 자원을 고갈시킴

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 smb3_fs_context_parse_param의 메모리 해제 로직을 수정해야 함

🔧 검증 코드

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

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel