CVE-2025-38513
wifi: zd1211rw: Fix potential NULL pointer dereference in zd_mac_tx_to_dev()
Check your servers for CVE-2025-38513
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38513 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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 == skb_queue_len(q) */ while (len > ZD_MAC_MAX_ACK_WAITERS) {
filter_ack() spin_lock_irqsave(&q->lock, flags); /* position == skb_queue_len(q) */ for (i=1; i<position; i++) skb = __skb_dequeue(q)
if (mac->type == NL80211_IFTYPE_AP) skb = __skb_dequeue(q); spin_unlock_irqrestore(&q->lock, flags);
skb_dequeue() -> NULL
Since there is a small gap between checking skb queue length and skb being unconditionally dequeued in zd_mac_tx_to_dev(), skb_dequeue() can return NULL. Then the pointer is passed to zd_mac_tx_status() where it is dereferenced.
In order to avoid potential NULL pointer dereference due to situations like above, check if skb is not NULL before passing it to zd_mac_tx_status().
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 459c51ad6e1fc19e91a53798358433d3c08cd09d, before c1958270de947604cc6de05fc96dbba256b49cf0 affected from 459c51ad6e1fc19e91a53798358433d3c08cd09d, before 014c34dc132015c4f918ada4982e952947ac1047 affected from 459c51ad6e1fc19e91a53798358433d3c08cd09d, before b24f65c184540dfb967479320ecf7e8c2e9220dc affected from 459c51ad6e1fc19e91a53798358433d3c08cd09d, before adf08c96b963c7cd7ec1ee1c0c556228d9bedaae affected from 459c51ad6e1fc19e91a53798358433d3c08cd09d, before 5420de65efbeb6503bcf1d43451c9df67ad60298 affected from 459c51ad6e1fc19e91a53798358433d3c08cd09d, before fcd9c923b58e86501450b9b442ccc7ce4a8d0fda affected from 459c51ad6e1fc19e91a53798358433d3c08cd09d, before 602b4eb2f25668de15de69860ec99caf65b3684d affected from 459c51ad6e1fc19e91a53798358433d3c08cd09d, before 74b1ec9f5d627d2bdd5e5b6f3f81c23317657023
Other versions: unaffected
|
| Linux |
affected 2.6.25 unaffected before 2.6.25 unaffected from 5.4.296 up to and including 5.4.* unaffected from 5.10.240 up to and including 5.10.* unaffected from 5.15.189 up to and including 5.15.* unaffected from 6.1.146 up to and including 6.1.* unaffected from 6.6.99 up to and including 6.6.* unaffected from 6.12.39 up to and including 6.12.* unaffected from 6.15.7 up to and including 6.15.* unaffected 6.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38513 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38513
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38513
trivy image --scanners vuln IMAGE | grep CVE-2025-38513
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/c1958270de947604cc6de05fc96dbba256b49cf0 git.kernel.org
- https://git.kernel.org/stable/c/014c34dc132015c4f918ada4982e952947ac1047 git.kernel.org
- https://git.kernel.org/stable/c/b24f65c184540dfb967479320ecf7e8c2e9220dc git.kernel.org
- https://git.kernel.org/stable/c/adf08c96b963c7cd7ec1ee1c0c556228d9bedaae git.kernel.org
- https://git.kernel.org/stable/c/5420de65efbeb6503bcf1d43451c9df67ad60298 git.kernel.org
- https://git.kernel.org/stable/c/fcd9c923b58e86501450b9b442ccc7ce4a8d0fda git.kernel.org
- https://git.kernel.org/stable/c/602b4eb2f25668de15de69860ec99caf65b3684d git.kernel.org
- https://git.kernel.org/stable/c/74b1ec9f5d627d2bdd5e5b6f3f81c23317657023 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
Source: the record CVE-2025-38513 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse