Skip to main content
← All vulnerabilities
CVE-2021-23133

Linux Kernel sctp_destroy_sock race condition

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.12-rc8
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Kernel Linux Kernel

    fixed in 5.12-rc8

References 12

openwall.com

git.kernel.org

lists.fedoraproject.org

security.netapp.com

lists.debian.org