7.8
HIGH CVSS 3.1
CVE-2024-36012
Bluetooth: msft: fix slab-use-after-free in msft_do_close()
Description

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: msft: fix slab-use-after-free in msft_do_close() Tying the msft->data lifetime to hdev by freeing it in hci_release_dev() to fix the following case: [use] msft_do_close() msft = hdev->msft_data; if (!msft) ...(1) <- passed. return; mutex_lock(&msft->filter_lock); ...(4) <- used after freed. [free] msft_unregister() msft = hdev->msft_data; hdev->msft_data = NULL; ...(2) kfree(msft); ...(3) <- msft is freed. ================================================================== BUG: KASAN: slab-use-after-free in __mutex_lock_common 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

INFO

Published Date :

May 23, 2024, 7:15 a.m.

Last Modified :

Jan. 6, 2025, 10:33 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2024-36012 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
This addresses a use-after-free vulnerability in the Linux kernel's Bluetooth subsystem.
  • Update the Linux kernel to a patched version.
  • Reboot the system after the update.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-36012 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-36012 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-36012 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-36012 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jan. 06, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE NIST CWE-416
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.12 up to (excluding) 6.1.91 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.31 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.8.10 *cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc7:*:*:*:*:*:*
    Changed Reference Type https://git.kernel.org/stable/c/10f9f426ac6e752c8d87bf4346930ba347aaabac No Types Assigned https://git.kernel.org/stable/c/10f9f426ac6e752c8d87bf4346930ba347aaabac Patch
    Changed Reference Type https://git.kernel.org/stable/c/10f9f426ac6e752c8d87bf4346930ba347aaabac No Types Assigned https://git.kernel.org/stable/c/10f9f426ac6e752c8d87bf4346930ba347aaabac Patch
    Changed Reference Type https://git.kernel.org/stable/c/4f1de02de07748da80a8178879bc7a1df37fdf56 No Types Assigned https://git.kernel.org/stable/c/4f1de02de07748da80a8178879bc7a1df37fdf56 Patch
    Changed Reference Type https://git.kernel.org/stable/c/4f1de02de07748da80a8178879bc7a1df37fdf56 No Types Assigned https://git.kernel.org/stable/c/4f1de02de07748da80a8178879bc7a1df37fdf56 Patch
    Changed Reference Type https://git.kernel.org/stable/c/a85a60e62355e3bf4802dead7938966824b23940 No Types Assigned https://git.kernel.org/stable/c/a85a60e62355e3bf4802dead7938966824b23940 Patch
    Changed Reference Type https://git.kernel.org/stable/c/a85a60e62355e3bf4802dead7938966824b23940 No Types Assigned https://git.kernel.org/stable/c/a85a60e62355e3bf4802dead7938966824b23940 Patch
    Changed Reference Type https://git.kernel.org/stable/c/e3880b531b68f98d3941d83f2f6dd11cf4fd6b76 No Types Assigned https://git.kernel.org/stable/c/e3880b531b68f98d3941d83f2f6dd11cf4fd6b76 Patch
    Changed Reference Type https://git.kernel.org/stable/c/e3880b531b68f98d3941d83f2f6dd11cf4fd6b76 No Types Assigned https://git.kernel.org/stable/c/e3880b531b68f98d3941d83f2f6dd11cf4fd6b76 Patch
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/10f9f426ac6e752c8d87bf4346930ba347aaabac
    Added Reference https://git.kernel.org/stable/c/4f1de02de07748da80a8178879bc7a1df37fdf56
    Added Reference https://git.kernel.org/stable/c/a85a60e62355e3bf4802dead7938966824b23940
    Added Reference https://git.kernel.org/stable/c/e3880b531b68f98d3941d83f2f6dd11cf4fd6b76
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 29, 2024

    Action Type Old Value New Value
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 23, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: Bluetooth: msft: fix slab-use-after-free in msft_do_close() Tying the msft->data lifetime to hdev by freeing it in hci_release_dev() to fix the following case: [use] msft_do_close() msft = hdev->msft_data; if (!msft) ...(1) <- passed. return; mutex_lock(&msft->filter_lock); ...(4) <- used after freed. [free] msft_unregister() msft = hdev->msft_data; hdev->msft_data = NULL; ...(2) kfree(msft); ...(3) <- msft is freed. ================================================================== BUG: KASAN: slab-use-after-free in __mutex_lock_common 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
    Added Reference kernel.org https://git.kernel.org/stable/c/e3880b531b68f98d3941d83f2f6dd11cf4fd6b76 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/a85a60e62355e3bf4802dead7938966824b23940 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/4f1de02de07748da80a8178879bc7a1df37fdf56 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/10f9f426ac6e752c8d87bf4346930ba347aaabac [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact