{"id":68262,"date":"2025-08-16T15:32:13","date_gmt":"2025-08-16T12:02:13","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-38513-linux-kernel-wifi-zd1211rw-null-pointer-dereference-vulnerability\/"},"modified":"2025-08-16T15:32:13","modified_gmt":"2025-08-16T12:02:13","slug":"cve-2025-38513-linux-kernel-wifi-zd1211rw-null-pointer-dereference-vulnerability","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-38513-linux-kernel-wifi-zd1211rw-null-pointer-dereference-vulnerability\/","title":{"rendered":"CVE-2025-38513 &#8211; &#8220;Linux Kernel wifi zd1211rw Null Pointer Dereference Vulnerability&#8221;"},"content":{"rendered":"<p><strong>CVE ID : <\/strong>CVE-2025-38513<br \/>\n<br \/>\n<strong>Published : <\/strong> Aug. 16, 2025, 11:15 a.m. | 45\u00a0minutes ago<br \/>\n<br \/>\n<strong>Description : <\/strong>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>wifi: zd1211rw: Fix potential NULL pointer dereference in zd_mac_tx_to_dev()<\/p>\n<p>There is a potential NULL pointer dereference in zd_mac_tx_to_dev(). For<br \/>\nexample, the following is possible:<\/p>\n<p>    \tT0\t\t\t    \t\tT1<br \/>\nzd_mac_tx_to_dev()<br \/>\n  \/* len == skb_queue_len(q) *\/<br \/>\n  while (len &gt; ZD_MAC_MAX_ACK_WAITERS) {<\/p>\n<p>\t\t\t\t\t  filter_ack()<br \/>\n\t\t\t\t\t    spin_lock_irqsave(&amp;q-&gt;lock, flags);<br \/>\n\t\t\t\t\t    \/* position == skb_queue_len(q) *\/<br \/>\n\t\t\t\t\t    for (i=1; itype == NL80211_IFTYPE_AP)<br \/>\n\t\t\t\t\t      skb = __skb_dequeue(q);<br \/>\n\t\t\t\t\t    spin_unlock_irqrestore(&amp;q-&gt;lock, flags);<\/p>\n<p>    skb_dequeue() -&gt; NULL<\/p>\n<p>Since there is a small gap between checking skb queue length and skb being<br \/>\nunconditionally dequeued in zd_mac_tx_to_dev(), skb_dequeue() can return NULL.<br \/>\nThen the pointer is passed to zd_mac_tx_status() where it is dereferenced.<\/p>\n<p>In order to avoid potential NULL pointer dereference due to situations like<br \/>\nabove, check if skb is not NULL before passing it to zd_mac_tx_status().<\/p>\n<p>Found by Linux Verification Center (linuxtesting.org) with SVACE.<br \/>\n<br \/>\n<strong>Severity:<\/strong> 0.0 | NA<br \/>\n<br \/>\nVisit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-38513 Published : Aug. 16, 2025, 11:15 a.m. | 45\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: wifi: zd1211rw: Fix potential NULL pointer dereference in zd_mac_tx_to_dev() There is a potential NULL pointer dereference in zd_mac_tx_to_dev(). For example, the following is possible: T0 T1 zd_mac_tx_to_dev() \/* len &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-68262","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/68262","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=68262"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/68262\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=68262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=68262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=68262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}