CVE-2024-36012CWE-416

CVE-2024-36012

High · published May 23, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
11.1
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00214 · 11.1th percentile
Weakness
CWE-416 · Use After Free
Published
2024-05-23T11:15Z
Affected products (10)
ProductVersionsFixed in
linux/linux_kernel≥ 5.12, < 6.1.916.1.91
linux/linux_kernel≥ 6.2, < 6.6.316.6.31
linux/linux_kernel≥ 6.7, < 6.8.106.8.10
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (8)
EPSS history
Timeline
  • 23 MAY 07:03Z
    Bluetooth: msft: fix slab-use-after-free in msft_do_close()
    cvelistv5