CVE-2024-36012

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-36012
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-36012.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-36012
Downstream
Related
Published
2024-05-23T07:03:06Z
Modified
2025-10-14T16:45:03.305002Z
Summary
Bluetooth: msft: fix slab-use-after-free in msft_do_close()
Details

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: msft: fix slab-use-after-free in msftdoclose()

Tying the msft->data lifetime to hdev by freeing it in hcireleasedev() to fix the following case:

[use] msftdoclose() msft = hdev->msftdata; if (!msft) ...(1) <- passed. return; mutexlock(&msft->filter_lock); ...(4) <- used after freed.

[free] msftunregister() msft = hdev->msftdata; hdev->msft_data = NULL; ...(2) kfree(msft); ...(3) <- msft is freed.

================================================================== BUG: KASAN: slab-use-after-free in _mutexlockcommon kernel/locking/mutex.c:587 [inline] BUG: KASAN: slab-use-after-free in _mutex_lock+0x8f/0xc30 kernel/locking/mutex.c:752 Read of size 8 at addr ffff888106cbbca8 by task kworker/u5:2/309

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bf6a4e30ffbd9e9ef8934582feb937f6532f8b68
Fixed
e3880b531b68f98d3941d83f2f6dd11cf4fd6b76
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bf6a4e30ffbd9e9ef8934582feb937f6532f8b68
Fixed
a85a60e62355e3bf4802dead7938966824b23940
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bf6a4e30ffbd9e9ef8934582feb937f6532f8b68
Fixed
4f1de02de07748da80a8178879bc7a1df37fdf56
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bf6a4e30ffbd9e9ef8934582feb937f6532f8b68
Fixed
10f9f426ac6e752c8d87bf4346930ba347aaabac

Affected versions

v5.*

v5.11
v5.11-rc1
v5.11-rc2
v5.11-rc3
v5.11-rc4
v5.11-rc5
v5.11-rc6
v5.11-rc7
v5.12
v5.12-rc1
v5.12-rc1-dontuse
v5.12-rc2
v5.12-rc3
v5.12-rc4
v5.12-rc5
v5.12-rc6
v5.12-rc7
v5.12-rc8
v5.13
v5.13-rc1
v5.13-rc2
v5.13-rc3
v5.13-rc4
v5.13-rc5
v5.13-rc6
v5.13-rc7
v5.14
v5.14-rc1
v5.14-rc2
v5.14-rc3
v5.14-rc4
v5.14-rc5
v5.14-rc6
v5.14-rc7
v5.15
v5.15-rc1
v5.15-rc2
v5.15-rc3
v5.15-rc4
v5.15-rc5
v5.15-rc6
v5.15-rc7
v5.16
v5.16-rc1
v5.16-rc2
v5.16-rc3
v5.16-rc4
v5.16-rc5
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.1
v6.1.10
v6.1.11
v6.1.12
v6.1.13
v6.1.14
v6.1.15
v6.1.16
v6.1.17
v6.1.18
v6.1.19
v6.1.2
v6.1.20
v6.1.21
v6.1.22
v6.1.23
v6.1.24
v6.1.25
v6.1.26
v6.1.27
v6.1.28
v6.1.29
v6.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
v6.6.9
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.8.1
v6.8.2
v6.8.3
v6.8.4
v6.8.5
v6.8.6
v6.8.7
v6.8.8
v6.8.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6

Database specific

