# CVE-2025-40066: wifi: mt76: mt7996: Check phy before init msta_link in mt7996_mac_sta_add_links()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-02)
- Published: 2025-10-28T11:48:36.438Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from dd82a9e02c054052b5899872c1f32805428f6131 before 2e671536c1c3c7bcad95d408a4ab42e2e54d1882; from dd82a9e02c054052b5899872c1f32805428f6131 before fe5fffadc6c77c56f122cf1042dc830f59e904bf; 6.15 (not affected: before 6.15; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

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

## Sources

- CVE List: [CVE-2025-40066](https://www.cve.org/CVERecord?id=CVE-2025-40066), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40066](https://nvd.nist.gov/vuln/detail/CVE-2025-40066), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40066 · Whole record: https://cve.day/CVE-2025-40066.json · Rebuilt by cve.day 2026-11-25T22:59:06.942Z
