CVE-2021-21367
Incorrect Authorization in switchboard-plug-bluetooth
Check your servers for CVE-2021-21367
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-21367 affects switchboard-plug-bluetooth, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Switchboard Bluetooth Plug for elementary OS from version 2.3.0 and before version version 2.3.5 has an incorrect authorization vulnerability. When the Bluetooth plug is running (in discoverable mode), Bluetooth service requests and pairing requests are automatically accepted, allowing physically proximate attackers to pair with a device running an affected version of switchboard-plug-bluetooth without the active consent of the user. By default, elementary OS doesn't expose any services via Bluetooth that allow information to be extracted by paired Bluetooth devices. However, if such services (i.e. contact list sharing software) have been installed, it's possible that attackers have been able to extract data from such services without authorization. If no such services have been installed, attackers are only able to pair with a device running an affected version without authorization and then play audio out of the device or possibly present a HID device (keyboard, mouse, etc...) to control the device. As such, users should check the list of trusted/paired devices and remove any that are not 100% confirmed to be genuine. This is fixed in version 2.3.5. To reduce the likelihood of this vulnerability on an unpatched version, only open the Bluetooth plug for short intervals when absolutely necessary and preferably not in crowded public areas. To mitigate the risk entirely with unpatched versions, do not open the Bluetooth plug within switchboard at all, and use a different method for pairing devices if necessary (e.g. `bluetoothctl` CLI).
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality low, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.64%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 51.9% of all scored CVEs. Scores of 2 Dec 2026.
Weakness
- CWE-863 Incorrect Authorization
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| switchboard-plug-bluetooth |
affected >= 2.3.0, < 2.3.5
|
Is my server affected?
Find the installed version of switchboard-plug-bluetooth and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i switchboard-plug-bluetooth
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-21367 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-21367RHEL, Rocky, Alma, Fedora
rpm -q switchboard-plug-bluetooth
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-21367Alpine
apk list --installed | grep -i switchboard-plug-bluetoothWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-21367
trivy image --scanners vuln IMAGE | grep CVE-2021-21367
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/elementary/switchboard-plug-bluetooth/security/advisories/GHSA-5p3g-j69g-w2mq github.com
- FEDORA-2021-3dedd41a06 lists.fedoraproject.org · vendor advisory
- FEDORA-2021-7d55c00267 lists.fedoraproject.org · vendor advisory
- FEDORA-2021-6210be0100 lists.fedoraproject.org · vendor advisory
Other references
- https://github.com/elementary/switchboard-plug-bluetooth/releases/tag/2.3.5 github.com
- https://github.com/elementary/switchboard-plug-bluetooth/commit/86500e645a907538abafe5225b67cc12c03e7645 github.com
Source: the record CVE-2021-21367 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse