7.5

CVE-2026-63980

net/handshake: Use spin_lock_bh for hn_lock

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

net/handshake: Use spin_lock_bh for hn_lock

nvmet_tcp_state_change(), a socket callback that runs in BH context,
can reach handshake_req_cancel() via nvmet_tcp_schedule_release_queue()
and tls_handshake_cancel().  handshake_req_cancel() acquires
hn->hn_lock with plain spin_lock().  If a process-context thread on
the same CPU holds hn->hn_lock when a softirq invokes the cancel path,
the lock attempt deadlocks.  This is the only caller that invokes
tls_handshake_cancel() from BH context; every other consumer calls it
from process context.

Deferring the cancel to process context in the NVMe target is not
straightforward: nvmet_tcp_schedule_release_queue() must call
tls_handshake_cancel() atomically with its state transition to
DISCONNECTING.  If the cancel were deferred, the handshake completion
callback could fire in the window before the cancel runs, observe the
unexpected state, and return without dropping its kref on the queue.
Reworking that interlock is considerably more invasive than hardening
the handshake lock.  Convert all hn->hn_lock acquisitions from
spin_lock/spin_unlock to spin_lock_bh/spin_unlock_bh so the lock is
never taken with softirqs enabled.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
Produkt Linux
Default Statusunaffected
Version 675b453e024154dd547921c6e6d5b58747ba7e0e
Version < 06ab5978866fc2221b910347fd3e510ca8e7b1a4
Status affected
Version 675b453e024154dd547921c6e6d5b58747ba7e0e
Version < 0866569fc36a56f568acd3900d354e3505932e09
Status affected
Version 675b453e024154dd547921c6e6d5b58747ba7e0e
Version < 91898de9501a047ba67c6b864dcd403e00bdfbf5
Status affected
Version 675b453e024154dd547921c6e6d5b58747ba7e0e
Version < cc993e0927ec8bd98ea33377ada03295fcda0f24
Status affected
HerstellerLinux
Produkt Linux
Default Statusaffected
Version 6.7
Status affected
Version 0
Version < 6.7
Status unaffected
Version <= 6.12.*
Version 6.12.93
Status unaffected
Version <= 6.18.*
Version 6.18.35
Status unaffected
Version <= 7.0.*
Version 7.0.12
Status unaffected
Version <= *
Version 7.1
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.44% 0.36
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
416baaa9-dc9f-4396-8d5f-8c081fb06d67 7.5 3.9 3.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/06ab5978866fc2221b910347fd3e510ca8e7b1a4
https://git.kernel.org/stable/c/0866569fc36a56f568acd3900d354e3505932e09
https://git.kernel.org/stable/c/91898de9501a047ba67c6b864dcd403e00bdfbf5
https://git.kernel.org/stable/c/cc993e0927ec8bd98ea33377ada03295fcda0f24