CVE-2026-31533
CriticalIn 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.
CVSS 3.1 score
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-416CVE-2026-31533 is a Use After Free vulnerability
What is Use After Free?
The product references memory after it has been freed, which may cause it to crash, use unexpected values, or execute code. Learn more on MITRE CWE
Affected versions
Linux kernel versions
5.15.160,
6.1.84,
6.6.18,
6.7.6,
6.8
and later are affected. Fixed in
5.15.203,
6.1.169,
6.6.135,
6.12.82,
6.18.23,
6.19.13,
7.0
and their respective stable series.
References
The following references provide additional information about CVE-2026-31533 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/02f3ecadb23558bbe068e6504118f1b712d4ece0
-
PatchKernel patch commithttps://git.kernel.org/stable/c/0e43e0a3c94044acc74b8e0927c27972eb5a59e8
-
PatchKernel patch commithttps://git.kernel.org/stable/c/2694d408b0e595024e0fc1d64ff9db0358580f74
Frequently asked questions
-
What is CVE-2026-31533?
CVE-2026-31533 is a Critical severity Linux kernel vulnerability with a CVSS score of 9.8 out of 10 , classified as an Use After Free flaw (CWE-416) . It affects Linux kernel versions from 5.15.160 onward and has been patched in 5.15.203, 6.1.169, 6.6.135 and others. CVE-2026-31533 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2026-31533?
CVE-2026-31533 has a CVSS score of 9.8 out of 10, rated Critical severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2026-31533?
Yes — CVE-2026-31533 has been patched. Fixed versions include 5.15.203, 6.1.169, 6.6.135 and others. If you are running Linux kernel 5.15.160 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2026-31533 actively exploited?
No — CVE-2026-31533 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Use After Free (CWE-416)?
The product references memory after it has been freed, which may cause it to crash, use unexpected values, or execute code. View CWE-416 on MITRE CWE →