CVE-2021-23133
JSON

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 packageVersionsReported by
Linux Kernel Linux Kernelfrom unspecified before 5.12-rc8CVE List
linux linux_kernelbefore 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.4NVD
fedoraproject fedora32, 33, 34NVD
debian debian_linux9.0NVD
netapp cloud_backupNot specifiedNVD
netapp solidfire_&_hci_management_nodeNot specifiedNVD
broadcom brocade_fabric_operating_systemNot specifiedNVD
netapp h410c_firmwareNot specifiedNVD
netapp h300s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD
netapp h700s_firmwareNot specifiedNVD
netapp h300e_firmwareNot specifiedNVD

All scores

palo_alto6.7medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.9medium CVSS:2.0AV: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

https://www.openwall.com/lists/oss-security/2021/04/18/2exploit, mailing-list, patch, third-party-advisory
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b166a20b07382b8bc1dcee2a448715c9c2c81b5bmailing-list, patch, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PAEQ3H6HKNO6KUCGRZVYSFSAGEUX23JL/third-party-advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CUX2CA63453G34C6KYVBLJXJXEARZI2X/third-party-advisory, vendor-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XZASHZVCOFJ4VU2I3BN5W5EPHWJQ7QWX/third-party-advisory, vendor-advisory
http://www.openwall.com/lists/oss-security/2021/05/10/1mailing-list, patch, third-party-advisory
http://www.openwall.com/lists/oss-security/2021/05/10/2mailing-list, patch, third-party-advisory
http://www.openwall.com/lists/oss-security/2021/05/10/4mailing-list, patch, third-party-advisory
http://www.openwall.com/lists/oss-security/2021/05/10/3mailing-list, patch, third-party-advisory
https://security.netapp.com/advisory/ntap-20210611-0008/third-party-advisory
https://lists.debian.org/debian-lts-announce/2021/06/msg00020.htmlmailing-list, mitigation, third-party-advisory
https://lists.debian.org/debian-lts-announce/2021/06/msg00019.htmlmailing-list, mitigation, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-23133 changed 2024-09-16CVE Terms of Use
NVDCVE-2021-23133 changed 2026-07-30Public domain