CVE-2024-58009CWE-476

CVE-2024-58009

Medium · published February 27, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
10.1
In the wild
Unconfirmed
What it is

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

Bluetooth: L2CAP: handle NULL sock pointer in l2cap_sock_alloc

A NULL sock pointer is passed into l2cap_sock_alloc() when it is called

from l2cap_sock_new_connection_cb() and the error handling paths should

also be aware of it.

Seemingly a more elegant solution would be to swap bt_sock_alloc() and

l2cap_chan_create() calls since they are not interdependent to that moment

but then l2cap_chan_create() adds the soon to be deallocated and still

dummy-initialized channel to the global list accessible by many L2CAP

paths. The channel would be removed from the list in short period of time

but be a bit more straight-forward here and just check for NULL instead of

changing the order of function calls.

Found by Linux Verification Center (linuxtesting.org) with SVACE static

analysis tool.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00206 · 10.1th percentile
Weakness
CWE-476 · NULL Pointer Dereference
Published
2025-02-27T08:15Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel≥ 5.4.287, < 5.4.2915.4.291
linux/linux_kernel≥ 5.10.231, < 5.10.2355.10.235
linux/linux_kernel≥ 5.15.174, < 5.15.1795.15.179
linux/linux_kernel≥ 6.1.120, < 6.1.1296.1.129
linux/linux_kernel≥ 6.6.66, < 6.6.786.6.78
linux/linux_kernel≥ 6.12.5, < 6.12.146.12.14
linux/linux_kernel≥ 6.13, < 6.13.36.13.3
References (11)
EPSS history
Timeline
  • 27 FEB 02:12Z
    Bluetooth: L2CAP: handle NULL sock pointer in l2cap_sock_alloc
    cvelistv5