<?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>Tue, 03 Nov 2026 05:31:14 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-98643 — bpf: Fix out-of-bounds read of rtt_min in sock_ops</title>
      <link>https://db.gcve.eu/vuln/cve-2026-98643</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;bpf: Fix out-of-bounds read of rtt_min in sock_ops&lt;/p&gt;
&lt;p&gt;A sockops prog reading skops-&amp;gt;rtt_min never checks the sk type: on the
tcp_conn_request() path sock_ops-&amp;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.&lt;/p&gt;
&lt;p&gt;SEC(&amp;#34;sockops&amp;#34;)
	int prog(struct bpf_sock_ops *skops)
	{
		switch (skops-&amp;gt;op) {
		case BPF_SOCK_OPS_RWND_INIT:
			leak = skops-&amp;gt;rtt_min;   /* reads the request_sock OOB */
		...
		}
	}&lt;/p&gt;
&lt;p&gt;For instance one such read returned rtt_min=0xffff8881, the high half of a
leaked kernel pointer.&lt;/p&gt;
&lt;p&gt;Guarding that cast is exactly what SOCK_OPS_GET_FIELD() does -- it checks
is_locked_tcp_sock and returns 0 when sock_ops-&amp;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.&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;offsetof(struct tcp_sock, rtt_min) + sizeof_field(struct minmax_sample, t)&lt;/p&gt;
&lt;p&gt;(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.&lt;/p&gt;
&lt;p&gt;Before patch:&lt;/p&gt;
&lt;p&gt;0: r1 = *…&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;bpf: Fix out-of-bounds read of rtt_min in sock_ops&lt;/p&gt;
&lt;p&gt;A sockops prog reading skops-&amp;gt;rtt_min never checks the sk type: on the
tcp_conn_request() path sock_ops-&amp;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.&lt;/p&gt;
&lt;p&gt;SEC(&amp;#34;sockops&amp;#34;)
	int prog(struct bpf_sock_ops *skops)
	{
		switch (skops-&amp;gt;op) {
		case BPF_SOCK_OPS_RWND_INIT:
			leak = skops-&amp;gt;rtt_min;   /* reads the request_sock OOB */
		...
		}
	}&lt;/p&gt;
&lt;p&gt;For instance one such read returned rtt_min=0xffff8881, the high half of a
leaked kernel pointer.&lt;/p&gt;
&lt;p&gt;Guarding that cast is exactly what SOCK_OPS_GET_FIELD() does -- it checks
is_locked_tcp_sock and returns 0 when sock_ops-&amp;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.&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;offsetof(struct tcp_sock, rtt_min) + sizeof_field(struct minmax_sample, t)&lt;/p&gt;
&lt;p&gt;(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.&lt;/p&gt;
&lt;p&gt;Before patch:&lt;/p&gt;
&lt;p&gt;0: r1 = *…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-98643</guid>
    </item>
  </channel>
</rss>
