# CVE-2025-38450: wifi: mt76: mt7925: prevent NULL pointer dereference in mt7925\_sta\_set\_decap\_offload()

> 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.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-07-25T15:27:31.372Z
- **Modified:** 2026-11-05T21:18:32.287Z

## Who should check

- Anyone running Linux \>= b859ad65309a5f1654e8b284de582831fc88e2d8, \< 9b50874f297fcc62adc7396f35209878e51010b0; \>= b859ad65309a5f1654e8b284de582831fc88e2d8, \< 91c3dec2453b3742e8f666957b99945edc30577f; \>= b859ad65309a5f1654e8b284de582831fc88e2d8, \< 35ad47c0b3da04b00b19a8b9ed5632e2f2520472
- Anyone running Linux 6.11

## Description

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

wifi: mt76: mt7925: prevent NULL pointer dereference in mt7925\_sta\_set\_decap\_offload()

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
mt7925\_sta\_set\_decap\_offload() 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\]=OOT\_MODULE
\[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 : mt7925\_sta\_set\_decap\_offload+0xc0/0x1b8 \[mt7925\_common\]
\[14739.845271\] lr : mt7925\_sta\_set\_decap\_offload+0x58/0x1b8 \[mt7925\_common\]
\[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\]  mt7925\_sta\_set\_decap\_offload+0xc0/0x1b8 \[mt7925\_common\]
\[14739.935505\]  ieee80211\_check\_fast\_rx+0x19c/0x510 \[mac80211\]
\[14739.941344\]  \_sta\_info\_move\_state+0xe4/0x510 \[mac80211\]
\[14739.946860\]  sta\_info\_move\_state+0x1c/0x30 \[mac80211\]
\[14739.952116\]  sta\_apply\_auth\_flags.constprop.0+0x90/0x1b0 \[mac80211\]
\[14739.958708\]  sta\_apply\_parameters+0x234/0x5e0 \[mac80211\]
\[14739.964332\]  ieee80211\_add\_station+0xdc/0x190 \[mac80211\]
\[14739.969950\]  nl80211\_new\_station+0x46c/0x670 \[cfg80211\]
\[14739.975516\]  genl\_family\_rcv\_msg\_doit+0xdc/0x150
\[14739.980158\]  genl\_rcv\_msg+0x218/0x298
\[14739.983830\]  netlink\_rcv\_skb+0x64/0x138
\[14739.987670\]  genl\_rcv+0x40/0x60
\[14739.990816\]  netlink\_unicast+0x314/0x380
\[14739.994742\]  netlink\_sendmsg+0x198/0x3f0
\[14739.998664\]  \_\_sock\_sendmsg+0x64/0xc0
\[14740.002324\]  \_\_\_\_sys\_sendmsg+0x260/0x298
\[14740.006242\]  \_\_\_sys\_sendmsg+0xb4/0x110

## Affected and fixed versions

- Linux: \>= b859ad65309a5f1654e8b284de582831fc88e2d8, \< 9b50874f297fcc62adc7396f35209878e51010b0; \>= b859ad65309a5f1654e8b284de582831fc88e2d8, \< 91c3dec2453b3742e8f666957b99945edc30577f; \>= b859ad65309a5f1654e8b284de582831fc88e2d8, \< 35ad47c0b3da04b00b19a8b9ed5632e2f2520472 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 35ad47c0b3da04b00b19a8b9ed5632e2f2520472 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38450.md
Affected: Linux >= b859ad65309a5f1654e8b284de582831fc88e2d8, < 9b50874f297fcc62adc7396f35209878e51010b0; >= b859ad65309a5f1654e8b284de582831fc88e2d8, < 91c3dec2453b3742e8f666957b99945edc30577f; >= b859ad65309a5f1654e8b284de582831fc88e2d8, < 35ad47c0b3da04b00b19a8b9ed5632e2f2520472; Linux 6.11
Fixed in: Linux 9b50874f297fcc62adc7396f35209878e51010b0, Linux 91c3dec2453b3742e8f666957b99945edc30577f, Linux 35ad47c0b3da04b00b19a8b9ed5632e2f2520472

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-38450 being exploited?

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

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

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

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

Linux \>= b859ad65309a5f1654e8b284de582831fc88e2d8, \< 9b50874f297fcc62adc7396f35209878e51010b0; \>= b859ad65309a5f1654e8b284de582831fc88e2d8, \< 91c3dec2453b3742e8f666957b99945edc30577f; \>= b859ad65309a5f1654e8b284de582831fc88e2d8, \< 35ad47c0b3da04b00b19a8b9ed5632e2f2520472; Linux 6.11.

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

Yes. Fixed in Linux 9b50874f297fcc62adc7396f35209878e51010b0, Linux 91c3dec2453b3742e8f666957b99945edc30577f, Linux 35ad47c0b3da04b00b19a8b9ed5632e2f2520472. Upgrade Linux to 35ad47c0b3da04b00b19a8b9ed5632e2f2520472 or later.

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

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/9b50874f297fcc62adc7396f35209878e51010b0>
- patch: <https://git.kernel.org/stable/c/91c3dec2453b3742e8f666957b99945edc30577f>
- patch: <https://git.kernel.org/stable/c/35ad47c0b3da04b00b19a8b9ed5632e2f2520472>

## 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-38450>

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