{
    "vanir_signatures": [
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10f9f426ac6e752c8d87bf4346930ba347aaabac",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "58201810766092712687339127725190941866",
                    "52103917349944103567396309943395377420",
                    "159893875028101944666443484688761424665",
                    "325074168763523613496819355005067471070",
                    "43838378994636600387991749598279123319",
                    "135085599486357976193159128931183026237",
                    "121464705248442300091444783300236795221",
                    "145481378011210612917231902649510485254"
                ]
            },
            "id": "CVE-2024-36012-265aa326",
            "target": {
                "file": "net/bluetooth/msft.h"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f1de02de07748da80a8178879bc7a1df37fdf56",
            "signature_type": "Function",
            "digest": {
                "function_hash": "135912600833801198942355053264361396103",
                "length": 862.0
            },
            "id": "CVE-2024-36012-2884abe5",
            "target": {
                "file": "net/bluetooth/hci_core.c",
                "function": "hci_release_dev"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a85a60e62355e3bf4802dead7938966824b23940",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "58201810766092712687339127725190941866",
                    "52103917349944103567396309943395377420",
                    "159893875028101944666443484688761424665",
                    "325074168763523613496819355005067471070",
                    "43838378994636600387991749598279123319",
                    "135085599486357976193159128931183026237",
                    "121464705248442300091444783300236795221",
                    "145481378011210612917231902649510485254"
                ]
            },
            "id": "CVE-2024-36012-2f856f85",
            "target": {
                "file": "net/bluetooth/msft.h"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f1de02de07748da80a8178879bc7a1df37fdf56",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "58201810766092712687339127725190941866",
                    "52103917349944103567396309943395377420",
                    "159893875028101944666443484688761424665",
                    "325074168763523613496819355005067471070",
                    "43838378994636600387991749598279123319",
                    "135085599486357976193159128931183026237",
                    "121464705248442300091444783300236795221",
                    "145481378011210612917231902649510485254"
                ]
            },
            "id": "CVE-2024-36012-3257f7e3",
            "target": {
                "file": "net/bluetooth/msft.h"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e3880b531b68f98d3941d83f2f6dd11cf4fd6b76",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "58201810766092712687339127725190941866",
                    "52103917349944103567396309943395377420",
                    "159893875028101944666443484688761424665",
                    "325074168763523613496819355005067471070",
                    "43838378994636600387991749598279123319",
                    "135085599486357976193159128931183026237",
                    "121464705248442300091444783300236795221",
                    "145481378011210612917231902649510485254"
                ]
            },
            "id": "CVE-2024-36012-3b39f8ec",
            "target": {
                "file": "net/bluetooth/msft.h"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a85a60e62355e3bf4802dead7938966824b23940",
            "signature_type": "Function",
            "digest": {
                "function_hash": "135912600833801198942355053264361396103",
                "length": 862.0
            },
            "id": "CVE-2024-36012-5559857c",
            "target": {
                "file": "net/bluetooth/hci_core.c",
                "function": "hci_release_dev"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e3880b531b68f98d3941d83f2f6dd11cf4fd6b76",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "159477571826385369233176189697694130705",
                    "333496844789084007782931322231623261405",
                    "89575239541949298068811464250348693423",
                    "224474311955867190236523064269106145390"
                ]
            },
            "id": "CVE-2024-36012-6258e78d",
            "target": {
                "file": "net/bluetooth/msft.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f1de02de07748da80a8178879bc7a1df37fdf56",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "203908432295865204035122287181287257224",
                    "12235198904194424539696263679649864427",
                    "89575239541949298068811464250348693423",
                    "224474311955867190236523064269106145390"
                ]
            },
            "id": "CVE-2024-36012-76f85918",
            "target": {
                "file": "net/bluetooth/msft.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e3880b531b68f98d3941d83f2f6dd11cf4fd6b76",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "179942895225224323946180564995499168927",
                    "176077515940290233737758140202816886651",
                    "2308314712876963186446355187900444927",
                    "50149002769606144210205140767319134792",
                    "309227545352447836501596266066334131567",
                    "312808366268361158156237011164815619881",
                    "134782048966762469611624733354100618815",
                    "250890097541430457178371185644564654212"
                ]
            },
            "id": "CVE-2024-36012-7f2c7fdf",
            "target": {
                "file": "net/bluetooth/hci_core.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e3880b531b68f98d3941d83f2f6dd11cf4fd6b76",
            "signature_type": "Function",
            "digest": {
                "function_hash": "326971543745352634812335942124994130996",
                "length": 819.0
            },
            "id": "CVE-2024-36012-89eba175",
            "target": {
                "file": "net/bluetooth/hci_core.c",
                "function": "hci_release_dev"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a85a60e62355e3bf4802dead7938966824b23940",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "179942895225224323946180564995499168927",
                    "176077515940290233737758140202816886651",
                    "2308314712876963186446355187900444927",
                    "50149002769606144210205140767319134792",
                    "309227545352447836501596266066334131567",
                    "312808366268361158156237011164815619881",
                    "55336451688995268822882260656670784664",
                    "109513351200334452222026534095539331706"
                ]
            },
            "id": "CVE-2024-36012-8b415361",
            "target": {
                "file": "net/bluetooth/hci_core.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10f9f426ac6e752c8d87bf4346930ba347aaabac",
            "signature_type": "Function",
            "digest": {
                "function_hash": "135912600833801198942355053264361396103",
                "length": 862.0
            },
            "id": "CVE-2024-36012-8cfa2c77",
            "target": {
                "file": "net/bluetooth/hci_core.c",
                "function": "hci_release_dev"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a85a60e62355e3bf4802dead7938966824b23940",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "203908432295865204035122287181287257224",
                    "12235198904194424539696263679649864427",
                    "89575239541949298068811464250348693423",
                    "224474311955867190236523064269106145390"
                ]
            },
            "id": "CVE-2024-36012-9485bb3d",
            "target": {
                "file": "net/bluetooth/msft.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e3880b531b68f98d3941d83f2f6dd11cf4fd6b76",
            "signature_type": "Function",
            "digest": {
                "function_hash": "299266584003389354652759387820720297048",
                "length": 873.0
            },
            "id": "CVE-2024-36012-968fb12e",
            "target": {
                "file": "net/bluetooth/hci_core.c",
                "function": "hci_unregister_dev"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10f9f426ac6e752c8d87bf4346930ba347aaabac",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "203908432295865204035122287181287257224",
                    "12235198904194424539696263679649864427",
                    "89575239541949298068811464250348693423",
                    "224474311955867190236523064269106145390"
                ]
            },
            "id": "CVE-2024-36012-99a12940",
            "target": {
                "file": "net/bluetooth/msft.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a85a60e62355e3bf4802dead7938966824b23940",
            "signature_type": "Function",
            "digest": {
                "function_hash": "299266584003389354652759387820720297048",
                "length": 873.0
            },
            "id": "CVE-2024-36012-a1d79e85",
            "target": {
                "file": "net/bluetooth/hci_core.c",
                "function": "hci_unregister_dev"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10f9f426ac6e752c8d87bf4346930ba347aaabac",
            "signature_type": "Function",
            "digest": {
                "function_hash": "299266584003389354652759387820720297048",
                "length": 873.0
            },
            "id": "CVE-2024-36012-a8e7c4d9",
            "target": {
                "file": "net/bluetooth/hci_core.c",
                "function": "hci_unregister_dev"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f1de02de07748da80a8178879bc7a1df37fdf56",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "179942895225224323946180564995499168927",
                    "176077515940290233737758140202816886651",
                    "2308314712876963186446355187900444927",
                    "50149002769606144210205140767319134792",
                    "309227545352447836501596266066334131567",
                    "312808366268361158156237011164815619881",
                    "55336451688995268822882260656670784664",
                    "109513351200334452222026534095539331706"
                ]
            },
            "id": "CVE-2024-36012-aba4af76",
            "target": {
                "file": "net/bluetooth/hci_core.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@10f9f426ac6e752c8d87bf4346930ba347aaabac",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "179942895225224323946180564995499168927",
                    "176077515940290233737758140202816886651",
                    "2308314712876963186446355187900444927",
                    "50149002769606144210205140767319134792",
                    "309227545352447836501596266066334131567",
                    "312808366268361158156237011164815619881",
                    "55336451688995268822882260656670784664",
                    "164914815806386211835928356898529787956"
                ]
            },
            "id": "CVE-2024-36012-ac4ea4ef",
            "target": {
                "file": "net/bluetooth/hci_core.c"
            },
            "deprecated": false,
            "signature_version": "v1"
        },
        {
            "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4f1de02de07748da80a8178879bc7a1df37fdf56",
            "signature_type": "Function",
            "digest": {
                "function_hash": "299266584003389354652759387820720297048",
                "length": 873.0
            },
            "id": "CVE-2024-36012-cb8307f3",
            "target": {
                "file": "net/bluetooth/hci_core.c",
                "function": "hci_unregister_dev"
            },
            "deprecated": false,
            "signature_version": "v1"
        }
    ]
}

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.12.0
Fixed
6.1.91
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.31
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.8.10