# CVE-2025-21744: wifi: brcmfmac: fix NULL pointer dereference in brcmf\_txfinalize()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-02-27T02:12:17.259Z
- **Modified:** 2026-11-05T21:17:42.110Z

## Who should check

- Anyone running Linux \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 2326e19190e176fd72bb542b837a9d2b7fcb8693; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 59ff4fa653ff6db07c61152516ffba79c2a74bda; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 61541d9b5a23df33934fcc620a3a81f246b1b240; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 4e51d6d093e763348916e69d06d87e0a5593661b; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 3877fc67bd3d5566cc12763bce39710ceb74a97d; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< fbbfef2a5b858eab55741a58b2ac9a0cc8d53c58; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< a2beefc4fa49ebc22e664dc6b39dbd054f8488f9; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 68abd0c4ebf24cd499841a488b97a6873d5efabb; 6faa698c35a43b9e74ea24e90fe37471d08d00d0; 9119232cc92a269d7860b4aa51f07d3923a3cc10; …
- Anyone running Linux 4.9

## Description

In 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.

## Affected and fixed versions

- Linux: \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 2326e19190e176fd72bb542b837a9d2b7fcb8693; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 59ff4fa653ff6db07c61152516ffba79c2a74bda; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 61541d9b5a23df33934fcc620a3a81f246b1b240; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 4e51d6d093e763348916e69d06d87e0a5593661b; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 3877fc67bd3d5566cc12763bce39710ceb74a97d; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< fbbfef2a5b858eab55741a58b2ac9a0cc8d53c58; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< a2beefc4fa49ebc22e664dc6b39dbd054f8488f9; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 68abd0c4ebf24cd499841a488b97a6873d5efabb; 6faa698c35a43b9e74ea24e90fe37471d08d00d0; 9119232cc92a269d7860b4aa51f07d3923a3cc10; … (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21744. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21744.md
Affected: Linux >= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, < 2326e19190e176fd72bb542b837a9d2b7fcb8693; >= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, < 59ff4fa653ff6db07c61152516ffba79c2a74bda; >= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, < 61541d9b5a23df33934fcc620a3a81f246b1b240; >= 7f00ee2bbc630900ba16fc2…
Fixed in: Linux 2326e19190e176fd72bb542b837a9d2b7fcb8693, Linux 59ff4fa653ff6db07c61152516ffba79c2a74bda, Linux 61541d9b5a23df33934fcc620a3a81f246b1b240, Linux 4e51d6d093e763348916e69d06d87e0a5593661b, Linux 3877fc67bd3d5566cc12763bce39710ceb74a97d, Linux 68abd0c4ebf24cd499841a488b97a6873d5efabb

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21744 being exploited?

There is no confirmed exploitation: CVE-2025-21744 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21744?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21744?

Linux \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 2326e19190e176fd72bb542b837a9d2b7fcb8693; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 59ff4fa653ff6db07c61152516ffba79c2a74bda; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 61541d9b5a23df33934fcc620a3a81f246b1b240; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 4e51d6d093e763348916e69d06d87e0a5593661b; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 3877fc67bd3d5566cc12763bce39710ceb74a97d; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< fbbfef2a5b858eab55741a58b2ac9a0cc8d53c58; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< a2beefc4fa49ebc22e664dc6b39dbd054f8488f9; \>= 7f00ee2bbc630900ba16fc2690473f3e2db0e264, \< 68abd0c4ebf24cd499841a488b97a6873d5efabb; 6faa698c35a43b9e74ea24e90fe37471d08d00d0; 9119232cc92a269d7860b4aa51f07d3923a3cc10; …; Linux 4.9.

### Is there a fix for CVE-2025-21744?

Yes. Fixed in Linux 2326e19190e176fd72bb542b837a9d2b7fcb8693, Linux 59ff4fa653ff6db07c61152516ffba79c2a74bda, Linux 61541d9b5a23df33934fcc620a3a81f246b1b240, Linux 4e51d6d093e763348916e69d06d87e0a5593661b, Linux 3877fc67bd3d5566cc12763bce39710ceb74a97d, Linux 68abd0c4ebf24cd499841a488b97a6873d5efabb. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-21744?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4e51d6d093e763348916e69d06d87e0a5593661b>
- patch: <https://git.kernel.org/stable/c/3877fc67bd3d5566cc12763bce39710ceb74a97d>
- patch: <https://git.kernel.org/stable/c/fbbfef2a5b858eab55741a58b2ac9a0cc8d53c58>
- patch: <https://git.kernel.org/stable/c/a2beefc4fa49ebc22e664dc6b39dbd054f8488f9>
- patch: <https://git.kernel.org/stable/c/68abd0c4ebf24cd499841a488b97a6873d5efabb>
- other: <https://git.kernel.org/stable/c/2326e19190e176fd72bb542b837a9d2b7fcb8693>
- other: <https://git.kernel.org/stable/c/59ff4fa653ff6db07c61152516ffba79c2a74bda>
- other: <https://git.kernel.org/stable/c/61541d9b5a23df33934fcc620a3a81f246b1b240>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21744>

HTML: <https://flawdb.com/CVE-2025-21744> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21744>
