Vulnerability · Published Apr 22, 2021 · Assigned by palo_alto
CVE-2021-23133Linux Kernel sctp_destroy_sock race condition
Medium 6.7
In plain English
A medium-severity race condition in Linux Kernel from Linux Kernel. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-348.el8 | ALSA-2021:4356 |
| Debian:12 | linux | 5.10.38-1 | DEBIAN-CVE-2021-23133 |
| Debian:13 | linux | 5.10.38-1 | DEBIAN-CVE-2021-23133 |
| Debian:14 | linux | 5.10.38-1 | DEBIAN-CVE-2021-23133 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2021-23133 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2021-23133 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2021-23133 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2021-23133 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux Kernel | Linux Kernel | unspecified – before 5.12-rc8 |
Weakness: CWE-362 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
References
- https://www.openwall.com/lists/oss-security/2021/04/18/2 x_refsource_MISC
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b166a20b07382b8bc1dcee2a448715c9c2c81b5b x_refsource_MISC
- FEDORA-2021-8cd093f639 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-e6b4847979 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-a963f04012 vendor-advisory, x_refsource_FEDORA
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp sockets mailing-list, x_refsource_MLIST
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp sockets mailing-list, x_refsource_MLIST
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp sockets mailing-list, x_refsource_MLIST
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp sockets mailing-list, x_refsource_MLIST
- https://security.netapp.com/advisory/ntap-20210611-0008/ x_refsource_CONFIRM
- [debian-lts-announce] 20210623 [SECURITY] [DLA 2689-1] linux security update mailing-list, x_refsource_MLIST
- [debian-lts-announce] 20210623 [SECURITY] [DLA 2690-1] linux-4.19 security update mailing-list, x_refsource_MLIST