CVE-2021-4203: Use-after-free read in Linux kernel socket peer credential handling
- Vendors
- NetAppOracle CorporationLinux
CVE-2021-4203 is a use-after-free read vulnerability in the Linux kernel's sock_getsockopt() function. Concurrent SO_PEERCRED or SO_PEERGROUPS socket-option queries and listen() or connect() operations can race when accessing sk_peer_pid and sk_peer_cred. Peer credentials can be replaced and freed while they are still being read, allowing a local, unprivileged attacker to crash the system or disclose internal kernel information.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise system availability through a kernel crash or compromise confidentiality by exposing internal kernel information. Arbitrary code execution and privilege escalation are not established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until a fixed kernel can be deployed, restrict untrusted local user access and execution on affected systems, since exploitation requires local user privileges. No complete configuration-based workaround is identified.
Remediation
Patch, then assume compromise.
Install a vendor-supported kernel update containing the fix and reboot into the updated kernel. The upstream fix is commit 35306eb23814, included in Linux 5.15-rc4. For RHEL 8.4 Extended Update Support, RHSA-2022:5626 supplies kernel 4.18.0-305.57.1.el8_4, and RHSA-2022:5633 supplies kernel-rt 4.18.0-305.57.1.rt7.129.el8_4. Other RHEL 8 updates addressing the issue include RHSA-2022:1975 and RHSA-2022:1988. Use the applicable fixed package or a later supported update for the installed distribution and release.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-4203 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2021-4203 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-4203?
- Yes. As of Oct 25, 2026, Mallory has reports of a public exploit for CVE-2021-4203.
- Is there a patch for CVE-2021-4203?
- Install a vendor-supported kernel update containing the fix and reboot into the updated kernel. The upstream fix is commit 35306eb23814, included in Linux 5.15-rc4.
- What products are affected by CVE-2021-4203?
- Linux Kernel, NetApp A700s Firmware, NetApp Activeiq Unified Manager, NetApp Bootstrap Os, Oracle Corporation Communications Cloud Native Core Binding Support Function, and 11 more.
- How severe is CVE-2021-4203?
- CVE-2021-4203 has a CVSS v3.1 score of 6.8 (Medium) and an EPSS score of 1.7% (78th percentile) as of Oct 25, 2026.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.