CVE-2025-21744: wifi: brcmfmac: fix NULL pointer dereference in brcmf_txfinalize()

Published Feb 27, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

On removal of the device or unloading of the kernel module a potential NULL pointer dereference occurs.

The following sequence deletes the interface:

brcmfdetach() brcmfremoveinterface() brcmfdelif()

Inside the brcmfdelif() function the drvr->if2bss[ifidx] is updated to BRCMFBSSIDXINVALID (-1) if the bsscfgidx matches.

After brcmfremoveinterface() call the brcmfprotodetach() function is called providing the following sequence:

brcmfdetach() brcmfprotodetach() brcmfprotomsgbufdetach() brcmfflowringdetach() brcmfmsgbufdeleteflowring() brcmfmsgbufremoveflowring() brcmfflowringdelete() brcmfgetifp() brcmftxfinalize()

Since brcmfgetip() can and actually will return NULL in this case the call to brcmftxfinalize() will result in a NULL pointer dereference inside brcmftxfinalize() when trying to update ifp->ndev->stats.txerrors.

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 Software

10 affected componentsFixes available
Linux Kernel
Microsoft cbl2 kernel 5.15.182.1-1
Linux Linux kernel<6.1.129
Linux Linux kernel>=6.2<6.6.78
Linux Linux kernel>=6.7<6.12.14
Linux Linux kernel>=6.13<6.13.3
Microsoft cbl2 kernel 5.15.182.1-1<5.15.179.1-1
5.15.179.1-1
Microsoft azl3 kernel 6.6.64.2-9<6.6.78.1-3
6.6.78.1-3
Microsoft azl3 kernel 6.6.78.1-3<6.6.78.1-3
6.6.78.1-3
Microsoft cbl2 kernel 5.15.179.1-1<5.15.179.1-1
5.15.179.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.15.179.1-1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.78.1-3

Event History

Feb 27, 2025
CVE Published
via MITRE·02:12 AM
Data Sourced
via MITRE·02:12 AM
Description
Data Sourced
via NVD·03:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 14, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-21744?

CVE-2025-21744 is classified as a medium severity vulnerability due to the potential for a NULL pointer dereference.

2

How do I fix CVE-2025-21744?

To fix CVE-2025-21744, update your Linux kernel to a version later than 6.1.129 or within the specified safe ranges.

3

What versions of Linux Kernel are affected by CVE-2025-21744?

CVE-2025-21744 affects Linux Kernel versions between 6.2 and 6.6.78, and 6.7 to 6.12.14, and specifically 6.13 to 6.13.3.

4

What component is impacted by CVE-2025-21744?

The vulnerability affects the networking component 'brcmfmac' in the Linux kernel.

5

What type of vulnerability is CVE-2025-21744?

CVE-2025-21744 is an operational vulnerability that leads to a NULL pointer dereference when the device is removed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203