CVE-2021-23133 Linux Kernel sctp_destroy_sock race condition

Medium 6.7 Published Updated

A race condition in Linux Kernel SCTP sockets allows local attackers to escalate privileges to root via improper locking in sctp_destroy_sock.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-23133?

CVE-2021-23133 is a medium-severity vulnerability in Debian Debian Linux, published on 22 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-362

Which versions are affected by CVE-2021-23133?

It affects 15 products.

Linux distribution packages (6)
kgraft-patch-SLE12-SP5_Update_17 SUSE:Linux Enterprise Live Patching 12 SP5All versions4-2.2
kgraft-patch-SLE12-SP5_Update_18 SUSE:Linux Enterprise Live Patching 12 SP5All versions3-2.1
kernel-livepatch-SLE15-SP2_Update_11 SUSE:Linux Enterprise Live Patching 15 SP2All versions6-2.2
kernel-livepatch-SLE15-SP2_Update_12 SUSE:Linux Enterprise Live Patching 15 SP2All versions3-2.1
kernel-livepatch-SLE15-SP2_Update_13 SUSE:Linux Enterprise Live Patching 15 SP2All versions3-2.1
kernel-livepatch-SLE15-SP3_Update_0 SUSE:Linux Enterprise Live Patching 15 SP3All versions3-3.1

Products include Broadcom Brocade Fabric Operating System, Debian Debian Linux, Fedoraproject Fedora, Linux kernel, Netapp Cloud Backup, Netapp H300e Firmware and 9 more.

How do I fix CVE-2021-23133?

Apply the vendor's patch.

Is CVE-2021-23133 being exploited?

There is no known exploitation of CVE-2021-23133 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-6530, DEBIAN-CVE-2021-23133, GHSA-hp5q-cmxv-w64v, SUSE-SU-2021:2366-1, SUSE-SU-2021:2384-1, SUSE-SU-2021:2460-1 and 1 more.

Is CVE-2021-23133 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free