CVE-2025-38513
kernel: wifi: zd1211rw: Fix potential NULL pointer dereference in zd_mac_tx_to_dev()
Overview
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.
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-476
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 98 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | kernel | 0:6.6.104.2-1.azl3 |
Oracle Linux 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | kernel-uek +7 | 5.4.17-2136.348.3.el7uek |
| 8 | bpftool +13 | 5.15.0-313.189.5.1.el8uek |
| 9 | bpftool +3 | 5.15.0-313.189.5.1.el9uek |
| 9 | kernel-uek +34 | 6.12.0-103.40.4.1.el9uek |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | bpftool +9 | 5.10.240-1.ph4 |
| 5.0 | bpftool +10 | 6.1.147-1.ph5 |
SUSE Linux Enterprise 4 releases · 10 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | kgraft-patch-4-12-14-122-272-default | 1-8.3.1 | SUSE-SU-2025:03204-1 |
| 12.5 | cluster-md-kmp-default +13 | 4.12.14-122.272.1 | SUSE-SU-2025:03204-1 |
| 15.6 | kernel-livepatch-6-4-0-150600-10-52-rt | 1-150600.1.3.1 | SUSE-SU-2025:03272-1 |
| 15.6 | kernel-livepatch-6-4-0-150600-23-70-default | 1-150600.13.3.2 | SUSE-SU-2025:03301-1 |
| 15.6 | cluster-md-kmp-default +18 | 6.4.0-150600.23.70.1 | SUSE-SU-2025:03301-1 |
| 15.6 | kernel-default-base | 6.4.0-150600.23.70.1.150600.12.30.2 | SUSE-SU-2025:03301-1 |
10 more rows
SUSE Linux Enterprise Micro 3 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 6.0 | kernel-default +5 | 6.4.0-34.1 | SUSE-SU-2025:20653-1 |
| 6.0 | kernel-default-base | 6.4.0-34.1.21.11 | SUSE-SU-2025:20653-1 |
| 6.0 | kernel-devel-rt +3 | 6.4.0-36.1 | SUSE-SU-2025:20739-1 |
| 6.1 | kernel-default +6 | 6.4.0-34.1 | SUSE-SU-2025:20669-1 |
| 6.1 | kernel-default-base | 6.4.0-34.1.21.11 | SUSE-SU-2025:20669-1 |
| 6.1 | kernel-devel-rt +4 | 6.4.0-36.1 | SUSE-SU-2025:20756-1 |
2 more rows
debian 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | 5.10.244-1 |
| 11 | linux-6-1 | 6.1.153-1~deb11u1 |
| 12 | linux | 6.1.147-1 |
| 13 | linux | 6.12.41-1 |
| 14 | linux | 6.16.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 1 |
openSUSE Leap 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | cluster-md-kmp-64kb +74 | 6.12.0-160000.26.1 | openSUSE-SU-2026:20287-1 |
| 16.0 | kernel-default-base | 6.12.0-160000.26.1.160000.2.7 | openSUSE-SU-2026:20287-1 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux +1 | 5.10.244-1 |
| 12 | linux +1 | 6.1.147-1 |
| 13 | linux +1 | 6.12.41-1 |
root.io ubuntu 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | rootio-linux | 5.15.0-156.166 |
| 24.04 | linux +1 | 6.8.0-100.100 |
ubuntu 4 releases · 42 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | linux +12 | affected |
| 20.04-ESM | linux +10 | affected |
| 20.04-ESM | linux-nvidia-tegra-5-15 | 5.15.0-1045.45~20.04.1 |
| 20.04-ESM | linux-ibm-5-15 | 5.15.0-1086.89~20.04.1 |
| 20.04-ESM | linux-riscv-5-15 | 5.15.0-1087.91~20.04.1 |
| 20.04-ESM | linux-intel-iotg-5-15 | 5.15.0-1087.93~20.04.1 |
48 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-38513
- git.kernel.org https://git.kernel.org/linus/74b1ec9f5d627d2bdd5e5b6f3f81c23317657023 (6.16-rc6)
- git.kernel.org https://git.kernel.org/stable/c/014c34dc132015c4f918ada4982e952947ac1047
- git.kernel.org https://git.kernel.org/stable/c/5420de65efbeb6503bcf1d43451c9df67ad60298
- git.kernel.org https://git.kernel.org/stable/c/602b4eb2f25668de15de69860ec99caf65b3684d
- git.kernel.org https://git.kernel.org/stable/c/74b1ec9f5d627d2bdd5e5b6f3f81c23317657023
- git.kernel.org https://git.kernel.org/stable/c/adf08c96b963c7cd7ec1ee1c0c556228d9bedaae
- git.kernel.org https://git.kernel.org/stable/c/b24f65c184540dfb967479320ecf7e8c2e9220dc
- git.kernel.org https://git.kernel.org/stable/c/c1958270de947604cc6de05fc96dbba256b49cf0
- git.kernel.org https://git.kernel.org/stable/c/fcd9c923b58e86501450b9b442ccc7ce4a8d0fda
Show all 48 references
- linux.oracle.com https://linux.oracle.com/cve/CVE-2025-38513.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-20716.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2025081652-CVE-2025-38513-e205@gregkh/T
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-38513
- ubuntu.com https://ubuntu.com/security/notices/USN-7774-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7774-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7774-3
- ubuntu.com https://ubuntu.com/security/notices/USN-7774-4
- ubuntu.com https://ubuntu.com/security/notices/USN-7774-5
- ubuntu.com https://ubuntu.com/security/notices/USN-7775-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7775-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7775-3
- ubuntu.com https://ubuntu.com/security/notices/USN-7776-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7879-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7879-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7879-3
- ubuntu.com https://ubuntu.com/security/notices/USN-7879-4
- ubuntu.com https://ubuntu.com/security/notices/USN-7880-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7934-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-4
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-5
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-6
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-7
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-8
- ubuntu.com https://ubuntu.com/security/notices/USN-8031-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8031-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8031-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8052-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8052-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8074-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8074-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8126-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-38513
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.