🔍 CVE-2025-38100

5.5
CVSS Score
MEDIUM
2025-07-03
2026-11-05 21:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 x86/iopl 영역에서 IO 비트맵 관리 플래그(TIF_IO_BITMAP)와 실제 비트맵 상태의 불일치로 인한 NULL 포인터 역참조 취약점입니다. fork() 실패 후 정리 작업 중이거나 커널 스레드 생성 시 이러한 불일치가 발생하여 시스템 충돌을 야기할 수 있습니다.

💡 쉬운 설명

리눅스 시스템이 프로세스를 만들거나 종료할 때, 내부 상태 표시와 실제 상태가 맞지 않아 존재하지 않는 메모리에 접근하려 하는 버그입니다. 이로 인해 시스템이 갑자기 멈추거나 충돌할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: x86/iopl: Cure TIF_IO_BITMAP inconsistencies io_bitmap_exit() is invoked from exit_thread() when a task exists or when a fork fails. In the latter case the exit_thread() cleans up resources which were allocated during fork(). io_bitmap_exit() invokes task_update_io_bitmap(), which in turn ends up in tss_update_io_bitmap(). tss_update_io_bitmap() operates on the current task. If current has TIF_IO_BITMAP set, but no bitmap installed, tss_update_io_bitmap() crashes with a NULL pointer dereference. There are two issues, which lead to that problem: 1) io_bitmap_exit() should not invoke task_update_io_bitmap() when the task, which is cleaned up, is not the current task. That's a clear indicator for a cleanup after a failed fork(). 2) A task should not have TIF_IO_BITMAP set and neither a bitmap installed nor IOPL emulation level 3 activated. This happens when a kernel thread is created in the context of a user space thread, which has TIF_IO_BITMAP set as the thread flags are copied and the IO bitmap pointer is cleared. Other than in the failed fork() case this has no impact because kernel threads including IO workers never return to user space and therefore never invoke tss_update_io_bitmap(). Cure this by adding the missing cleanups and checks: 1) Prevent io_bitmap_exit() to invoke task_update_io_bitmap() if the to be cleaned up task is not the current task. 2) Clear TIF_IO_BITMAP in copy_thread() unconditionally. For user space forks it is set later, when the IO bitmap is inherited in io_bitmap_share(). For paranoia sake, add a warning into tss_update_io_bitmap() to catch the case, when that code is invoked with inconsistent state.

📍 영향받는 시스템

x86 아키텍처의 Linux 커널 (CVE-2025-38100 패치 이전 버전)

⚔️ 공격 벡터

로컬(Local) - fork/exec 또는 kernel thread 생성을 통한 트리거 필요

🛡️ 대응 방법

Linux 커널을 6.13 이상의 패치된 버전으로 업그레이드

🔧 검증 코드

현재 커널 버전을 확인하여 패치 버전(6.13 이상 추정)으로 업그레이드되었는지 확인합니다.

Shell / Script
uname -r && dpkg -l | grep linux-image | head -1

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel