{"id":"CVE-2025-38513","published":"2025-08-16T10:55:00Z","modified":"2026-05-11T21:29:28Z","title":"wifi: zd1211rw: Fix potential NULL pointer dereference in zd_mac_tx_to_dev()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: zd1211rw: Fix potential NULL pointer dereference in zd_mac_tx_to_dev()\n\nThere is a potential NULL pointer dereference in zd_mac_tx_to_dev(). For\nexample, the following is possible:\n\n    \tT0\t\t\t    \t\tT1\nzd_mac_tx_to_dev()\n  /* len == skb_queue_len(q) */\n  while (len > ZD_MAC_MAX_ACK_WAITERS) {\n\n\t\t\t\t\t  filter_ack()\n\t\t\t\t\t    spin_lock_irqsave(&q->lock, flags);\n\t\t\t\t\t    /* position == skb_queue_len(q) */\n\t\t\t\t\t    for (i=1; i<position; i++)\n\t\t\t\t    \t      skb = __skb_dequeue(q)\n\n\t\t\t\t\t    if (mac->type == NL80211_IFTYPE_AP)\n\t\t\t\t\t      skb = __skb_dequeue(q);\n\t\t\t\t\t    spin_unlock_irqrestore(&q->lock, flags);\n\n    skb_dequeue() -> NULL\n\nSince there is a small gap between checking skb queue length and skb being\nunconditionally dequeued in zd_mac_tx_to_dev(), skb_dequeue() can return NULL.\nThen the pointer is passed to zd_mac_tx_status() where it is dereferenced.\n\nIn order to avoid potential NULL pointer dereference due to situations like\nabove, check if skb is not NULL before passing it to zd_mac_tx_status().\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00194,"percentile":0.09158,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/c1958270de947604cc6de05fc96dbba256b49cf0","tags":[]},{"url":"https://git.kernel.org/stable/c/014c34dc132015c4f918ada4982e952947ac1047","tags":[]},{"url":"https://git.kernel.org/stable/c/b24f65c184540dfb967479320ecf7e8c2e9220dc","tags":[]},{"url":"https://git.kernel.org/stable/c/adf08c96b963c7cd7ec1ee1c0c556228d9bedaae","tags":[]},{"url":"https://git.kernel.org/stable/c/5420de65efbeb6503bcf1d43451c9df67ad60298","tags":[]},{"url":"https://git.kernel.org/stable/c/fcd9c923b58e86501450b9b442ccc7ce4a8d0fda","tags":[]},{"url":"https://git.kernel.org/stable/c/602b4eb2f25668de15de69860ec99caf65b3684d","tags":[]},{"url":"https://git.kernel.org/stable/c/74b1ec9f5d627d2bdd5e5b6f3f81c23317657023","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":[]}],"priority":{"score":1.8,"factors":[{"name":"EPSS percentile","points":1.83}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 459c51ad6e1fc19e91a53798358433d3c08cd09d, < c1958270de947604cc6de05fc96dbba256b49cf0",">= 459c51ad6e1fc19e91a53798358433d3c08cd09d, < 014c34dc132015c4f918ada4982e952947ac1047",">= 459c51ad6e1fc19e91a53798358433d3c08cd09d, < b24f65c184540dfb967479320ecf7e8c2e9220dc",">= 459c51ad6e1fc19e91a53798358433d3c08cd09d, < adf08c96b963c7cd7ec1ee1c0c556228d9bedaae",">= 459c51ad6e1fc19e91a53798358433d3c08cd09d, < 5420de65efbeb6503bcf1d43451c9df67ad60298",">= 459c51ad6e1fc19e91a53798358433d3c08cd09d, < fcd9c923b58e86501450b9b442ccc7ce4a8d0fda",">= 459c51ad6e1fc19e91a53798358433d3c08cd09d, < 602b4eb2f25668de15de69860ec99caf65b3684d",">= 459c51ad6e1fc19e91a53798358433d3c08cd09d, < 74b1ec9f5d627d2bdd5e5b6f3f81c23317657023"]},{"vendor":"Linux","product":"Linux","versions":["2.6.25"]}],"euvd":{"id":"EUVD-2025-25085","exploited":false,"provenance":"source"}}