<?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://db.gcve.eu</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>Mon, 02 Nov 2026 13:42:36 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-98455 — Bluetooth: RFCOMM: fix NULL dereference of dlc-&gt;session in RFCOMM_CONNINFO</title>
      <link>https://db.gcve.eu/vuln/cve-2026-98455</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: fix NULL dereference of dlc-&amp;gt;session in RFCOMM_CONNINFO&lt;/p&gt;
&lt;p&gt;The RFCOMM_CONNINFO getsockopt handler accepts a socket that is not
connected as long as deferred setup is enabled:&lt;/p&gt;
&lt;p&gt;if (sk-&amp;gt;sk_state != BT_CONNECTED &amp;amp;&amp;amp;
				!rfcomm_pi(sk)-&amp;gt;dlc-&amp;gt;defer_setup) {
		err = -ENOTCONN;
		break;
	}
	l2cap_sk = rfcomm_pi(sk)-&amp;gt;dlc-&amp;gt;session-&amp;gt;sock-&amp;gt;sk;&lt;/p&gt;
&lt;p&gt;dlc-&amp;gt;defer_setup is set in rfcomm_sock_init() when rfcomm_connect_ind()
creates a child socket for an incoming connection on a listening socket
that has BT_DEFER_SETUP enabled. It is never cleared afterwards. The
session, however, can go away underneath it.&lt;/p&gt;
&lt;p&gt;rfcomm_recv_disc() forces the dlc state before tearing it down:&lt;/p&gt;
&lt;p&gt;d-&amp;gt;state = BT_CLOSED;
	__rfcomm_dlc_close(d, err);&lt;/p&gt;
&lt;p&gt;The RFCOMM_DEFER_SETUP early return in __rfcomm_dlc_close() only covers
BT_CONNECT, BT_CONFIG, BT_OPEN and BT_CONNECT2, so with the state
already BT_CLOSED that switch does not match and the function falls
through to rfcomm_dlc_unlink(), which sets d-&amp;gt;session = NULL, while
d-&amp;gt;defer_setup stays 1.&lt;/p&gt;
&lt;p&gt;A getsockopt(SOL_RFCOMM, RFCOMM_CONNINFO) on the accepted socket after
that point therefore skips the -ENOTCONN path -- sk-&amp;gt;sk_state is
BT_CLOSED, but dlc-&amp;gt;defer_setup is still set -- and dereferences the
NULL session. No race is needed: once the DISC has been processed, the
dereference is unconditional.&lt;/p&gt;
&lt;p&gt;Reproduced on a KASAN kernel under QEMU with a BR/EDR peer emulated over
/dev/vhci: the peer b…&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: fix NULL dereference of dlc-&amp;gt;session in RFCOMM_CONNINFO&lt;/p&gt;
&lt;p&gt;The RFCOMM_CONNINFO getsockopt handler accepts a socket that is not
connected as long as deferred setup is enabled:&lt;/p&gt;
&lt;p&gt;if (sk-&amp;gt;sk_state != BT_CONNECTED &amp;amp;&amp;amp;
				!rfcomm_pi(sk)-&amp;gt;dlc-&amp;gt;defer_setup) {
		err = -ENOTCONN;
		break;
	}
	l2cap_sk = rfcomm_pi(sk)-&amp;gt;dlc-&amp;gt;session-&amp;gt;sock-&amp;gt;sk;&lt;/p&gt;
&lt;p&gt;dlc-&amp;gt;defer_setup is set in rfcomm_sock_init() when rfcomm_connect_ind()
creates a child socket for an incoming connection on a listening socket
that has BT_DEFER_SETUP enabled. It is never cleared afterwards. The
session, however, can go away underneath it.&lt;/p&gt;
&lt;p&gt;rfcomm_recv_disc() forces the dlc state before tearing it down:&lt;/p&gt;
&lt;p&gt;d-&amp;gt;state = BT_CLOSED;
	__rfcomm_dlc_close(d, err);&lt;/p&gt;
&lt;p&gt;The RFCOMM_DEFER_SETUP early return in __rfcomm_dlc_close() only covers
BT_CONNECT, BT_CONFIG, BT_OPEN and BT_CONNECT2, so with the state
already BT_CLOSED that switch does not match and the function falls
through to rfcomm_dlc_unlink(), which sets d-&amp;gt;session = NULL, while
d-&amp;gt;defer_setup stays 1.&lt;/p&gt;
&lt;p&gt;A getsockopt(SOL_RFCOMM, RFCOMM_CONNINFO) on the accepted socket after
that point therefore skips the -ENOTCONN path -- sk-&amp;gt;sk_state is
BT_CLOSED, but dlc-&amp;gt;defer_setup is still set -- and dereferences the
NULL session. No race is needed: once the DISC has been processed, the
dereference is unconditional.&lt;/p&gt;
&lt;p&gt;Reproduced on a KASAN kernel under QEMU with a BR/EDR peer emulated over
/dev/vhci: the peer b…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-98455</guid>
    </item>
  </channel>
</rss>
