<?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>Mon, 28 Sep 2026 16:33:51 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50838 — net: stream: purge sk_error_queue in sk_stream_kill_queues()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-50838</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;net: stream: purge sk_error_queue in sk_stream_kill_queues()&lt;/p&gt;
&lt;p&gt;Changheon Lee reported TCP socket leaks, with a nice repro.&lt;/p&gt;
&lt;p&gt;It seems we leak TCP sockets with the following sequence:&lt;/p&gt;
&lt;p&gt;1) SOF_TIMESTAMPING_TX_ACK is enabled on the socket.&lt;/p&gt;
&lt;p&gt;Each ACK will cook an skb put in error queue, from __skb_tstamp_tx().
   __skb_tstamp_tx() is using skb_clone(), unless
   SOF_TIMESTAMPING_OPT_TSONLY was also requested.&lt;/p&gt;
&lt;p&gt;2) If the application is also using MSG_ZEROCOPY, then we put in the
   error queue cloned skbs that had a struct ubuf_info attached to them.&lt;/p&gt;
&lt;p&gt;Whenever an struct ubuf_info is allocated, sock_zerocopy_alloc()
   does a sock_hold().&lt;/p&gt;
&lt;p&gt;As long as the cloned skbs are still in sk_error_queue,
   socket refcount is kept elevated.&lt;/p&gt;
&lt;p&gt;3) Application closes the socket, while error queue is not empty.&lt;/p&gt;
&lt;p&gt;Since tcp_close() no longer purges the socket error queue,
we might end up with a TCP socket with at least one skb in
error queue keeping the socket alive forever.&lt;/p&gt;
&lt;p&gt;This bug can be (ab)used to consume all kernel memory
and freeze the host.&lt;/p&gt;
&lt;p&gt;We need to purge the error queue, with proper synchronization
against concurrent writers.&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;net: stream: purge sk_error_queue in sk_stream_kill_queues()&lt;/p&gt;
&lt;p&gt;Changheon Lee reported TCP socket leaks, with a nice repro.&lt;/p&gt;
&lt;p&gt;It seems we leak TCP sockets with the following sequence:&lt;/p&gt;
&lt;p&gt;1) SOF_TIMESTAMPING_TX_ACK is enabled on the socket.&lt;/p&gt;
&lt;p&gt;Each ACK will cook an skb put in error queue, from __skb_tstamp_tx().
   __skb_tstamp_tx() is using skb_clone(), unless
   SOF_TIMESTAMPING_OPT_TSONLY was also requested.&lt;/p&gt;
&lt;p&gt;2) If the application is also using MSG_ZEROCOPY, then we put in the
   error queue cloned skbs that had a struct ubuf_info attached to them.&lt;/p&gt;
&lt;p&gt;Whenever an struct ubuf_info is allocated, sock_zerocopy_alloc()
   does a sock_hold().&lt;/p&gt;
&lt;p&gt;As long as the cloned skbs are still in sk_error_queue,
   socket refcount is kept elevated.&lt;/p&gt;
&lt;p&gt;3) Application closes the socket, while error queue is not empty.&lt;/p&gt;
&lt;p&gt;Since tcp_close() no longer purges the socket error queue,
we might end up with a TCP socket with at least one skb in
error queue keeping the socket alive forever.&lt;/p&gt;
&lt;p&gt;This bug can be (ab)used to consume all kernel memory
and freeze the host.&lt;/p&gt;
&lt;p&gt;We need to purge the error queue, with proper synchronization
against concurrent writers.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-50838</guid>
    </item>
  </channel>
</rss>
