CVE-2021-4203 Use after free in kernel

Medium 6.8 Published Updated

A local attacker can trigger a race condition to crash the system or leak kernel information via a use-after-free flaw in socket options.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-4203?

CVE-2021-4203 is a medium-severity use after free vulnerability in Linux kernel, published on 25 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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. In this flaw, an attacker with a user privileges may crash the system or leak internal kernel information.

Weakness: CWE-416, CWE-362

Which versions are affected by CVE-2021-4203?

It affects 16 products.

Products include Linux kernel, Netapp A700s Firmware, Netapp Active Iq Unified Manager, Netapp Bootstrap Os, Netapp E-Series Santricity Os Controller, Netapp Element Software and 10 more.

How do I fix CVE-2021-4203?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2021-4203 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-4203, GHSA-rh28-76xv-jcqc, UBUNTU-CVE-2021-4203.

Is CVE-2021-4203 in your software?

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

Check your SBOMs for free