CVE-2026-31533 in the critical feed json
net/tls: fix use-after-free in -EBUSY error path of tls_do_encryption
published 2026-04-23 6 mo ago modified 2026-10-19 20 d ago also EUVD-2026-25249
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 34%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.15.203, 6.1.169, 6.6.135, 6.8, 6.12.82, 6.18.23, 6.19.13, 7.0
- linux Debian 12 6.1.170-1
- linux Debian 13 6.12.85-1
- linux Debian 14 6.19.13-1
debian advisories DEBIAN-CVE-2026-31533
- linux Ubuntu 22.04 LTS 5.15.0-179.189
- linux Ubuntu 24.04 LTS 6.8.0-117.117
- linux Ubuntu 25.10 6.17.0-29.29
- linux-aws Ubuntu 22.04 LTS 5.15.0-1108.115
- linux-aws Ubuntu 24.04 LTS 6.8.0-1055.58
- linux-aws Ubuntu 25.10 6.17.0-1015.15
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1108.117
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1058.61
ubuntu advisories UBUNTU-CVE-2026-31533
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-livepatch-MICRO-6-0-RT_Update_13 Linux Micro 6.1, Linux Micro 6.0 9-1.1
- kernel-livepatch-SLE16_Update_11 SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 4-160000.1.1
- kernel-livepatch-SLE16_Update_8 SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 5-160000.1.1
- kernel-livepatch-SLE16_Update_2 SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 11-160000.1.1
- kernel-livepatch-SLE16_Update_6 SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 7-160000.1.1
- kernel-livepatch-SLE16_Update_5 SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 8-160000.1.1
- kernel-livepatch-SLE16_Update_0 SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 15-160000.4.3
- kernel-livepatch-MICRO-6-0-RT_Update_10 Linux Micro 6.1, Linux Micro 6.0 18-1.1
suse advisories SUSE-SU-2026:22689-1SUSE-SU-2026:22711-1SUSE-SU-2026:22763-1SUSE-SU-2026:22877-1SUSE-SU-2026:22762-1SUSE-SU-2026:22875-1
- git.kernel.org/stable/c/414fc5e5a5aff776c150f1b86770e0a25a35df3a commit
- git.kernel.org/stable/c/02f3ecadb23558bbe068e6504118f1b712d4ece0 commit
- git.kernel.org/stable/c/0e43e0a3c94044acc74b8e0927c27972eb5a59e8 commit
- git.kernel.org/stable/c/aa9facde6c5005205874c37db3fd25799d741baf commit
- git.kernel.org/stable/c/5d70eb25b41e9b010828cd12818b06a0c3b04412 commit
- git.kernel.org/stable/c/2694d408b0e595024e0fc1d64ff9db0358580f74 commit
- git.kernel.org/stable/c/a9b8b18364fffce4c451e6f6fd218fa4ab646705 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-31533 updated cvss 5.5
kernel: net/tls: fix use-after-free in -EBUSY error path of tls_do_encryption
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelaffected: workaround, no fix available “To mitigate this issue, prevent the tls module from being loaded. See https://access.redhat.com/solutions/41278 for instructions.”
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-295-11 updated cvss 9.8
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.7 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.7 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.7 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.7 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.7affected: mitigation, no fix available
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
cisa ICSA-26-209-04 updated cvss 9.8
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP
-
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= 3.1.6 Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= 3.1.6 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= 3.1.6 Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0) >= 3.1.6 Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0) >= 3.1.6affected: mitigation, no fix available
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 24 d ago
Exploit prediction
0.40% chance of exploitation in the next 30 days, higher than 34% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP
- Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
- Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/414fc5e5a5aff776c150f1b86770e0a25a35df3a
patch
-
git.kernel.org
/stable/c/02f3ecadb23558bbe068e6504118f1b712d4ece0
patch
-
git.kernel.org
/stable/c/0e43e0a3c94044acc74b8e0927c27972eb5a59e8
patch
-
git.kernel.org
/stable/c/aa9facde6c5005205874c37db3fd25799d741baf
patch
-
git.kernel.org
/stable/c/5d70eb25b41e9b010828cd12818b06a0c3b04412
patch
-
git.kernel.org
/stable/c/2694d408b0e595024e0fc1d64ff9db0358580f74
patch
-
git.kernel.org
/stable/c/a9b8b18364fffce4c451e6f6fd218fa4ab646705
patch
- cert-portal.siemens.com /productcert/html/ssa-082556.html
- cert-portal.siemens.com /productcert/html/ssa-019113.html
- cert-portal.siemens.com /productcert/html/ssa-457936.html
Sources
- CVE List CVE-2026-31533
- NVD CVE-2026-31533
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.