CVE-2021-47131
published high CVSS 3.1 · 8.1net/tls: Fix use-after-free after the TLS device goes down and up
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe8f69799810c32dd40c6724d829eccc70baad07f to < f1d4184f128dede82a59a841658ed40d4e6d3aa2 · e8f69799810c32dd40c6724d829eccc70baad07f to < 0f1e6fe66977a864fe850522316f713d7b926fd9 · e8f69799810c32dd40c6724d829eccc70baad07f to < c55dcdd435aa6c6ad6ccac0a4c636d010ee367a4 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.18 (affected) · 0 to < 4.18 (unaffected · semver) · 5.10.43 through 5.10.* (unaffected · semver) · 5.12.10 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-002 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azurex86_64 | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azure-basex86_64 | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azure-develx86_64 | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-extrax86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-devel-azurenoarch | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-devel-rtnoarch | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-docsnoarch | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildaarch64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-builds390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt-basex86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt-develx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt_debugx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-rt_debug-develx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-sourcenoarch | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-source-azurenoarch | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-source-rtnoarch | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsaarch64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symss390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-syms-azurex86_64 | Advisory build | 4.12.14-16.182.1 | SUSE-SU-2024:1643-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-syms-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaultppc64le | Advisory build | 1-8.3.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaults390x | Advisory build | 1-8.3.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_219-defaultx86_64 | Advisory build | 1-8.3.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaults390x | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.219.1 | SUSE-SU-2024:2184-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-rtx86_64 | Advisory build | 4.12.14-10.188.1 | SUSE-SU-2024:1983-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaults390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaults390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | dlm-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaults390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | gfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultaarch64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaults390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-defaultx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150200.24.191.1.150200.9.97.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-baseppc64le | Advisory build | 5.3.18-150200.24.191.1.150200.9.97.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-bases390x | Advisory build | 5.3.18-150200.24.191.1.150200.9.97.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-basex86_64 | Advisory build | 5.3.18-150200.24.191.1.150200.9.97.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develaarch64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-devels390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-develx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchs390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatchx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-develppc64le | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-devels390x | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-default-livepatch-develx86_64 | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-develnoarch | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-docsnoarch | Advisory build | 5.3.18-150200.24.191.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_191-defaultppc64le | Advisory build | 1-150200.5.3.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_191-defaults390x | Advisory build | 1-150200.5.3.1 | SUSE-SU-2024:1650-1 |
| SUSE / openSUSE | SLE-15-SP2 | kernel-livepatch-5_3_18-150200_24_191-defaultx86_64 | Advisory build | 1-150200.5.3.1 | SUSE-SU-2024:1650-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: net/tls: Fix use-after-free after the TLS device goes down and up When a netdev with active TLS offload goes down, tls_device_down is called to stop the offload and tear down the TLS context. However, the socket stays alive, and it still points to the TLS context, which is now deallocated. If a netdev goes up, while the connection is still active, and the data flow resumes after a number of TCP retransmissions, it will lead to a use-after-free of the TLS context. This commit addresses this bug by keeping the context alive until its normal destruction, and implements the necessary fallbacks, so that the connection can resume in software (non-offloaded) kTLS mode. On the TX side tls_sw_fallback is used to encrypt all packets. The RX side already has all the necessary fallbacks, because receiving non-decrypted packets is supported. The thing needed on the RX side is to block resync requests, which are normally produced after receiving non-decrypted packets. The necessary synchronization is implemented for a graceful teardown: first the fallbacks are deployed, then the driver resources are released (it used to be possible to have a tls_dev_resync after tls_dev_del). A new flag called TLS_RX_DEV_DEGRADED is added to indicate the fallback mode. It's used to skip the RX resync logic completely, as it becomes useless, and some objects may be released (for example, resync_async, which is allocated and freed by the driver).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The UAF is reached when a remote TLS peer sends data on an existing kTLS hardware-offloaded TCP connection after the NIC flaps, hitting net/tls RX resync paths that dereference driver state freed by tls_dev_del. AC:H - Exploitation requires the offload netdev to go down and back up while the connection stays alive, which a remote peer cannot force; once that state exists, sending traffic reliably triggers the bug. PR:N - A remote TLS client or peer needs no local account or privileges—only an established connection to a host using kTLS device offload (for example HTTPS with NIC TLS offload). UI:N - No additional user action is required beyond ordinary connection and data transfer after the device cycle; the attacker does not need a victim to open a file or click anything. S:U - Impact is confined to the host kernel that owns the TLS offload context; this is standard kernel memory corruption without a VM/IOMMU or other security-authority boundary cross. C:H - Use-after-free of the driver RX resync object (and related offload state) enables heap reuse and arbitrary read primitives per UAF scoring guidance. I:H - The same UAF is exploitable for heap spray and control-flow hijacking/arbitrary write, and the missing TX fallback can also mishandle post-teardown xmit state. A:H - Dereferencing freed resync_async or calling tls_dev_resync after tls_dev_del can oops/panic the kernel, so availability impact is High.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | e8f69799810c32dd40c6724d829eccc70baad07f to < f1d4184f128dede82a59a841658ed40d4e6d3aa2 (affected · git)e8f69799810c32dd40c6724d829eccc70baad07f to < 0f1e6fe66977a864fe850522316f713d7b926fd9 (affected · git)e8f69799810c32dd40c6724d829eccc70baad07f to < c55dcdd435aa6c6ad6ccac0a4c636d010ee367a4 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.18 (affected)0 to < 4.18 (unaffected · semver)5.10.43 through 5.10.* (unaffected · semver)5.12.10 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
3Linux · cna
net/tls: Fix use-after-free after the TLS device goes down and up
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8fb5de17c9c576ad66bef705791f78cbf3a052901070ac05faa347d840510237
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record