Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2024-36012
HistoryMay 23, 2024 - 7:15 a.m.

CVE-2024-36012

2024-05-2307:15:08
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
51
linux kernel
cve-2024-36012
bluetooth
use-after-free vulnerability

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%

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

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.126.1.91
OR
linuxlinux_kernelRange6.2.06.6.31
OR
linuxlinux_kernelRange6.7.06.8.10
OR
linuxlinux_kernelRange6.9.0

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/bluetooth/hci_core.c",
      "net/bluetooth/msft.c",
      "net/bluetooth/msft.h"
    ],
    "versions": [
      {
        "version": "bf6a4e30ffbd",
        "lessThan": "e3880b531b68",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "bf6a4e30ffbd",
        "lessThan": "a85a60e62355",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "bf6a4e30ffbd",
        "lessThan": "4f1de02de077",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "bf6a4e30ffbd",
        "lessThan": "10f9f426ac6e",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/bluetooth/hci_core.c",
      "net/bluetooth/msft.c",
      "net/bluetooth/msft.h"
    ],
    "versions": [
      {
        "version": "5.12",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.12",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.91",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.31",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.10",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%