{"id":"CVE-2025-40066","state":"PUBLISHED","title":"wifi: mt76: mt7996: Check phy before init msta_link in mt7996_mac_sta_add_links()","description":"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.","publishedAt":"2025-10-28T11:48:36.438Z","updatedAt":"2026-05-11T21:41:49.331Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dd82a9e02c054052b5899872c1f32805428f6131","status":"affected","lessThan":"2e671536c1c3c7bcad95d408a4ab42e2e54d1882","versionType":"git"},{"version":"dd82a9e02c054052b5899872c1f32805428f6131","status":"affected","lessThan":"fe5fffadc6c77c56f122cf1042dc830f59e904bf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/mediatek/mt76/mt7996/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.17.3","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/mediatek/mt76/mt7996/main.c"]}],"references":["https://git.kernel.org/stable/c/2e671536c1c3c7bcad95d408a4ab42e2e54d1882","https://git.kernel.org/stable/c/fe5fffadc6c77c56f122cf1042dc830f59e904bf"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/40xxx/CVE-2025-40066.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-40066","state":"PUBLISHED","datePublished":"2025-10-28T11:48:36.438Z","dateUpdated":"2026-05-11T21:41:49.331Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:20:57.159Z"},"containers":{"cna":{"title":"wifi: mt76: mt7996: Check phy before init msta_link in mt7996_mac_sta_add_links()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"dd82a9e02c054052b5899872c1f32805428f6131","status":"affected","lessThan":"2e671536c1c3c7bcad95d408a4ab42e2e54d1882","versionType":"git"},{"version":"dd82a9e02c054052b5899872c1f32805428f6131","status":"affected","lessThan":"fe5fffadc6c77c56f122cf1042dc830f59e904bf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/mediatek/mt76/mt7996/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.17.3","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/mediatek/mt76/mt7996/main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2e671536c1c3c7bcad95d408a4ab42e2e54d1882"},{"url":"https://git.kernel.org/stable/c/fe5fffadc6c77c56f122cf1042dc830f59e904bf"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:41:49.331Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.17.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}