<?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-03T19:06:09.100464+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-98643</id>
    <title>CVE-2026-98643 — bpf: Fix out-of-bounds read of rtt_min in sock_ops</title>
    <updated>2026-11-03T19:06:09.101951+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>bpf: Fix out-of-bounds read of rtt_min in sock_ops</p>
<p>A sockops prog reading skops-&gt;rtt_min never checks the sk type: on the
tcp_conn_request() path sock_ops-&gt;sk is a request_sock (non-full), and the
ctx rewrite casts it to a tcp_sock (full) and reads rtt_min past the end of
the request_sock, returning dirty adjacent memory.</p>
<p>SEC("sockops")
	int prog(struct bpf_sock_ops *skops)
	{
		switch (skops-&gt;op) {
		case BPF_SOCK_OPS_RWND_INIT:
			leak = skops-&gt;rtt_min;   /* reads the request_sock OOB */
		...
		}
	}</p>
<p>For instance one such read returned rtt_min=0xffff8881, the high half of a
leaked kernel pointer.</p>
<p>Guarding that cast is exactly what SOCK_OPS_GET_FIELD() does -- it checks
is_locked_tcp_sock and returns 0 when sock_ops-&gt;sk is not a locked full
socket. Every other tcp_sock field in sock_ops goes through it; rtt_min is
the only one open-coded, so it skips the check.</p>
<p>Read rtt_min through SOCK_OPS_GET_FIELD() too. rtt_min is a bit special:
it is a struct minmax and we only want the current min, so pass
rtt_min.s[0].v. That is equivalent to the old hand-computed offset</p>
<p>offsetof(struct tcp_sock, rtt_min) + sizeof_field(struct minmax_sample, t)</p>
<p>(s[0] sits at rtt_min + 0 and .v at + sizeof(.t), i.e. what minmax_get()
returns), so the loaded field is unchanged and only the full-sock guard is
added. The two BUILD_BUG_ON()s that protected the hand-computed offset
are no longer needed.</p>
<p>Before patch:</p>
<p>0: r1 = *…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-98643"/>
  </entry>
</feed>
