<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-11-02T13:42:37.619939+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-98455</id>
    <title>CVE-2026-98455 — Bluetooth: RFCOMM: fix NULL dereference of dlc-&gt;session in RFCOMM_CONNINFO</title>
    <updated>2026-11-02T13:42:37.621675+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>Bluetooth: RFCOMM: fix NULL dereference of dlc-&gt;session in RFCOMM_CONNINFO</p>
<p>The RFCOMM_CONNINFO getsockopt handler accepts a socket that is not
connected as long as deferred setup is enabled:</p>
<p>if (sk-&gt;sk_state != BT_CONNECTED &amp;&amp;
				!rfcomm_pi(sk)-&gt;dlc-&gt;defer_setup) {
		err = -ENOTCONN;
		break;
	}
	l2cap_sk = rfcomm_pi(sk)-&gt;dlc-&gt;session-&gt;sock-&gt;sk;</p>
<p>dlc-&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.</p>
<p>rfcomm_recv_disc() forces the dlc state before tearing it down:</p>
<p>d-&gt;state = BT_CLOSED;
	__rfcomm_dlc_close(d, err);</p>
<p>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-&gt;session = NULL, while
d-&gt;defer_setup stays 1.</p>
<p>A getsockopt(SOL_RFCOMM, RFCOMM_CONNINFO) on the accepted socket after
that point therefore skips the -ENOTCONN path -- sk-&gt;sk_state is
BT_CLOSED, but dlc-&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.</p>
<p>Reproduced on a KASAN kernel under QEMU with a BR/EDR peer emulated over
/dev/vhci: the peer b…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-98455"/>
  </entry>
</feed>
