6.7medium
Linux Kernel sctp_destroy_sock race condition
- Severity
- 6.7medium CVSS:3.1 by palo_alto
- Exploit likelihood
- 0.47% (higher than 42% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- palo_alto
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Kernel Linux Kernel | from unspecified before 5.12-rc8 | CVE List |
| linux linux_kernel | before 4.4.269, from 4.5 before 4.9.269, from 4.10 before 4.14.233, from 4.15 before 4.19.191, from 4.20 before 5.4.119, from 5.5 before 5.10.37, from 5.11 before 5.11.21, from 5.12 before 5.12.4 | NVD |
| fedoraproject fedora | 32, 33, 34 | NVD |
| debian debian_linux | 9.0 | NVD |
| netapp cloud_backup | Not specified | NVD |
| netapp solidfire_&_hci_management_node | Not specified | NVD |
| broadcom brocade_fabric_operating_system | Not specified | NVD |
| netapp h410c_firmware | Not specified | NVD |
| netapp h300s_firmware | Not specified | NVD |
| netapp h500s_firmware | Not specified | NVD |
| netapp h700s_firmware | Not specified | NVD |
| netapp h300e_firmware | Not specified | NVD |
| netapp h500e_firmware | Not specified | NVD |
| netapp h700e_firmware | Not specified | NVD |
| netapp h410s_firmware | Not specified | NVD |
| netapp solidfire_baseboard_management_controller_firmware | Not specified | NVD |
All scores
| palo_alto | 6.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.0high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.9medium CVSS:2.0 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
Classification
What each source says
CVE List
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.
NVD (es)
Una condición de carrera en los sockets SCTP del kernel de Linux (el archivo net/sctp/socket.c) versiones anteriores a 5.12-rc8, puede conllevar a una escalada de privilegios del kernel desde el contexto de un servicio de red o un proceso no privilegiado. Si la función sctp_destroy_sock es llamado sin sock_net (sk) -) sctp.addr_wq_lock, un elemento es eliminado de la lista auto_asconf_splist sin ningún bloqueo apropiado. Esto puede ser explotado por un atacante con privilegios de servicio de red para escalar a root o desde el contexto de un usuario no privilegiado directamente si un BPF_CGROUP_INET_SOCK_CREATE es adjuntado que niega la creación de algún socket SCTP
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23133 changed 2024-09-16 | CVE Terms of Use |
| NVD | CVE-2021-23133 changed 2026-07-30 | Public domain |