Vulnerability · Published Jun 18, 2025 · Assigned by Linux
CVE-2025-38031padata: do not leak refcount in reorder_work
Medium 5.5
In plain English
A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: padata: do not leak refcount in reorder_work A recent patch that addressed a UAF introduced a reference count leak: the parallel_data refcount is incremented unconditionally, regardless of the return value of queue_work(). If the work item is already queued, the incremented refcount is never decremented. Fix this by checking the return value of queue_work() and decrementing the refcount when necessary. Resolves: Unreferenced object 0xffff9d9f421e3d80 (size 192): comm "cryptomgr_probe", pid 157, jiffies 4294694003 hex dump (first 32 bytes): 80 8b cf 41 9f 9d ff ff b8 97 e0 89 ff ff ff ff ...A............ d0 97 e0 89 ff ff ff ff 19 00 00 00 1f 88 23 00 ..............#. backtrace (crc 838fb36): __kmalloc_cache_noprof+0x284/0x320 padata_alloc_pd+0x20/0x1e0 padata_alloc_shell+0x3b/0xa0 0xffffffffc040a54d cryptomgr_probe+0x43/0xc0 kthread+0xf6/0x1f0 ret_from_fork+0x2f/0x50 ret_from_fork_asm+0x1a/0x30
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.147-1 | DSA-5973-1 |
| Debian:12 | linux | 6.1.147-1 | DEBIAN-CVE-2025-38031 |
| Debian:13 | linux | 6.12.32-1 | DEBIAN-CVE-2025-38031 |
| Debian:14 | linux | 6.12.32-1 | DEBIAN-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux | 5.15.0-152.162 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux | 5.15.0-152.162 | USN-7704-1 |
| Ubuntu:24.04:LTS | linux | 6.8.0-100.100 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1090.97 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1090.97 | USN-7704-1 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1046.49 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | 6.14.0-1013.13~24.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | 6.14.0-1013.13~24.04.1 | USN-7769-3 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1046.49~22.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1094.103 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1046.52 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1051.57~22.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1094.103.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-azure-fde | 6.8.0-1046.53 | UBUNTU-CVE-2025-38031 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.8 | 6.8.0-1046.53~22.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-azure-nvidia-6.14 | 6.14.0-1007.7 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1090.99 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1090.99 | USN-7704-1 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1047.50 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | 6.14.0-1016.17~24.04.1 | USN-7769-1 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | 6.14.0-1016.17~24.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1047.50~22.04.2 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1087.93 | USN-7704-5 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1087.93 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1043.48 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1073.81 | USN-7704-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1073.81 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1030.33 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-hwe-6.14 | 6.14.0-32.32~24.04.1 | USN-7769-3 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-100.100~22.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1084.87 | USN-7704-3 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1084.87 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1044.44 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1044.44~22.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1085.91 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1085.91 | USN-7704-3 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1086.91 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1086.91 | USN-7704-5 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-152.162 | USN-7704-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-152.162 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-100.100.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-100.100.1~22.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1085.86 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1085.86 | USN-7704-4 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1046.49 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1046.49~22.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1046.49.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1043.43 | USN-7704-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1043.43 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1020.20 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1032.32 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1032.32 | USN-7704-1 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | 6.14.0-1012.12 | USN-7771-1 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | 6.14.0-1012.12 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1088.94 | USN-7704-3 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1088.94 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1043.44 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | 6.14.0-1013.13~24.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | 6.14.0-1013.13~24.04.1 | USN-7789-1 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1043.44~22.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1084.87 | USN-7704-3 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1084.87 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1047.51 | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-riscv-6.14 | 6.14.0-32.32.1~24.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-100.100~22.04.1 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2025-38031 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1023.24 | UBUNTU-CVE-2025-38031 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1054.58 | USN-7704-1 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1054.58 | UBUNTU-CVE-2025-38031 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f4f1b1169fc3694f9bc3e28c6c68dbbf4cc744c0 – before b9ad8e50e8589607e68e6c4cefa7f72bf35a2cb14c6209efea2208597dbd3e52dc87a0d1a8f2dbe1 – before 1a426abdf1c86882c9203dd8182f3b8274b899387000507bb0d2ceb545c0a690e0c707c897d102c2 – before cceb15864e1612ebfbc10ec4e4dcd19a10c0056c6f45ef616775b0ce7889b0f6077fc8d681ab30bc – before 584a729615fa92f4de45480efb7e569d14be15168ca38d0ca8c3d30dd18d311f1a7ec5cb56972cac – before 5300e487487d7a2e3e1e6e9d8f03ed9452e4019edd7d37ccf6b11f3d95e797ebe4e9e886d0332600 – before 1c65ae4988714716101555fe2b9830e33136d6fbdd7d37ccf6b11f3d95e797ebe4e9e886d0332600 – before d6ebcde6d4ecf34f8495fb30516645db3aea8993a54091c24220a4cd847d5b4f36d678edacddbaf0 |
| Linux | Linux | 6.14 |
References
- https://git.kernel.org/stable/c/b9ad8e50e8589607e68e6c4cefa7f72bf35a2cb1
- https://git.kernel.org/stable/c/1a426abdf1c86882c9203dd8182f3b8274b89938
- https://git.kernel.org/stable/c/cceb15864e1612ebfbc10ec4e4dcd19a10c0056c
- https://git.kernel.org/stable/c/584a729615fa92f4de45480efb7e569d14be1516
- https://git.kernel.org/stable/c/5300e487487d7a2e3e1e6e9d8f03ed9452e4019e
- https://git.kernel.org/stable/c/1c65ae4988714716101555fe2b9830e33136d6fb
- https://git.kernel.org/stable/c/d6ebcde6d4ecf34f8495fb30516645db3aea8993
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html