CVE-2021-23133
Linux Kernel sctp_destroy_sock race condition
- State
- Published
- Severity
- 6.7 Medium
- Published
- Apr 22, 2021
- Updated
- Sep 16, 2024
- Reserved
- Jan 6, 2021
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.7 Medium | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H | palo_alto |
Weaknesses
- CWE-362 Race Condition (Concurrent Execution using Shared Resource with Improper Synchronization)
Affected Products
| Product | Versions |
|---|---|
Linux KernelLinux Kernel |
|
References
- https://www.openwall.com/lists/oss-security/2021/04/18/2
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b166a20b07382b8bc1dcee2a448715c9c2c81b5b
- FEDORA-2021-8cd093f639vendor-advisory
- FEDORA-2021-e6b4847979vendor-advisory
- FEDORA-2021-a963f04012vendor-advisory
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp socketsmailing-list
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp socketsmailing-list
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp socketsmailing-list
- [oss-security] 20210510 Re: CVE-2021-23133: Linux kernel: race condition in sctp socketsmailing-list
- https://security.netapp.com/advisory/ntap-20210611-0008/
- [debian-lts-announce] 20210623 [SECURITY] [DLA 2689-1] linux security updatemailing-list
- [debian-lts-announce] 20210623 [SECURITY] [DLA 2690-1] linux-4.19 security updatemailing-list
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.