Vulnerability · Published Apr 23, 2026 · Assigned by Linux
CVE-2026-31533net/tls: fix use-after-free in -EBUSY error path of tls_do_encryption
Critical 9.8
In plain English
A critical-severity use-after-free 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.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: net/tls: fix use-after-free in -EBUSY error path of tls_do_encryption The -EBUSY handling in tls_do_encryption(), introduced by commit 859054147318 ("net: tls: handle backlogging of crypto requests"), has a use-after-free due to double cleanup of encrypt_pending and the scatterlist entry. When crypto_aead_encrypt() returns -EBUSY, the request is enqueued to the cryptd backlog and the async callback tls_encrypt_done() will be invoked upon completion. That callback unconditionally restores the scatterlist entry (sge->offset, sge->length) and decrements ctx->encrypt_pending. However, if tls_encrypt_async_wait() returns an error, the synchronous error path in tls_do_encryption() performs the same cleanup again, double-decrementing encrypt_pending and double-restoring the scatterlist. The double-decrement corrupts the encrypt_pending sentinel (initialized to 1), making tls_encrypt_async_wait() permanently skip the wait for pending async callbacks. A subsequent sendmsg can then free the tls_rec via bpf_exec_tx_verdict() while a cryptd callback is still pending, resulting in a use-after-free when the callback fires on the freed record. Fix this by skipping the synchronous cleanup when the -EBUSY async wait returns an error, since the callback has already handled encrypt_pending and sge restoration.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.170-1 | DEBIAN-CVE-2026-31533 |
| Debian:13 | linux | 6.12.85-1 | DEBIAN-CVE-2026-31533 |
| Debian:14 | linux | 6.19.13-1 | DEBIAN-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux | 5.15.0-179.189 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux | 5.15.0-179.189 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux | 6.8.0-117.117 | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux | 6.17.0-29.29 | USN-8277-1 |
| Ubuntu:25.10 | linux | 6.17.0-29.29 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1108.115 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1108.115 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1055.58 | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-aws | 6.17.0-1015.15 | USN-8277-1 |
| Ubuntu:25.10 | linux-aws | 6.17.0-1015.15 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-aws-6.17 | 6.17.0-1017.17~24.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-aws-6.17 | 6.17.0-1017.17~24.04.1 | USN-8374-1 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1057.60~22.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1114.123 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1114.123 | USN-8426-2 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1056.62 | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-azure | 6.17.0-1015.15 | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-azure | 6.17.0-1015.15 | USN-8310-1 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-azure-6.14 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-azure-6.17 | 6.17.0-1015.15~24.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-azure-6.17 | 6.17.0-1015.15~24.04.1 | USN-8310-1 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1059.65~22.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1114.123 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-azure-fde | 6.8.0-1058.65 | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-azure-fde-6.14 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.8 | 6.8.0-1058.65~22.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-azure-nvidia | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-azure-nvidia-6.14 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1108.117 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1108.117 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1058.61 | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-gcp | 6.17.0-1018.19 | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-gcp | 6.17.0-1018.19 | USN-8374-1 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-gcp-6.17 | 6.17.0-1018.19~24.04.1 | USN-8374-1 |
| Ubuntu:24.04:LTS | linux-gcp-6.17 | 6.17.0-1018.19~24.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1060.63~22.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1104.110 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1104.110 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1054.60 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1091.99 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1091.99 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1041.44 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-hwe-6.14 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-hwe-6.17 | 6.17.0-29.29~24.04.1 | USN-8277-1 |
| Ubuntu:24.04:LTS | linux-hwe-6.17 | 6.17.0-29.29~24.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-124.124~22.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1102.105 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1102.105 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1055.56 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1055.56~22.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1103.109 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1103.109 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1100.105 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1100.105 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-179.189 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-179.189 | USN-8351-1 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-117.117.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-117.117.1~22.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1103.104 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1103.104 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1054.57 | UBUNTU-CVE-2026-31533 |
| Ubuntu:26.04:LTS | linux-nvidia | 7.0.0-1006.6 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-nvidia-6.17 | 6.17.0-1026.26 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-nvidia-6.17 | 6.17.0-1026.26 | USN-8508-1 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1054.57~22.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1054.57.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1060.60 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1060.60 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1025.25 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-nvidia-tegra | 6.8.0-1025.25 | USN-8350-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1049.49 | USN-8279-3 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1049.49 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-oem-6.17 | 6.17.0-1023.23 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-oem-6.17 | 6.17.0-1023.23 | USN-8277-1 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1105.111 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1105.111 | USN-8279-1 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1054.55 | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-oracle | 6.17.0-1014.14 | USN-8277-1 |
| Ubuntu:25.10 | linux-oracle | 6.17.0-1014.14 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-oracle-6.17 | 6.17.0-1014.14~24.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-oracle-6.17 | 6.17.0-1014.14~24.04.1 | USN-8277-2 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1054.55~22.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1102.105 | USN-8279-1 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1102.105 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1056.60 | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-raspi | 6.17.0-1017.17 | USN-8277-1 |
| Ubuntu:25.10 | linux-raspi | 6.17.0-1017.17 | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-realtime | 6.17.0-1013.15 | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-realtime | 6.17.0-1013.15 | USN-8277-1 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:25.10 | linux-riscv | 6.17.0-29.29.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-riscv-6.14 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-riscv-6.17 | 6.17.0-29.29.1~24.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-117.117~22.04.1 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2026-31533 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1032.33 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1074.78 | UBUNTU-CVE-2026-31533 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1074.78 | USN-8528-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 3ade391adc584f17b5570fd205de3ad029090368 – before 414fc5e5a5aff776c150f1b86770e0a25a35df3acd1bbca03f3c1d845ce274c0d0a66de8e5929f72 – before 02f3ecadb23558bbe068e6504118f1b712d4ece013eca403876bbea3716e82cdfe6f1e6febb38754 – before 0e43e0a3c94044acc74b8e0927c27972eb5a59e88590541473188741055d27b955db0777569438e3 – before aa9facde6c5005205874c37db3fd25799d741baf8590541473188741055d27b955db0777569438e3 – before 5d70eb25b41e9b010828cd12818b06a0c3b044128590541473188741055d27b955db0777569438e3 – before 2694d408b0e595024e0fc1d64ff9db0358580f748590541473188741055d27b955db0777569438e3 – before a9b8b18364fffce4c451e6f6fd218fa4ab646705ab6397f072e5097f267abf5cb08a8004e6b17694 |
| Linux | Linux | 6.8 |
Weakness: CWE-416 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://git.kernel.org/stable/c/414fc5e5a5aff776c150f1b86770e0a25a35df3a
- https://git.kernel.org/stable/c/02f3ecadb23558bbe068e6504118f1b712d4ece0
- https://git.kernel.org/stable/c/0e43e0a3c94044acc74b8e0927c27972eb5a59e8
- https://git.kernel.org/stable/c/aa9facde6c5005205874c37db3fd25799d741baf
- https://git.kernel.org/stable/c/5d70eb25b41e9b010828cd12818b06a0c3b04412
- https://git.kernel.org/stable/c/2694d408b0e595024e0fc1d64ff9db0358580f74
- https://git.kernel.org/stable/c/a9b8b18364fffce4c451e6f6fd218fa4ab646705
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html