CVE-2021-23133

Linux Kernel sctp_destroy_sock race condition

State
Published
Severity
6.7 Medium
Published
Apr 22, 2021
Updated
Sep 16, 2024
Reserved
Jan 6, 2021

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.7 MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:Hpalo_alto

Weaknesses

  • CWE-362 Race Condition (Concurrent Execution using Shared Resource with Improper Synchronization)

Affected Products

ProductVersions
Linux KernelLinux Kernel
  • before 5.12-rc8Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.