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

CVE-2025-38513
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 459c51ad6e1fc19e91a53798358433d3c08cd09d < c1958270de947604cc6de05fc96dbba256b49cf0 ; affected 459c51ad6e1fc19e91a53798358433d3c08cd09d < 014c34dc132015c4f918ada4982e952947ac1047 ; affected 459c51ad6e1fc19e91a53798358433d3c08cd09d < b24f65c184540dfb967479320ecf7e8c2e9220dc ; affected 459c51ad6e1fc19e91a53798358433d3c08cd09d < adf08c96b963c7cd7ec1ee1c0c556228d9bedaae ; affected 459c51ad6e1fc19e91a53798358433d3c08cd09d < 5420de65efbeb6503bcf1d43451c9df67ad60298 ; affected 459c51ad6e1fc19e91a53798358433d3c08cd09d < fcd9c923b58e86501450b9b442ccc7ce4a8d0fda
Linux · Linuxaffected 2.6.25 ; unaffected 0 < 2.6.25 ; unaffected 5.4.296 ≤ 5.4.* ; unaffected 5.10.240 ≤ 5.10.* ; unaffected 5.15.189 ≤ 5.15.* ; unaffected 6.1.146 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD