In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: btbcm: Fix NULL deref in btbcmgetboard_name()
devmkstrdup() can return a NULL pointer on failure,but this returned value in btbcmgetboardname() is not checked. Add NULL check in btbcmgetboard_name(), to handle kernel NULL pointer dereference error.
[
{
"signature_type": "Line",
"id": "CVE-2024-57988-1d43885f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@74af8b9d0e79deefd2d43e14b84575839a849169",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/bluetooth/btbcm.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"233239911573757158734775866964206417809",
"332994136011820046310276256582949430760",
"261011636042490568448742803871296533753",
"109656831229665037822667165430374994672"
]
}
},
{
"signature_type": "Function",
"id": "CVE-2024-57988-3bba72ab",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@74af8b9d0e79deefd2d43e14b84575839a849169",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "btbcm_get_board_name",
"file": "drivers/bluetooth/btbcm.c"
},
"digest": {
"function_hash": "149316292477430427443449521335583528161",
"length": 374.0
}
},
{
"signature_type": "Line",
"id": "CVE-2024-57988-47e52212",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b88655bc6593c6a7fdc1248b212d17e581c4334e",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/bluetooth/btbcm.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"233239911573757158734775866964206417809",
"332994136011820046310276256582949430760",
"261011636042490568448742803871296533753",
"109656831229665037822667165430374994672"
]
}
},
{
"signature_type": "Line",
"id": "CVE-2024-57988-5bb714fb",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@df2f2d9199e61819cca5da0121dfa4d4cb57000f",
"signature_version": "v1",
"deprecated": false,
"target": {
"file": "drivers/bluetooth/btbcm.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"233239911573757158734775866964206417809",
"332994136011820046310276256582949430760",
"261011636042490568448742803871296533753",
"109656831229665037822667165430374994672"
]
}
},
{
"signature_type": "Function",
"id": "CVE-2024-57988-973bdf09",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b88655bc6593c6a7fdc1248b212d17e581c4334e",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "btbcm_get_board_name",
"file": "drivers/bluetooth/btbcm.c"
},
"digest": {
"function_hash": "149316292477430427443449521335583528161",
"length": 374.0
}
},
{
"signature_type": "Function",
"id": "CVE-2024-57988-bb4ad930",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@df2f2d9199e61819cca5da0121dfa4d4cb57000f",
"signature_version": "v1",
"deprecated": false,
"target": {
"function": "btbcm_get_board_name",
"file": "drivers/bluetooth/btbcm.c"
},
"digest": {
"function_hash": "149316292477430427443449521335583528161",
"length": 374.0
}
}
]