CVE-2025-38513

wifi: zd1211rw: Fix potential NULL pointer dereference in zd_mac_tx_to_dev()

MEDIUM
5.5
CVSS Score
Published: August 16, 2025 at 10:55 AM UTC
Updated: June 17, 2026 at 09:17 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.25 ≤ v < 5.10.2402.6.25 ≤ v < 5.15.1892.6.25 ≤ v < 5.4.2962.6.25 ≤ v < 6.1.1462.6.25 ≤ v < 6.12.392.6.25 ≤ v < 6.15.72.6.25 ≤ v < 6.162.6.25 ≤ v < 6.6.995.11 ≤ v < 5.15.1895.16 ≤ v < 6.1.1465.5 ≤ v < 5.10.2406.13 ≤ v < 6.15.76.2 ≤ v < 6.6.996.7 ≤ v < 6.12.392.6.25459c51ad6e1fc19e91a53798358433d3c08cd09d6.16 rc16.16 rc26.16 rc36.16 rc46.16 rc5
Vendor states this is fixed in 014c34dc132015c4f918ada4982e952947ac1047 (fixed)
Vendor states this is fixed in 5420de65efbeb6503bcf1d43451c9df67ad60298 (fixed)
Vendor states this is fixed in 602b4eb2f25668de15de69860ec99caf65b3684d (fixed)
Vendor states this is fixed in 74b1ec9f5d627d2bdd5e5b6f3f81c23317657023 (fixed)
Vendor states this is fixed in adf08c96b963c7cd7ec1ee1c0c556228d9bedaae (fixed)
Vendor states this is fixed in b24f65c184540dfb967479320ecf7e8c2e9220dc (fixed)
Vendor states this is fixed in c1958270de947604cc6de05fc96dbba256b49cf0 (fixed)
Vendor states this is fixed in fcd9c923b58e86501450b9b442ccc7ce4a8d0fda (fixed)
Vendor states this is fixed in 2.6.25 (unaffected)
Vendor states this is fixed in 5.10.240 (unaffected)
Vendor states this is fixed in 5.15.189 (unaffected)
Vendor states this is fixed in 5.4.296 (unaffected)
Vendor states this is fixed in 6.1.146 (unaffected)
Vendor states this is fixed in 6.12.39 (unaffected)
Vendor states this is fixed in 6.15.7 (unaffected)
Vendor states this is fixed in 6.16 (unaffected)
Vendor states this is fixed in 6.6.99 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/014c34dc132015c4f918ada4982e952947ac1047
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5420de65efbeb6503bcf1d43451c9df67ad60298
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/602b4eb2f25668de15de69860ec99caf65b3684d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/74b1ec9f5d627d2bdd5e5b6f3f81c23317657023
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/adf08c96b963c7cd7ec1ee1c0c556228d9bedaae
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b24f65c184540dfb967479320ecf7e8c2e9220dc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c1958270de947604cc6de05fc96dbba256b49cf0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fcd9c923b58e86501450b9b442ccc7ce4a8d0fda

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card