CVE-2021-23133CWE-362

Linux Kernel sctp_destroy_sock race condition

Medium · published April 22, 2021

CVSS v3.1
6.7
EPSS
0%
Percentile
40.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.7 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00475 · 40.1th percentile
Weakness
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Published
2021-04-22T18:00Z
EPSS history
Timeline
  • 22 APR 18:00Z
    Linux Kernel sctp_destroy_sock race condition
    cvelistv5