CVE Vulnerabilities

CVE-2021-29627

Double Free

Published: Apr 07, 2021 | Modified: May 27, 2022
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.2 HIGH
AV:L/AC:L/Au:N/C:C/I:C/A:C
RedHat/V2
RedHat/V3
Ubuntu

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

The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.

Affected Software

Name Vendor Start Version End Version
Freebsd Freebsd 12.0 (including) 12.2 (excluding)
Freebsd Freebsd 12.2 (including) 12.2 (including)
Freebsd Freebsd 12.2-p1 (including) 12.2-p1 (including)
Freebsd Freebsd 12.2-p2 (including) 12.2-p2 (including)
Freebsd Freebsd 13.0-beta1 (including) 13.0-beta1 (including)
Freebsd Freebsd 13.0-beta2 (including) 13.0-beta2 (including)
Freebsd Freebsd 13.0-beta3 (including) 13.0-beta3 (including)
Freebsd Freebsd 13.0-beta4 (including) 13.0-beta4 (including)
Freebsd Freebsd 13.0-rc1 (including) 13.0-rc1 (including)
Freebsd Freebsd 13.0-rc2 (including) 13.0-rc2 (including)
Freebsd Freebsd 13.0-rc3 (including) 13.0-rc3 (including)

Potential Mitigations

References