CVE-2025-38450: wifi: mt76: mt7925: prevent NULL pointer dereference in mt7925_sta_set_decap_offload()

Published Jul 25, 2025
·
Updated

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

wifi: mt76: mt7925: prevent NULL pointer dereference in mt7925stasetdecapoffload()

Add a NULL check for msta->vif before accessing its members to prevent a kernel panic in AP mode deployment. This also fix the issue reported in [1].

The crash occurs when this function is triggered before the station is fully initialized. The call trace shows a page fault at mt7925stasetdecapoffload() due to accessing resources when msta->vif is NULL.

Fix this by adding an early return if msta->vif is NULL and also check wcid.sta is ready. This ensures we only proceed with decap offload configuration when the station's state is properly initialized.

[14739.655703] Unable to handle kernel paging request at virtual address ffffffffffffffa0 [14739.811820] CPU: 0 UID: 0 PID: 895854 Comm: hostapd Tainted: G [14739.821394] Tainted: [C]=CRAP, [O]=OOTMODULE [14739.825746] Hardware name: Raspberry Pi 4 Model B Rev 1.1 (DT) [14739.831577] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [14739.838538] pc : mt7925stasetdecapoffload+0xc0/0x1b8 [mt7925common] [14739.845271] lr : mt7925stasetdecapoffload+0x58/0x1b8 [mt7925common] [14739.851985] sp : ffffffc085efb500 [14739.855295] x29: ffffffc085efb500 x28: 0000000000000000 x27: ffffff807803a158 [14739.862436] x26: ffffff8041ececb8 x25: 0000000000000001 x24: 0000000000000001 [14739.869577] x23: 0000000000000001 x22: 0000000000000008 x21: ffffff8041ecea88 [14739.876715] x20: ffffff8041c19ca0 x19: ffffff8078031fe0 x18: 0000000000000000 [14739.883853] x17: 0000000000000000 x16: ffffffe2aeac1110 x15: 000000559da48080 [14739.890991] x14: 0000000000000001 x13: 0000000000000000 x12: 0000000000000000 [14739.898130] x11: 0a10020001008e88 x10: 0000000000001a50 x9 : ffffffe26457bfa0 [14739.905269] x8 : ffffff8042013bb0 x7 : ffffff807fb6cbf8 x6 : dead000000000100 [14739.912407] x5 : dead000000000122 x4 : ffffff80780326c8 x3 : 0000000000000000 [14739.919546] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffffff8041ececb8 [14739.926686] Call trace: [14739.929130] mt7925stasetdecapoffload+0xc0/0x1b8 [mt7925common] [14739.935505] ieee80211checkfastrx+0x19c/0x510 [mac80211] [14739.941344] stainfomovestate+0xe4/0x510 [mac80211] [14739.946860] stainfomovestate+0x1c/0x30 [mac80211] [14739.952116] staapplyauthflags.constprop.0+0x90/0x1b0 [mac80211] [14739.958708] staapplyparameters+0x234/0x5e0 [mac80211] [14739.964332] ieee80211addstation+0xdc/0x190 [mac80211] [14739.969950] nl80211newstation+0x46c/0x670 [cfg80211] [14739.975516] genlfamilyrcvmsgdoit+0xdc/0x150 [14739.980158] genlrcvmsg+0x218/0x298 [14739.983830] netlinkrcvskb+0x64/0x138 [14739.987670] genlrcv+0x40/0x60 [14739.990816] netlinkunicast+0x314/0x380 [14739.994742] netlinksendmsg+0x198/0x3f0 [14739.998664] socksendmsg+0x64/0xc0 [14740.002324] syssendmsg+0x260/0x298 [14740.006242] syssendmsg+0xb4/0x110

Affected Software

9 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.11<6.12.39
Linux Linux kernel>=6.13<6.15.7
Linux Linux kernel=6.16-rc1
Linux Linux kernel=6.16-rc2
Linux Linux kernel=6.16-rc3
Linux Linux kernel=6.16-rc4
Linux Linux kernel=6.16-rc5
debian/linux
6.1.176-16.1.190-16.12.107-16.12.113-17.2.12-17.2.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Compensating control

    In mt7925_sta_set_decap_offload(), add an early return when msta->vif is NULL and ensure wcid.sta is ready before accessing station resources or configuring decap offload.

Event History

Jul 25, 2025
CVE Published
via MITRE·03:27 PM
Data Sourced
via MITRE·03:27 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-38450?

CVE-2025-38450 has a medium severity level due to the potential for a kernel panic in AP mode deployments.

2

What systems are affected by CVE-2025-38450?

CVE-2025-38450 affects the Linux Kernel, particularly the mt76 driver for wifi hardware.

3

How do I fix CVE-2025-38450?

To mitigate CVE-2025-38450, update your Linux Kernel to a version that includes the patch addressing the NULL pointer dereference.

4

What consequences does CVE-2025-38450 pose in affected systems?

The main consequence of CVE-2025-38450 is a kernel panic that can disrupt network services in AP mode.

5

Is CVE-2025-38450 likely to be exploited in the wild?

While CVE-2025-38450 could potentially be exploited, the actual risk of in-the-wild exploitation mainly depends on specific deployment scenarios and configurations.

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