<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 02 Oct 2026 01:49:35 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-80819 — Bluetooth: RFCOMM: take rfcomm_mutex for the deferred setup accept</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-80819</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;Bluetooth: RFCOMM: take rfcomm_mutex for the deferred setup accept&lt;/p&gt;
&lt;p&gt;rfcomm_sock_recvmsg() completes a deferred setup by calling
rfcomm_dlc_accept() without holding any RFCOMM lock:&lt;/p&gt;
&lt;p&gt;if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &amp;amp;d-&amp;gt;flags)) {
		rfcomm_dlc_accept(d);
		return 0;
	}&lt;/p&gt;
&lt;p&gt;and rfcomm_dlc_accept() dereferences the session on its first line:&lt;/p&gt;
&lt;p&gt;struct sock *sk = d-&amp;gt;session-&amp;gt;sock-&amp;gt;sk;&lt;/p&gt;
&lt;p&gt;Every other path that touches d-&amp;gt;session runs under rfcomm_mutex:
rfcomm_dlc_open(), rfcomm_dlc_close(), rfcomm_dlc_exists(),
rfcomm_dlc_send_rpn(), and the RFCOMM thread through
rfcomm_process_sessions(). rfcomm_connect_ind() is even documented as
&amp;#34;called under rfcomm_lock()&amp;#34;. This call site is the only one that skips
it.&lt;/p&gt;
&lt;p&gt;The RFCOMM_DEFER_SETUP bit looks like it serialises the accept against
teardown, since __rfcomm_dlc_close() returns early when it wins the
test_and_clear. But rfcomm_recv_disc() forces the state first:&lt;/p&gt;
&lt;p&gt;d-&amp;gt;state = BT_CLOSED;
	__rfcomm_dlc_close(d, err);&lt;/p&gt;
&lt;p&gt;and the early return only covers BT_CONNECT, BT_CONFIG, BT_OPEN and
BT_CONNECT2. With the state already BT_CLOSED that switch does not
match, the bit is never consulted, and __rfcomm_dlc_close() falls
through to rfcomm_dlc_unlink(), which sets d-&amp;gt;session = NULL.&lt;/p&gt;
&lt;p&gt;So a remote DISC on a deferred dlc clears the session while leaving
RFCOMM_DEFER_SETUP set. The next recvmsg() then passes the
test_and_clear and dereferences a NULL session. No timing window i…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;Bluetooth: RFCOMM: take rfcomm_mutex for the deferred setup accept&lt;/p&gt;
&lt;p&gt;rfcomm_sock_recvmsg() completes a deferred setup by calling
rfcomm_dlc_accept() without holding any RFCOMM lock:&lt;/p&gt;
&lt;p&gt;if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &amp;amp;d-&amp;gt;flags)) {
		rfcomm_dlc_accept(d);
		return 0;
	}&lt;/p&gt;
&lt;p&gt;and rfcomm_dlc_accept() dereferences the session on its first line:&lt;/p&gt;
&lt;p&gt;struct sock *sk = d-&amp;gt;session-&amp;gt;sock-&amp;gt;sk;&lt;/p&gt;
&lt;p&gt;Every other path that touches d-&amp;gt;session runs under rfcomm_mutex:
rfcomm_dlc_open(), rfcomm_dlc_close(), rfcomm_dlc_exists(),
rfcomm_dlc_send_rpn(), and the RFCOMM thread through
rfcomm_process_sessions(). rfcomm_connect_ind() is even documented as
&amp;#34;called under rfcomm_lock()&amp;#34;. This call site is the only one that skips
it.&lt;/p&gt;
&lt;p&gt;The RFCOMM_DEFER_SETUP bit looks like it serialises the accept against
teardown, since __rfcomm_dlc_close() returns early when it wins the
test_and_clear. But rfcomm_recv_disc() forces the state first:&lt;/p&gt;
&lt;p&gt;d-&amp;gt;state = BT_CLOSED;
	__rfcomm_dlc_close(d, err);&lt;/p&gt;
&lt;p&gt;and the early return only covers BT_CONNECT, BT_CONFIG, BT_OPEN and
BT_CONNECT2. With the state already BT_CLOSED that switch does not
match, the bit is never consulted, and __rfcomm_dlc_close() falls
through to rfcomm_dlc_unlink(), which sets d-&amp;gt;session = NULL.&lt;/p&gt;
&lt;p&gt;So a remote DISC on a deferred dlc clears the session while leaving
RFCOMM_DEFER_SETUP set. The next recvmsg() then passes the
test_and_clear and dereferences a NULL session. No timing window i…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-80819</guid>
    </item>
  </channel>
</rss>
