CVE-2021-23133
Linux Kernel sctp_destroy_sock race condition
Reported by palo_alto · Published April 22, 2021
A race condition in Linux kernel SCTP sockets (net/sctp/socket.c) before 5.12-rc8 can lead to kernel privilege escalation from the context of a network service or an unprivileged process. If sctp_destroy_sock is called without sock_net(sk)->sctp.addr_wq_lock then an element is removed from the auto_asconf_splist list without any proper locking. This can be exploited by an attacker with network service privileges to escalate to root or from the context of an unprivileged user directly if a BPF_CGROUP_INET_SOCK_CREATE is attached which denies creation of some SCTP socket.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux-zen | Arch Linux | 5.12.4.zen1-1 |
| kernel | Amazon Linux | 4.14.232-176.381.amzn2 |
| kernel-devel | Amazon Linux | 4.14.232-176.381.amzn2 |
| perf | Amazon Linux | 4.14.232-176.381.amzn2 |
| linux | Arch Linux | 5.12.4.arch1-1 |
| kernel-tools | Amazon Linux | 4.14.232-176.381.amzn2 |
| linux-lts | Arch Linux | 5.10.37-1 |
| kernel-tools-devel | Amazon Linux | 4.14.232-176.381.amzn2 |
| python-perf | Amazon Linux | 4.14.232-176.381.amzn2 |
| kernel-livepatch-4.14.232-176.381 | Amazon Linux | 1.0-0.amzn2 |
| linux-hardened | Arch Linux | 5.11.21.hardened1-1 |
| kernel-headers | Amazon Linux | 4.14.232-176.381.amzn2 |
49 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux Kernel | Linux Kernel | unspecified |
| arch | linux-zen | 0 |
| amazon:2 | kernel | 0 |
| amazon:2 | kernel-devel | 0 |
| Linux Kernel | Linux Kernel | * |
| amazon:2 | perf | 0 |
| arch | linux | 0 |
| amazon:2 | kernel-tools | 0 |
| arch | linux-lts | 0 |
| amazon:2 | kernel-tools-devel | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2 | kernel-livepatch-4.14.232-176.381 | 0 |
| arch | linux-hardened | 0 |
| amazon:2 | kernel-headers | 0 |
Timeline
- Apr 18, 2021 CVE Published
- Apr 27, 2021 EPSS Score (30 in total, the first dated here)
- Aug 19, 2024 CVE Updated
- Mar 7, 2026 Distribution Patch (14 in total, the first dated here)
- Mar 7, 2026 Security Advisory (17 in total, the first dated here)
- Aug 25, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-23133
vulnetix vdb fixes CVE-2021-23133
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-23133/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2021-8cd093f639 vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-e6b4847979 vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-a963f04012 vendor-advisoryx_refsource_FEDORA
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp sockets mailing-listx_refsource_MLIST
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp sockets mailing-listx_refsource_MLIST
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp sockets mailing-listx_refsource_MLIST
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp sockets mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- [debian-lts-announce] 20210623 [SECURITY] [DLA 2689-1] linux security update mailing-listx_refsource_MLIST
- [debian-lts-announce] 20210623 [SECURITY] [DLA 2690-1] linux-4.19 security update mailing-listx_refsource_MLIST