Double free in FreeBSD
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-415 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | FreeBSD | FreeBSD 12.2-RELEASE before p6 | — | No fix listed | CNA |
- FreeBSD Vendor— Affected FreeBSD 12.2-RELEASE before p6 Fixed in — No fix listed CNA
CPE configurations NVD · 11
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:freebsd:freebsd:*:*:*:*:*:*:*:* | 12.0 to before 12.2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.2:-:*:*:*:*:*:* | 12.2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.2:p1:*:*:*:*:*:* | 12.2 p1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:12.2:p2:*:*:*:*:*:* | 12.2 p2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.0:beta1:*:*:*:*:*:* | 13.0 beta1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.0:beta2:*:*:*:*:*:* | 13.0 beta2 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.0:beta3:*:*:*:*:*:* | 13.0 beta3 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.0:beta4:*:*:*:*:*:* | 13.0 beta4 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.0:rc1:*:*:*:*:*:* | 13.0 rc1 | Vulnerable | FreeBSD |
| cpe:2.3:o:freebsd:freebsd:13.0:rc2:*:*:*:*:*:* | 13.0 rc2 | Vulnerable | FreeBSD |
- cpe:2.3:o:freebsd:freebsd:*:*:*:*:*:*:*:* Versions 12.0 to before 12.2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.2:-:*:*:*:*:*:* Versions 12.2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.2:p1:*:*:*:*:*:* Versions 12.2 p1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:12.2:p2:*:*:*:*:*:* Versions 12.2 p2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.0:beta1:*:*:*:*:*:* Versions 13.0 beta1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.0:beta2:*:*:*:*:*:* Versions 13.0 beta2 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.0:beta3:*:*:*:*:*:* Versions 13.0 beta3 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.0:beta4:*:*:*:*:*:* Versions 13.0 beta4 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.0:rc1:*:*:*:*:*:* Versions 13.0 rc1 Vulnerable ·FreeBSD
- cpe:2.3:o:freebsd:freebsd:13.0:rc2:*:*:*:*:*:* Versions 13.0 rc2 Vulnerable ·FreeBSD
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2021-29627
- 2026-10-03 Alias added: GHSA-g6p6-whf8-4cqg
References
More Freebsd vulnerabilities
- TI-2011-04182 Buffer overflow in libtelnet/encrypt.c in telnetd in FreeBSD 7.3 through 9.0, MIT… CVSS 2.0HIGH 10.0
- TI-2007-03684 Integer overflow in print-bgp.c in the BGP dissector in tcpdump 3.9.6 and earlier allows… CVSS 3.1CRITICAL 9.8
- TI-2002-00376 Integer overflow in xdr_array function in RPC servers for operating systems that use… CVSS 3.1CRITICAL 9.8
- TI-2024-05929 Openssh: regresshion - race condition in ssh allows rce/dos CVSS 3.1HIGH 8.1
- TI-2003-00437 Off-by-one error in the fb_realpath() function, as derived from the realpath function in… CVSS 3.1CRITICAL 9.8
- TI-2003-00642 The prescan function in Sendmail 8.12.9 allows remote attackers to execute arbitrary code… CVSS 2.0HIGH 10.0
Sources
- CVE-2021-29627 · CVE Program
- CVE-2021-29627 · NVD
- FIRST EPSS
- GHSA-g6p6-whf8-4cqg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences