bluetoothd from bluez incorrectly saves adapters' Discoverable status when a device is powered down, and restores it when powered up. If a device is powered down while discoverable, it will be discoverable when powered on again. This could lead to inadvertent exposure of the bluetooth stack to physically nearby attackers.
[
{
"digest": {
"length": 1061.0,
"function_hash": "172027338237442028981457552073053210895"
},
"target": {
"file": "src/adapter.c",
"function": "settings_changed"
},
"source": "https://github.com/bluez/bluez/commit/b497b5942a8beb8f89ca1c359c54ad67ec843055",
"id": "CVE-2021-3658-0c766298",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"digest": {
"length": 658.0,
"function_hash": "199595814707437147550770859530159079118"
},
"target": {
"file": "src/adapter.c",
"function": "discovery_stop"
},
"source": "https://github.com/bluez/bluez/commit/b497b5942a8beb8f89ca1c359c54ad67ec843055",
"id": "CVE-2021-3658-1b478c07",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"digest": {
"length": 884.0,
"function_hash": "57237209113128885327700725533408695124"
},
"target": {
"file": "src/adapter.c",
"function": "adapter_stop"
},
"source": "https://github.com/bluez/bluez/commit/b497b5942a8beb8f89ca1c359c54ad67ec843055",
"id": "CVE-2021-3658-255cac33",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"digest": {
"length": 798.0,
"function_hash": "215979409219665248096667193507816966873"
},
"target": {
"file": "src/adapter.c",
"function": "update_discovery_filter"
},
"source": "https://github.com/bluez/bluez/commit/b497b5942a8beb8f89ca1c359c54ad67ec843055",
"id": "CVE-2021-3658-297e66dd",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"digest": {
"line_hashes": [
"104963158307056949970478967016227532226",
"8317727962398119407694419342329404763",
"175054941858700326123829779280039261289",
"251423948320023549285677037730184888090",
"12383206230189842888959702628075866467",
"20390998104180392456583877290186598934",
"293449557786167649077905277248810166294",
"279746179832303866084162767381354546838",
"6132234258970871568308376810271159734",
"125370935030374927247098034432961599817",
"93995179838233683689132522363768980786",
"143542901489466510333381450696622781082",
"321803935910930282280658943519637646925",
"182699486257270206849675125404156334454",
"74093005512484253079730087572995644321",
"29381542872701219824715949462673746146",
"12382800406218439269835812647535154854",
"120146882866845834554881232910048718501",
"318224308502749218959302652079401459729",
"170924521707944439506502293211221553803",
"106877442399903015343127233090525467813",
"73553654635103188591430240571473489102",
"191387600899533796202078086118715612356",
"286395407552482058087899055423815776317",
"298862074986819470553649304418046728791",
"96002444711225654149319199652217768750",
"327020276478737271472315511011154976805"
],
"threshold": 0.9
},
"target": {
"file": "src/adapter.c"
},
"source": "https://github.com/bluez/bluez/commit/b497b5942a8beb8f89ca1c359c54ad67ec843055",
"id": "CVE-2021-3658-7a00089e",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
}
]