title: GELI silently omits the keyfile if read from stdin
description: When GELI reads a key file from standard input, it does not reuse the key file to initialize multiple providers at once resulting in the second and subsequent devices silently using a NULL key as the user key file. If a user only uses a key file without a user passphrase, the master key is encrypted with an empty key file allowing trivial recovery of the master key.
problem types: CWE-20 Improper Input Validation
affected:
{
defaultStatus: unaffected
modules: geli
product: FreeBSD
vendor: FreeBSD
versions:
lessThan: 13.1-RELEASE-p6, status: affected, version: 13.1-RELEASE, versionType: release
lessThan: 12.4-RELEASE-p1, status: affected, version: 12.4-RELEASE, versionType: release
lessThan: 12.3-RELEASE-p11, status: affected, version: 12.3-RELEASE, versionType: release
}