{"id":77158,"date":"2026-02-14T20:45:58","date_gmt":"2026-02-14T17:15:58","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-23206-dpaa2-switch-prevent-zero_size_ptr-dereference-when-num_ifs-is-zero\/"},"modified":"2026-02-14T20:45:58","modified_gmt":"2026-02-14T17:15:58","slug":"cve-2026-23206-dpaa2-switch-prevent-zero_size_ptr-dereference-when-num_ifs-is-zero","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-23206-dpaa2-switch-prevent-zero_size_ptr-dereference-when-num_ifs-is-zero\/","title":{"rendered":"CVE-2026-23206 &#8211; dpaa2-switch: prevent ZERO_SIZE_PTR dereference when num_ifs is zero"},"content":{"rendered":"<p>CVE ID : CVE-2026-23206<\/p>\n<p>Published :  Feb. 14, 2026, 5:15 p.m. | 1\u00a0hour, 14\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>dpaa2-switch: prevent ZERO_SIZE_PTR dereference when num_ifs is zero<\/p>\n<p>The driver allocates arrays for ports, FDBs, and filter blocks using<br \/>\nkcalloc() with ethsw-&gt;sw_attr.num_ifs as the element count. When the<br \/>\ndevice reports zero interfaces (either due to hardware configuration<br \/>\nor firmware issues), kcalloc(0, &#8230;) returns ZERO_SIZE_PTR (0x10)<br \/>\ninstead of NULL.<\/p>\n<p>Later in dpaa2_switch_probe(), the NAPI initialization unconditionally<br \/>\naccesses ethsw-&gt;ports[0]-&gt;netdev, which attempts to dereference<br \/>\nZERO_SIZE_PTR (address 0x10), resulting in a kernel panic.<\/p>\n<p>Add a check to ensure num_ifs is greater than zero after retrieving<br \/>\ndevice attributes. This prevents the zero-sized allocations and<br \/>\nsubsequent invalid pointer dereference.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2026-23206 Published : Feb. 14, 2026, 5:15 p.m. | 1\u00a0hour, 14\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: dpaa2-switch: prevent ZERO_SIZE_PTR dereference when num_ifs is zero The driver allocates arrays for ports, FDBs, and filter blocks using kcalloc() with ethsw-&gt;sw_attr.num_ifs as the element count. When the &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-77158","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/77158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=77158"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/77158\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=77158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=77158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=77158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}