CVE-2021-29627 Use after free in FreeBSD

High 7.8 Published Updated

A use-after-free vulnerability in FreeBSD's listening socket accept filters allows attackers to potentially execute arbitrary code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-29627?

CVE-2021-29627 is a high-severity use after free vulnerability in Freebsd Freebsd, published on 7 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In FreeBSD 13.0-STABLE before n245050, 12.2-STABLE before r369525, 13.0-RC4 before p0, and 12.2-RELEASE before p6, listening socket accept filters implementing the accf_create callback incorrectly freed a process supplied argument string. Additional operations on the socket can lead to a double free or use after free.

Weakness: CWE-416, CWE-415

Which versions are affected by CVE-2021-29627?

It affects 1 product.

Products include Freebsd Freebsd.

How do I fix CVE-2021-29627?

No fix has been published for CVE-2021-29627 yet. Limit exposure of the affected software until one is available.

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-29627 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

All Freebsd Freebsd vulnerabilities

Sources

Also known as GHSA-g6p6-whf8-4cqg.

Is CVE-2021-29627 in your software?

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

Check your SBOMs for free