CVE-2024-50077
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
29/10/2024
Last modified:
03/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
Bluetooth: ISO: Fix multiple init when debugfs is disabled<br />
<br />
If bt_debugfs is not created successfully, which happens if either<br />
CONFIG_DEBUG_FS or CONFIG_DEBUG_FS_ALLOW_ALL is unset, then iso_init()<br />
returns early and does not set iso_inited to true. This means that a<br />
subsequent call to iso_init() will result in duplicate calls to<br />
proto_register(), bt_sock_register(), etc.<br />
<br />
With CONFIG_LIST_HARDENED and CONFIG_BUG_ON_DATA_CORRUPTION enabled, the<br />
duplicate call to proto_register() triggers this BUG():<br />
<br />
list_add double add: new=ffffffffc0b280d0, prev=ffffffffbab56250,<br />
next=ffffffffc0b280d0.<br />
------------[ cut here ]------------<br />
kernel BUG at lib/list_debug.c:35!<br />
Oops: invalid opcode: 0000 [#1] PREEMPT SMP PTI<br />
CPU: 2 PID: 887 Comm: bluetoothd Not tainted 6.10.11-1-ao-desktop #1<br />
RIP: 0010:__list_add_valid_or_report+0x9a/0xa0<br />
...<br />
__list_add_valid_or_report+0x9a/0xa0<br />
proto_register+0x2b5/0x340<br />
iso_init+0x23/0x150 [bluetooth]<br />
set_iso_socket_func+0x68/0x1b0 [bluetooth]<br />
kmem_cache_free+0x308/0x330<br />
hci_sock_sendmsg+0x990/0x9e0 [bluetooth]<br />
__sock_sendmsg+0x7b/0x80<br />
sock_write_iter+0x9a/0x110<br />
do_iter_readv_writev+0x11d/0x220<br />
vfs_writev+0x180/0x3e0<br />
do_writev+0xca/0x100<br />
...<br />
<br />
This change removes the early return. The check for iso_debugfs being<br />
NULL was unnecessary, it is always NULL when iso_inited is false.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.0 (including) | 6.1.114 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.58 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.11.5 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/8fb8e912afb4c47dec12ea9a5853e7a8db95816f
- https://git.kernel.org/stable/c/a9b7b535ba192c6b77e6c15a4c82d853163eab8c
- https://git.kernel.org/stable/c/adf1b179c2ff8073c24bf87e5a605fcc5a09798b
- https://git.kernel.org/stable/c/fa4b832c5a6ec35023a1b997cf658c436619c752
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html



