PT-2026-163419
CVE-2026-139378
·
Publicado
2026-11-30
·
Atualizado
2026-11-30
Descrição por
Pontuação
N/A
Não disponívelNão há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci sync: Serialize devcoredump reset during device open
An ACTIVE devcoredump's buffer cursors must remain valid from the
packet handler's state check through its copy. hci devcd rx() holds
hdev->lock across that interval, and hci devcd reset() requires the
same lock. However, hci dev open sync() invokes reset without taking
it.
A registered VHCI controller can collect a dump through its debugfs
interface while the controller is down. If a successful open overlaps
with handling a nonempty dump packet, reset can run after the receiver's
ACTIVE check and before its copy:
hci devcd rx() hci dev open sync()
dequeue nonempty skb
hci dev lock(hdev)
handler observes ACTIVE
hdev->open(hdev) succeeds
hci devcd reset(hdev)
dump.tail = NULL
dump.state = IDLE
hci devcd copy()
compare against old dump.end
memcpy(NULL, ..., skb->len)
hci dev unlock(hdev)
Reset leaves dump.end pointing at the old buffer and purges only queued
packets, so it cannot discard the skb already dequeued by the receiver.
The bounds check can pass with a NULL tail, leading to a nonempty copy
to address zero. KASAN reported a 24-byte NULL write in hci devcd rx().
Take hdev->lock around the open-time reset. The receiver then finishes
its state check and copy using valid cursors before reset, or observes
IDLE after reset and skips the copy.
KASAN report as below:
BUG: KASAN: null-ptr-deref in hci devcd rx+0x5d5/0x1a80
Write of size 24 at addr 0000000000000000 by task kworker/u17:0/496
CPU: 0 UID: 0 PID: 496 Comm: kworker/u17:0 Not tainted7.2.0-rc6-pmb-bt-functional-v1+ #1 PREEMPT(lazy) Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: hci0 hci devcd rx Call Trace: dump stack lvl+0x93/0xd0 kasan report+0xe0/0x110 ? hci devcd rx+0x5d5/0x1a80 kasan check range+0x105/0x1b0 asan memcpy+0x3c/0x60 hci devcd rx+0x5d5/0x1a80 ? srso alias return thunk+0x5/0xfbef5 ? pfx hci devcd rx+0x10/0x10 ? srso alias return thunk+0x5/0xfbef5 ? lock release+0xc8/0x280 ? srso alias return thunk+0x5/0xfbef5 process one work+0x908/0x19c0 ? pfx process one work+0x10/0x10 ? srso alias return thunk+0x5/0xfbef5 ? lock is held type+0x8f/0x100 ? srso alias return thunk+0x5/0xfbef5 worker thread+0x65c/0xe40 ? pfx worker thread+0x10/0x10 kthread+0x34f/0x460 ? srso alias return thunk+0x5/0xfbef5 ? pfx kthread+0x10/0x10 ret from fork+0x659/0x940 ? pfx ret from fork+0x10/0x10 ? srso alias return thunk+0x5/0xfbef5 ? switch to+0x74f/0xf80 ? pfx kthread+0x10/0x10 ret from fork asm+0x1a/0x30
Disabling lock debugging due to kernel taint
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