<?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, 28 Sep 2026 20:54:30 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50459 — scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()</title>
      <link>https://db.gcve.eu/vuln/cve-2022-50459</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;scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()&lt;/p&gt;
&lt;p&gt;Fix a NULL pointer crash that occurs when we are freeing the socket at the
same time we access it via sysfs.&lt;/p&gt;
&lt;p&gt;The problem is that:&lt;/p&gt;
&lt;p&gt;1. iscsi_sw_tcp_conn_get_param() and iscsi_sw_tcp_host_get_param() take
    the frwd_lock and do sock_hold() then drop the frwd_lock. sock_hold()
    does a get on the &amp;#34;struct sock&amp;#34;.&lt;/p&gt;
&lt;p&gt;2. iscsi_sw_tcp_release_conn() does sockfd_put() which does the last put
    on the &amp;#34;struct socket&amp;#34; and that does __sock_release() which sets the
    sock-&amp;gt;ops to NULL.&lt;/p&gt;
&lt;p&gt;3. iscsi_sw_tcp_conn_get_param() and iscsi_sw_tcp_host_get_param() then
    call kernel_getpeername() which accesses the NULL sock-&amp;gt;ops.&lt;/p&gt;
&lt;p&gt;Above we do a get on the &amp;#34;struct sock&amp;#34;, but we needed a get on the &amp;#34;struct
socket&amp;#34;. Originally, we just held the frwd_lock the entire time but in
commit bcf3a2953d36 (&amp;#34;scsi: iscsi: iscsi_tcp: Avoid holding spinlock while
calling getpeername()&amp;#34;) we switched to refcount based because the network
layer changed and started taking a mutex in that path, so we could no
longer hold the frwd_lock.&lt;/p&gt;
&lt;p&gt;Instead of trying to maintain multiple refcounts, this just has us use a
mutex for accessing the socket in the interface code paths.&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;scsi: iscsi: iscsi_tcp: Fix null-ptr-deref while calling getpeername()&lt;/p&gt;
&lt;p&gt;Fix a NULL pointer crash that occurs when we are freeing the socket at the
same time we access it via sysfs.&lt;/p&gt;
&lt;p&gt;The problem is that:&lt;/p&gt;
&lt;p&gt;1. iscsi_sw_tcp_conn_get_param() and iscsi_sw_tcp_host_get_param() take
    the frwd_lock and do sock_hold() then drop the frwd_lock. sock_hold()
    does a get on the &amp;#34;struct sock&amp;#34;.&lt;/p&gt;
&lt;p&gt;2. iscsi_sw_tcp_release_conn() does sockfd_put() which does the last put
    on the &amp;#34;struct socket&amp;#34; and that does __sock_release() which sets the
    sock-&amp;gt;ops to NULL.&lt;/p&gt;
&lt;p&gt;3. iscsi_sw_tcp_conn_get_param() and iscsi_sw_tcp_host_get_param() then
    call kernel_getpeername() which accesses the NULL sock-&amp;gt;ops.&lt;/p&gt;
&lt;p&gt;Above we do a get on the &amp;#34;struct sock&amp;#34;, but we needed a get on the &amp;#34;struct
socket&amp;#34;. Originally, we just held the frwd_lock the entire time but in
commit bcf3a2953d36 (&amp;#34;scsi: iscsi: iscsi_tcp: Avoid holding spinlock while
calling getpeername()&amp;#34;) we switched to refcount based because the network
layer changed and started taking a mutex in that path, so we could no
longer hold the frwd_lock.&lt;/p&gt;
&lt;p&gt;Instead of trying to maintain multiple refcounts, this just has us use a
mutex for accessing the socket in the interface code paths.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2022-50459</guid>
    </item>
  </channel>
</rss>
