wifi: brcmfmac: fix NULL pointer dereference in brcmf_txfinalize()

Summary

CVECVE-2025-21744
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-02-27 03:15:15 UTC
Updated2026-05-12 13:16:34 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix NULL pointer dereference in brcmf_txfinalize() On removal of the device or unloading of the kernel module a potential NULL pointer dereference occurs. The following sequence deletes the interface: brcmf_detach() brcmf_remove_interface() brcmf_del_if() Inside the brcmf_del_if() function the drvr->if2bss[ifidx] is updated to BRCMF_BSSIDX_INVALID (-1) if the bsscfgidx matches. After brcmf_remove_interface() call the brcmf_proto_detach() function is called providing the following sequence: brcmf_detach() brcmf_proto_detach() brcmf_proto_msgbuf_detach() brcmf_flowring_detach() brcmf_msgbuf_delete_flowring() brcmf_msgbuf_remove_flowring() brcmf_flowring_delete() brcmf_get_ifp() brcmf_txfinalize() Since brcmf_get_ip() can and actually will return NULL in this case the call to brcmf_txfinalize() will result in a NULL pointer dereference inside brcmf_txfinalize() when trying to update ifp->ndev->stats.tx_errors. This will only happen if a flowring still has an skb. Although the NULL pointer dereference has only been seen when trying to update the tx statistic, all other uses of the ifp pointer have been guarded as well with an early return if ifp is NULL.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-476

CVSS v3.1 Breakdown

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

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 7f00ee2bbc630900ba16fc2690473f3e2db0e264 2326e19190e176fd72bb542b837a9d2b7fcb8693 git Not specified
CNA Linux Linux affected 7f00ee2bbc630900ba16fc2690473f3e2db0e264 59ff4fa653ff6db07c61152516ffba79c2a74bda git Not specified
CNA Linux Linux affected 7f00ee2bbc630900ba16fc2690473f3e2db0e264 61541d9b5a23df33934fcc620a3a81f246b1b240 git Not specified
CNA Linux Linux affected 7f00ee2bbc630900ba16fc2690473f3e2db0e264 4e51d6d093e763348916e69d06d87e0a5593661b git Not specified
CNA Linux Linux affected 7f00ee2bbc630900ba16fc2690473f3e2db0e264 3877fc67bd3d5566cc12763bce39710ceb74a97d git Not specified
CNA Linux Linux affected 7f00ee2bbc630900ba16fc2690473f3e2db0e264 fbbfef2a5b858eab55741a58b2ac9a0cc8d53c58 git Not specified
CNA Linux Linux affected 7f00ee2bbc630900ba16fc2690473f3e2db0e264 a2beefc4fa49ebc22e664dc6b39dbd054f8488f9 git Not specified
CNA Linux Linux affected 7f00ee2bbc630900ba16fc2690473f3e2db0e264 68abd0c4ebf24cd499841a488b97a6873d5efabb git Not specified
CNA Linux Linux affected 6faa698c35a43b9e74ea24e90fe37471d08d00d0 git Not specified
CNA Linux Linux affected 9119232cc92a269d7860b4aa51f07d3923a3cc10 git Not specified
CNA Linux Linux affected 4.9 Not specified
CNA Linux Linux unaffected 4.9 semver Not specified
CNA Linux Linux unaffected 5.4.291 5.4.* semver Not specified
CNA Linux Linux unaffected 5.10.235 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.179 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.129 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.78 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.14 6.12.* semver Not specified
CNA Linux Linux unaffected 6.13.3 6.13.* semver Not specified
CNA Linux Linux unaffected 6.14 * original_commit_for_fix Not specified
ADP Siemens SIMATIC S7-1500 TM MFP - GNU/Linux Subsystem affected * custom Not specified

References

ReferenceSourceLinkTags
lists.debian.org/debian-lts-announce/2025/05/msg00030.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
git.kernel.org/stable/c/59ff4fa653ff6db07c61152516ffba79c2a74bda 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4e51d6d093e763348916e69d06d87e0a5593661b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/68abd0c4ebf24cd499841a488b97a6873d5efabb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
cert-portal.siemens.com/productcert/html/ssa-265688.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
git.kernel.org/stable/c/61541d9b5a23df33934fcc620a3a81f246b1b240 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a2beefc4fa49ebc22e664dc6b39dbd054f8488f9 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/3877fc67bd3d5566cc12763bce39710ceb74a97d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/2326e19190e176fd72bb542b837a9d2b7fcb8693 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
lists.debian.org/debian-lts-announce/2025/03/msg00028.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
git.kernel.org/stable/c/fbbfef2a5b858eab55741a58b2ac9a0cc8d53c58 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report