Junglewise Threat Intelligence

CVE-2025-38100: Linux Kernel NULL pointer dereference in x86 iopl

CVE-2025-38100 · Severity: medium · CVSS 5.5 · Published 2025-07-03

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's x86 architecture handling could allow a local user to crash the system. The issue occurs during specific process management operations (like failing to start a new process), where the system incorrectly handles memory pointers related to input/output permissions. This results in a 'kernel panic' or system crash, leading to a denial of service for all users and applications on the affected machine.

Technical details

A NULL pointer dereference vulnerability exists in the Linux kernel's x86 I/O port legacy (IOPL) emulation. The root cause is an inconsistency in the TIF_IO_BITMAP thread flag. Specifically, io_bitmap_exit() can invoke tss_update_io_bitmap() during a failed fork() cleanup for a task that is not the 'current' task. If the TIF_IO_BITMAP flag is set but no bitmap is actually installed (which can happen when kernel threads are created in the context of a user thread), the kernel attempts to dereference a NULL pointer. An attacker with local access can trigger this condition to cause a kernel oops/panic. Patches have been released across multiple stable kernel branches to ensure the flag is cleared during thread copying and to prevent TSS updates on non-current tasks.

Affected products

  • Linux Linux Kernel 5.5 to 5.10.239, 5.11 to 5.15.186, 5.16 to 6.1.142, 6.2 to 6.6.94, 6.7 to 6.12.34, 6.13 to 6.15.3

Timeline

  • 2025-02-26: patched: Initial fix authored by Thomas Gleixner
  • 2025-07-03: disclosed: CVE published

References

Related threats