CVE-2021-4203
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free read flaw was found in sock_getsockopt() in net/core/sock.c due to SO_PEERCRED and SO_PEERGROUPS race with listen() (and connect()) in the Linux kernel. The vulnerability was discovered by Jann Horn and was assigned CVE-2021-4203. The issue affects Linux kernel versions prior to 5.15-rc4 (Kernel Commit).

Technical details

The vulnerability stems from a race condition in the socket subsystem where af_unix can concurrently change sk_peer_pid and sk_peer_cred fields. The issue occurs specifically in the SO_PEERCRED and SO_PEERGROUPS implementations. The vulnerability has been assigned a CVSS v3.1 base score of 6.8 (MEDIUM) with the vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H (NVD).

Impact

A successful exploitation of this vulnerability could allow an attacker with user privileges to crash the system or leak internal kernel information. The vulnerability could lead to disclosure of sensitive information or Denial of Service (DoS) (NetApp Advisory).

Exploitability

The vulnerability requires user privileges to exploit and has high attack complexity. The attack vector is network-based, but requires no user interaction to exploit. The vulnerability has been classified with high confidentiality and availability impact ratings, but no integrity impact (NVD).

Mitigation and workarounds

The issue was fixed in Linux kernel version 5.15-rc4 by adding a new spinlock that needs to be used whenever these fields are read or written. The fix involves proper synchronization of access to sk_peer_pid and sk_peer_cred fields using the newly introduced sk_peer_lock (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74583NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2026-74582NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 21, 2026
CVE-2026-74581NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-internal
NoYesAug 21, 2026
CVE-2026-74580NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management