CVE-2025-40066

Source
https://cve.org/CVERecord?id=CVE-2025-40066
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40066.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-40066
Downstream
Published
2025-10-28T11:48:36.438Z
Modified
2025-12-05T10:15:51.143425Z
Summary
wifi: mt76: mt7996: Check phy before init msta_link in mt7996_mac_sta_add_links()
Details

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

wifi: mt76: mt7996: Check phy before init mstalink in mt7996macstaadd_links()

In order to avoid a possible NULL pointer dereference in mt7996macstainitlink routine, move the phy pointer check before running mt7996macstainitlink() in mt7996macstaaddlinks routine.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40066.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
dd82a9e02c054052b5899872c1f32805428f6131
Fixed
2e671536c1c3c7bcad95d408a4ab42e2e54d1882
Fixed
fe5fffadc6c77c56f122cf1042dc830f59e904bf

Affected versions

v6.*
v6.14
v6.14-rc7
v6.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.16
v6.16-rc1
v6.16-rc2
v6.16-rc3
v6.16-rc4
v6.16-rc5
v6.16-rc6
v6.16-rc7
v6.17
v6.17-rc1
v6.17-rc2
v6.17-rc3
v6.17-rc4
v6.17-rc5
v6.17-rc6
v6.17-rc7
v6.17.1
v6.17.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40066.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.15.0
Fixed
6.17.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40066.json"