vulnerability
FreeBSD: VID-d22b336d-0567-11ec-b69d-4062311215d5 (CVE-2021-36159): FreeBSD -- libfetch out of bounds read
| Severity | CVSS | Published | Added | Modified |
|---|---|---|---|---|
| 6 | (AV:N/AC:L/Au:N/C:P/I:N/A:P) | Aug 25, 2021 | Nov 4, 2022 | Dec 10, 2025 |
Severity
6
CVSS
(AV:N/AC:L/Au:N/C:P/I:N/A:P)
Published
Aug 25, 2021
Added
Nov 4, 2022
Modified
Dec 10, 2025
Description
Problem Description: The passive mode in FTP communication allows an out of boundary read while libfetch uses strtol to parse the relevant numbers into address bytes. It does not check if the line ends prematurely. If it does, the for-loop condition checks for *p == '\0' one byte too late because p++ was already performed. Impact: The connection buffer size can be controlled by a malicious FTP server because the size is increased until a newline is encountered (or no more characters are read). This also allows to move the buffer into more interesting areas within the address space, potentially parsing relevant numbers for the attacker. Since these bytes become available to the server in form of a new TCP connection to a constructed port number or even part of the IPv6 address this is a potential information leak.
Solutions
freebsd-upgrade-base-13_0-release-p4freebsd-upgrade-base-12_2-release-p10freebsd-upgrade-base-11_4-release-p13
NEW
Explore Exposure Command
Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.