FreeBSD
Remote code execution via installer Wi-Fi access point scans
Edge device · Router / network deviceproduct or title mentions "access point" (medium confidence)
When bsdinstall or bsdconfig are prompted to scan for nearby Wi-Fi networks, they build up a list of network names and use bsddialog(1) to prompt the user to select a network. This is implemented using a shell script, and the code which handled network names was not careful to prevent expansion by the shell. As a result, a suitably crafted network name can be used to execute commands via a subshell. The problem can be exploited to execute code as root on the system running bsdinstall or bsdconfig. The attacker would need to create an access point with a specially crafted name and be within range of a Wi-Fi scan. Note that bsdinstall and bsdconfig are vulnerable as soon as the user prompts them to scan for nearby networks; they do not need to actually select the malicious network.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 15.0-RELEASE, < p9
- >= 14.4-RELEASE, < p5
- >= 14.3-RELEASE, < p14
Fixed in p9, p5, p14
Mitigation
Upgrade FreeBSD to p9 or p5 or p14 or later.
References
- Vendor advisory security.freebsd.org/advisories/FreeBSD-SA-26:23.bsdinst…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.