{"id":58480,"date":"2026-05-30T07:57:25","date_gmt":"2026-05-30T07:57:25","guid":{"rendered":"https:\/\/zero.redgem.net\/?p=58480"},"modified":"2026-05-30T07:57:25","modified_gmt":"2026-05-30T07:57:25","slug":"net-stmmac-prevent-null-deref-when-rx-memory-exhausted","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=58480","title":{"rendered":"net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: stmmac: Prevent NULL deref when RX memory exhausted\\n\\nThe CPU receives frames from the MAC through conventional DMA: the CPU\\nallocates buffers for the MAC, then the MAC fills them and returns\\nownership to the CPU. For each hardware RX queue, the CPU and MAC\\ncoordinate through a shared ring array of DMA descriptors: one\\ndescriptor per DMA buffer. Each descriptor includes the buffer&#8217;s\\nphysical address and a status flag (\\&#8221;OWN\\&#8221;) indicating which side owns\\nthe buffer: OWN=0 for CPU, OWN=1 for MAC. The CPU is only allowed to set\\nthe flag and the MAC is only allowed to clear it, and both must move\\nthrough the ring in sequence: thus the ring is used for both\\n\\&#8221;submissions\\&#8221; and \\&#8221;completions.\\&#8221;\\n\\nIn the stmmac driver, stmmac_rx() bookmarks its position in the ring\\nwith the `cur_rx` index. The main receive loop in that function checks\\nfor rx_descs[cur_rx].own=0, gives the corresponding buffer to the\\nnetwork stack (NULLing the pointer), and increments `cur_rx` modulo the\\nring size. After the loop exits, stmmac_rx_refill(), which bookmarks its\\nposition with `dirty_rx`, allocates fresh buffers and rearms the\\ndescriptors (setting OWN=1). If it fails any allocation, it simply stops\\nearly (leaving OWN=0) and will retry where it left off when next called.\\n\\nThis means descriptors have a three-stage lifecycle (terms my own):\\n- `empty` (OWN=1, buffer valid)\\n- `full` (OWN=0, buffer valid and populated)\\n- `dirty` (OWN=0, buffer NULL)\\n\\nBut because stmmac_rx() only checks OWN, it confuses `full`\/`dirty`. In\\nthe past (see &#8216;Fixes:&#8217;), there was a bug where the loop could cycle\\n`cur_rx` all the way back to the first descriptor it dirtied, resulting\\nin a NULL dereference when mistaken for `full`. The aforementioned\\ncommit resolved that *specific* failure by capping the loop&#8217;s iteration\\nlimit at `dma_rx_size &#8211; 1`, but this is only a partial fix: if the\\nprevious stmmac_rx_refill() didn&#8217;t complete, then there are leftover\\n`dirty` descriptors that the loop might encounter without needing to\\ncycle fully around. The current code therefore panics (see &#8216;Closes:&#8217;)\\nwhen stmmac_rx_refill() is memory-starved long enough for `cur_rx` to\\ncatch up to `dirty_rx`.\\n\\nFix this by explicitly checking, before advancing `cur_rx`, if the next\\nentry is dirty; exit the loop if so. This prevents processing of the\\nfinal, used descriptor until stmmac_rx_refill() succeeds, but\\nfully prevents the `cur_rx == dirty_rx` ambiguity as the previous bugfix\\nintended: so remove the clamp as well. Since stmmac_rx_zc() is a\\ncopy-paste-and-tweak of stmmac_rx() and the code structure is identical,\\nany fix to stmmac_rx() will also need a corresponding fix for\\nstmmac_rx_zc(). Therefore, apply the same check there.\\n\\nIn stmmac_rx() (not stmmac_rx_zc()), a related bug remains: after the\\nMAC sets OWN=0 on the final descriptor, it will be unable to send any\\nfurther DMA-complete IRQs until it&#8217;s given more `empty` descriptors.\\nCurrently, the driver simply *hopes* that the next stmmac_rx_refill()\\nsucceeds, risking an indefinite stall of the receive process if not. But\\nthis is not a regression, so it can be addressed in a future change.&#8221;,&#8221;published&#8221;:&#8221;2026-05-28T09:35:18.359Z&#8221;,&#8221;modified&#8221;:&#8221;2026-05-30T10:47:40.882Z&#8221;,&#8221;type&#8221;:&#8221;cve&#8221;,&#8221;title&#8221;:&#8221;net: stmmac: Prevent NULL deref when RX memory exhausted&#8221;,&#8221;source&#8221;:&#8221;Linux&#8221;,&#8221;references&#8221;:&#8221;https:\/\/git.kernel.org\/stable\/c\/e1c50b273298c7cd9b08b113e7a7598b531a02f5\\nhttps:\/\/git.kernel.org\/stable\/c\/5c910f7708e3c507b037ca91ca5b09f8cfe71e65\\nhttps:\/\/git.kernel.org\/stable\/c\/4af2e62cbcda575a174acd230c3f3a208135e16d\\nhttps:\/\/git.kernel.org\/stable\/c\/950cb436165aad0f8f2cd49da3cd07677465bcde\\nhttps:\/\/git.kernel.org\/stable\/c\/0bb05e6adfa99a2ea1fee1125cc0953409f83ed8&#8243;,&#8221;id&#8221;:&#8221;CVE-2026-46110&#8243;,&#8221;bulletinFamily&#8221;:&#8221;&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:null,&#8221;sourceData&#8221;:&#8221;Linux Linux 779334e59850f863bf34665e0ff0b6faf126873b\\nLinux Linux b6cb4541853c7ee512111b0e7ddf3cb66c99c137\\nLinux Linux b6cb4541853c7ee512111b0e7ddf3cb66c99c137\\nLinux Linux b6cb4541853c7ee512111b0e7ddf3cb66c99c137\\nLinux Linux b6cb4541853c7ee512111b0e7ddf3cb66c99c137\\nLinux Linux 7414a28de1b3b028714859078c00a874f9feff52\\nLinux Linux b435b4573240b5530830a1a60e005c6fcfd928a0\\nLinux Linux 6.6.3\\nLinux Linux 6.1.64\\nLinux Linux 6.5.13\\nLinux Linux 6.7&#8243;,&#8221;sourceHref&#8221;:&#8221;&#8221;,&#8221;cvss&#8221;:{&#8220;score&#8221;:7.5,&#8221;severity&#8221;:&#8221;HIGH&#8221;,&#8221;vector&#8221;:&#8221;CVSS:3.1\/AV:N\/AC:L\/PR:N\/UI:N\/S:U\/C:N\/I:N\/A:H&#8221;,&#8221;version&#8221;:&#8221;3.1&#8243;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;&#8221;,&#8221;category_name&#8221;:&#8221;CVE&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;Linux&#8221;,&#8221;version&#8221;:&#8221;779334e59850f863bf34665e0ff0b6faf126873b&#8221;,&#8221;vendor&#8221;:&#8221;Linux&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: stmmac: Prevent NULL deref when RX memory exhausted\\n\\nThe CPU receives frames from the MAC through&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[6,8,16,12,15,13,7,11,5],"class_list":["post-58480","post","type-post","status-publish","format-standard","hentry","category-category_cve","tag-cve","tag-cvss","tag-cvss-75","tag-exploit","tag-high","tag-news","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110 - zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=58480\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:nnnet: stmmac: Prevent NULL deref when RX memory exhaustednnThe CPU receives frames from the MAC through...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=58480\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-30T07:57:25+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=58480#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=58480\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110\",\"datePublished\":\"2026-05-30T07:57:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=58480\"},\"wordCount\":845,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"CVSS-7.5\",\"exploit\",\"HIGH\",\"news\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_cve\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=58480#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=58480\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=58480\",\"name\":\"net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2026-05-30T07:57:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=58480#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=58480\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=58480#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110 - zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=58480","og_locale":"en_US","og_type":"article","og_title":"net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;&#8221;,&#8221;description&#8221;:&#8221;In the Linux kernel, the following vulnerability has been resolved:nnnet: stmmac: Prevent NULL deref when RX memory exhaustednnThe CPU receives frames from the MAC through...","og_url":"https:\/\/zero.redgem.net\/?p=58480","og_site_name":"zero redgem","article_published_time":"2026-05-30T07:57:25+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=58480#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=58480"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110","datePublished":"2026-05-30T07:57:25+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=58480"},"wordCount":845,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","CVSS-7.5","exploit","HIGH","news","Security","tapic","Vulnerability"],"articleSection":["category_cve"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=58480#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=58480","url":"https:\/\/zero.redgem.net\/?p=58480","name":"net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2026-05-30T07:57:25+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=58480#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=58480"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=58480#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"net: stmmac: Prevent NULL deref when RX memory exhausted_CVE-2026-46110"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/58480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58480"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/58480\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}