CVE-2021-29627 in Freebsd
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Freebsd | Freebsd | 12.2 13.0 ≥ 12.0, < 12.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-29627 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-079957-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2021-04-07 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-415: CWE-415
CWE-416: Use After Free
Software references memory after it has been freed, leading to corruption, crashes, or code execution.
Analysis AI-written, not human-reviewed
A vulnerability in FreeBSD's socket accept filters can lead to a double free or use after free due to improper handling of a process-supplied argument string.
An attacker can exploit this vulnerability by sending specially crafted requests to a listening socket that uses an accept filter with the accf_create callback. This can potentially lead to arbitrary code execution with elevated privileges.
Questions
What is CVE-2021-29627?
A vulnerability in FreeBSD's socket accept filters can lead to a double free or use after free due to improper handling of a process-supplied argument string.
What is the CVSS score for CVE-2021-29627?
CVE-2021-29627 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.7%.
Is CVE-2021-29627 actively exploited?
No confirmed active exploitation of CVE-2021-29627 as of 2026-09-25.
How do I remediate CVE-2021-29627?
Priority: HIGH. Advisory: https://security.FreeBSD.org/advisories/FreeBSD-SA-21:09.accept_filter.asc PSIRT: [email protected]
What systems are affected by CVE-2021-29627?
CVE-2021-29627 affects Freebsd Freebsd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Freebsd","product":"Freebsd","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.