CVE-2026-53256: Bluetooth: RFCOMM: hold listener socket in rfcomm_connect_ind()
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: RFCOMM: hold listener socket in rfcommconnectind()
rfcommgetsockbychannel() scans rfcommsklist under the list lock, but returns the selected listener after dropping that lock without taking a reference. rfcommconnectind() then locks the listener, queues a child socket on it, and may notify it after unlocking it.
The buggy scenario involves two paths, with each column showing the order within that path:
rfcommconnectind(): listener close: 1. Find parent in 1. close() enters rfcommgetsockbychannel() rfcommsockrelease(). 2. Drop rfcommsklist.lock 2. rfcommsockshutdown() without pinning parent. closes the listener. 3. Call locksock(parent) and 3. rfcommsockkill() btacceptenqueue(parent, unlinks and puts parent. sk, true). 4. Read parent flags and may 4. parent can be freed. call skstatechange().
If close wins the race, parent can be freed before rfcommconnectind() reaches locksock(), btacceptenqueue(), or the deferred-setup callback.
Take a reference on the listener before leaving rfcommsklist.lock. After locksock() succeeds, recheck that it is still in BTLISTEN before queueing a child, cache the deferred-setup bit while the parent is locked, and drop the reference after the last parent use.
KASAN reported a slab-use-after-free in locksocknested() from rfcommconnectind(), with the freeing stack going through rfcommsockkill() and rfcommsockrelease().
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-53256?
CVE-2026-53256 has a risk score of 53, indicating a moderate level of severity.
What systems are affected by CVE-2026-53256?
CVE-2026-53256 affects the Bluetooth RFCOMM implementation within the Linux kernel.
How do I fix CVE-2026-53256?
To fix CVE-2026-53256, users should apply the latest patches provided for the Linux kernel.
What type of vulnerability is CVE-2026-53256?
CVE-2026-53256 is categorized as a Use After Free vulnerability.
What are the potential impacts of CVE-2026-53256?
Exploitation of CVE-2026-53256 could lead to unauthorized access or manipulation of Bluetooth connections.