CVE-2025-38100 x86/iopl: Cure TIF_IO_BITMAP inconsistencies
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
Description
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:
-
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(). -
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:
-
Prevent io_bitmap_exit() to invoke task_update_io_bitmap() if
the to be cleaned up task is not the current task. -
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.
Upgrade path
14 packages: 10 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed | No fix yet |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.5 | No fix listed | No fix yet |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed | No fix yet |
| azure linux kernel(Azure Linux 3.0) | < 6.6.96.1-1 | 6.6.96.1-1 | Fixed |
| debian/linux(Debian 12) | < 6.1.147-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +38 more | 6.1.147-1 | Fixed |
| debian/linux(Debian 13) | < 6.12.35-1 | 6.12.35-1 | Fixed |
| debian/linux(Debian 14) | < 6.12.35-1 | 6.12.35-1 | Fixed |
| Linux kernel | < 5.10.239; < 5.15.186; < 6.1.142; < 6.6.94 +17 more | 2cfcbe1554c119402e7382de974c26b0549899fe, 2dace5e016c991424a3dc6e83b1ae5dca8992d08, 5.10.239, 5.15.186, 6.1.142, 6.6.94, 6.12.34, 6.15.3, 6.16, 8b68e978718f14fdcb080c2a7791c52a0d09bc6d, 73cfcc8445585b8af7e18be3c9246b851fdf336c, aa5ce1485562f20235b4c759eee5ab0c41d2c220, b3b3b6366dc8eb5b22edba9adc4bff3cdacfd64c, d64b7b05a827f98d068f412969eef65489b0cf03 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-156.166 | 5.15.0-156.166 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-100.100 | 6.8.0-100.100 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1088.93 | 5.15.0-1088.93 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1086.89 | 5.15.0-1086.89 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux kernel(Azure Linux:3.0) | < 6.6.96.1-1 | 6.6.96.1-1 |
| debian/linux(Debian:12) | < 6.1.147-1 | 6.1.147-1 |
| debian/linux(Debian:12) | = 6.1.106-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.106-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.112-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.115-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.119-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.123-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.124-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.128-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.129-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.133-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.135-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.137-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.139-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.140-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
Show 50 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.12.35-1 | 6.12.35-1 |
| debian/linux(Debian:14) | < 6.12.35-1 | 6.12.35-1 |
| Linux kernel | >= ea5f1cd7ab494f65f50f338299eabb40ad6a1767, < d64b7b05a827f98d068f412969eef65489b0cf03 | d64b7b05a827f98d068f412969eef65489b0cf03 |
| Linux kernel | >= ea5f1cd7ab494f65f50f338299eabb40ad6a1767, < 2dace5e016c991424a3dc6e83b1ae5dca8992d08 | 2dace5e016c991424a3dc6e83b1ae5dca8992d08 |
| Linux kernel | >= ea5f1cd7ab494f65f50f338299eabb40ad6a1767, < aa5ce1485562f20235b4c759eee5ab0c41d2c220 | aa5ce1485562f20235b4c759eee5ab0c41d2c220 |
| Linux kernel | >= ea5f1cd7ab494f65f50f338299eabb40ad6a1767, < 2cfcbe1554c119402e7382de974c26b0549899fe | 2cfcbe1554c119402e7382de974c26b0549899fe |
| Linux kernel | >= ea5f1cd7ab494f65f50f338299eabb40ad6a1767, < b3b3b6366dc8eb5b22edba9adc4bff3cdacfd64c | b3b3b6366dc8eb5b22edba9adc4bff3cdacfd64c |
| Linux kernel | >= ea5f1cd7ab494f65f50f338299eabb40ad6a1767, < 73cfcc8445585b8af7e18be3c9246b851fdf336c | 73cfcc8445585b8af7e18be3c9246b851fdf336c |
| Linux kernel | >= ea5f1cd7ab494f65f50f338299eabb40ad6a1767, < 8b68e978718f14fdcb080c2a7791c52a0d09bc6d | 8b68e978718f14fdcb080c2a7791c52a0d09bc6d |
| Linux kernel | = 5.5 | No fix listed |
| Linux kernel | < 5.10.239 | 5.10.239 |
| Linux kernel | < 5.15.186 | 5.15.186 |
| Linux kernel | < 6.1.142 | 6.1.142 |
| Linux kernel | < 6.6.94 | 6.6.94 |
| Linux kernel | < 6.12.34 | 6.12.34 |
| Linux kernel | < 6.15.3 | 6.15.3 |
| Linux kernel | < 6.16 | 6.16 |
| Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | >= V3.1.5 | No fix listed |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-156.166 | 5.15.0-156.166 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1088.93 | 5.15.0-1088.93 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1086.89 | 5.15.0-1086.89 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-100.100 | 6.8.0-100.100 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1047.51 | 6.8.0-1047.51 |
| Linux kernel | >= 5.5, < 5.10.239 | 5.10.239 |
| Linux kernel | >= 5.11, < 5.15.186 | 5.15.186 |
| Linux kernel | >= 5.16, < 6.1.142 | 6.1.142 |
| Linux kernel | >= 6.2, < 6.6.94 | 6.6.94 |
| Linux kernel | >= 6.7, < 6.12.34 | 6.12.34 |
| Linux kernel | >= 6.13, < 6.15.3 | 6.15.3 |
| debian linux | = 11.0 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-38100 vendor-advisory
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org mailing-list third-party-advisory
- lists.debian.org mailing-list third-party-advisory
- cert-portal.siemens.com
- Ubuntu CVE tracker vendor-advisory
- USN-7769-1 vendor-advisory
- USN-7770-1 vendor-advisory
- USN-7771-1 vendor-advisory
- USN-7769-2 vendor-advisory
- USN-7774-1 vendor-advisory
- USN-7774-2 vendor-advisory
- USN-7774-3 vendor-advisory
- USN-7775-1 vendor-advisory
- USN-7776-1 vendor-advisory
- USN-7769-3 vendor-advisory
- USN-7775-2 vendor-advisory
- USN-7775-3 vendor-advisory
- USN-7789-1 vendor-advisory
- USN-7774-4 vendor-advisory
- USN-7774-5 vendor-advisory
- USN-7789-2 vendor-advisory
- USN-8028-1 vendor-advisory
- USN-8028-2 vendor-advisory
- USN-8031-1 vendor-advisory
- USN-8028-3 vendor-advisory
- USN-8028-4 vendor-advisory
- USN-8028-5 vendor-advisory
- USN-8031-2 vendor-advisory
- USN-8028-6 vendor-advisory
- USN-8031-3 vendor-advisory
- USN-8052-1 vendor-advisory
- USN-8028-7 vendor-advisory
- USN-8028-8 vendor-advisory
- USN-8052-2 vendor-advisory
- USN-8074-1 vendor-advisory
- USN-8074-2 vendor-advisory
- USN-8126-1 vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2025-19842 third-party-advisory