{"id":"CVE-2025-40066","aliases":["CVE-2025-40066"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: mt76: mt7996: Check phy before init msta_link in mt7996_mac_sta_add_links()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: mt7996: Check phy before init msta_link in mt7996_mac_sta_add_links()\n\nIn order to avoid a possible NULL pointer dereference in\nmt7996_mac_sta_init_link routine, move the phy pointer check before\nrunning mt7996_mac_sta_init_link() in mt7996_mac_sta_add_links routine.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mt76: mt7996: Check phy before init msta_link in mt7996_mac_sta_add_links()\n\nIn order to avoid a possible NULL pointer dereference in\nmt7996_mac_sta_init_link routine, move the phy pointer check before\nrunning mt7996_mac_sta_init_link() in mt7996_mac_sta_add_links routine.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nwifi: mt76: mt7996: Comprobar phy antes de inicializar msta_link en mt7996_mac_sta_add_links()\n\nPara evitar una posible desreferencia de puntero NULL en la rutina mt7996_mac_sta_init_link, mover la comprobación del puntero phy antes de ejecutar mt7996_mac_sta_init_link() en la rutina mt7996_mac_sta_add_links.","source":"nvd"}],"published":"2025-10-28T11:48:36.438Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"dd82a9e02c054052b5899872c1f32805428f6131","fixed":"2e671536c1c3c7bcad95d408a4ab42e2e54d1882","status":"affected"},{"type":"git","introduced":"dd82a9e02c054052b5899872c1f32805428f6131","fixed":"fe5fffadc6c77c56f122cf1042dc830f59e904bf","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/2e671536c1c3c7bcad95d408a4ab42e2e54d1882","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fe5fffadc6c77c56f122cf1042dc830f59e904bf","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40066","url":"https://www.cve.org/CVERecord?id=CVE-2025-40066","licence":"CVE Terms of Use","modified":"2026-05-11T21:41:49.331Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40066","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40066","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.942Z","epss":{"score":0.00186,"percentile":0.08589,"date":"2026-12-02T12:00:21.000Z"}}