<?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://cve.radiocsirt.org</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, 05 Oct 2026 13:13:31 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-53058 — net: stmmac: TSO: Fix unbalanced DMA map/unmap for non-paged SKB data</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2024-53058</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: stmmac: TSO: Fix unbalanced DMA map/unmap for non-paged SKB data&lt;/p&gt;
&lt;p&gt;In case the non-paged data of a SKB carries protocol header and protocol
payload to be transmitted on a certain platform that the DMA AXI address
width is configured to 40-bit/48-bit, or the size of the non-paged data
is bigger than TSO_MAX_BUFF_SIZE on a certain platform that the DMA AXI
address width is configured to 32-bit, then this SKB requires at least
two DMA transmit descriptors to serve it.&lt;/p&gt;
&lt;p&gt;For example, three descriptors are allocated to split one DMA buffer
mapped from one piece of non-paged data:
    dma_desc[N + 0],
    dma_desc[N + 1],
    dma_desc[N + 2].
Then three elements of tx_q-&amp;gt;tx_skbuff_dma[] will be allocated to hold
extra information to be reused in stmmac_tx_clean():
    tx_q-&amp;gt;tx_skbuff_dma[N + 0],
    tx_q-&amp;gt;tx_skbuff_dma[N + 1],
    tx_q-&amp;gt;tx_skbuff_dma[N + 2].
Now we focus on tx_q-&amp;gt;tx_skbuff_dma[entry].buf, which is the DMA buffer
address returned by DMA mapping call. stmmac_tx_clean() will try to
unmap the DMA buffer _ONLY_IF_ tx_q-&amp;gt;tx_skbuff_dma[entry].buf
is a valid buffer address.&lt;/p&gt;
&lt;p&gt;The expected behavior that saves DMA buffer address of this non-paged
data to tx_q-&amp;gt;tx_skbuff_dma[entry].buf is:
    tx_q-&amp;gt;tx_skbuff_dma[N + 0].buf = NULL;
    tx_q-&amp;gt;tx_skbuff_dma[N + 1].buf = NULL;
    tx_q-&amp;gt;tx_skbuff_dma[N + 2].buf = dma_map_single();
Unfortunately, the current code misbehaves like this:
    tx_q-&amp;gt;tx_skbuff_dma[…&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: stmmac: TSO: Fix unbalanced DMA map/unmap for non-paged SKB data&lt;/p&gt;
&lt;p&gt;In case the non-paged data of a SKB carries protocol header and protocol
payload to be transmitted on a certain platform that the DMA AXI address
width is configured to 40-bit/48-bit, or the size of the non-paged data
is bigger than TSO_MAX_BUFF_SIZE on a certain platform that the DMA AXI
address width is configured to 32-bit, then this SKB requires at least
two DMA transmit descriptors to serve it.&lt;/p&gt;
&lt;p&gt;For example, three descriptors are allocated to split one DMA buffer
mapped from one piece of non-paged data:
    dma_desc[N + 0],
    dma_desc[N + 1],
    dma_desc[N + 2].
Then three elements of tx_q-&amp;gt;tx_skbuff_dma[] will be allocated to hold
extra information to be reused in stmmac_tx_clean():
    tx_q-&amp;gt;tx_skbuff_dma[N + 0],
    tx_q-&amp;gt;tx_skbuff_dma[N + 1],
    tx_q-&amp;gt;tx_skbuff_dma[N + 2].
Now we focus on tx_q-&amp;gt;tx_skbuff_dma[entry].buf, which is the DMA buffer
address returned by DMA mapping call. stmmac_tx_clean() will try to
unmap the DMA buffer _ONLY_IF_ tx_q-&amp;gt;tx_skbuff_dma[entry].buf
is a valid buffer address.&lt;/p&gt;
&lt;p&gt;The expected behavior that saves DMA buffer address of this non-paged
data to tx_q-&amp;gt;tx_skbuff_dma[entry].buf is:
    tx_q-&amp;gt;tx_skbuff_dma[N + 0].buf = NULL;
    tx_q-&amp;gt;tx_skbuff_dma[N + 1].buf = NULL;
    tx_q-&amp;gt;tx_skbuff_dma[N + 2].buf = dma_map_single();
Unfortunately, the current code misbehaves like this:
    tx_q-&amp;gt;tx_skbuff_dma[…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2024-53058</guid>
    </item>
  </channel>
</rss>
