CVE-2026-64574

Source
https://cve.org/CVERecord?id=CVE-2026-64574
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64574.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64574
Downstream
Published
2026-08-05T08:08:10.272Z
Modified
2026-08-06T03:48:34.421652908Z
Summary
wifi: mac80211: tear down new links on vif update error path
Details

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

wifi: mac80211: tear down new links on vif update error path

When ieee80211vifupdatelinks() adds new links it allocates a link container for each and calls ieee80211linkinit() (which registers the per-link debugfs files with file->privatedata pointing into the container) and ieee80211linksetup(). If the subsequent drvchangeviflinks() fails, the error path restores the old pointers and jumps to 'free', which frees the new containers but never removes their debugfs entries or stops the links. The debugfs files survive with file->privatedata dangling at the freed container, so a later open()+read() (e.g. link-1/txpower) dereferences freed memory in ieee80211ifread_link(), a use-after-free.

The removal path already dismantles links correctly via ieee80211teardownlinks(), which removes each link's keys and debugfs entries and calls ieee80211linkstop(); the add path on the error branch does not. Commit be1ba9ed221f ("wifi: mac80211: avoid weird state in error path") hardened this same error path for the link-removal case (newlinks == 0) but left the newly-added links' teardown unaddressed.

drvchangevif_links() can fail at runtime on MLO drivers (internal allocation / queue / firmware command failures).

Remove the new links' debugfs entries and stop them before freeing.

BUG: KASAN: slab-use-after-free in ieee80211ifreadlink (net/mac80211/debugfsnetdev.c:127) Read of size 8 at addr ffff888011290000 by task exploit/145 Call Trace: ... ieee80211ifreadlink (net/mac80211/debugfsnetdev.c:127) shortproxyread (fs/debugfs/file.c:373) vfsread (fs/readwrite.c:572) ksysread (fs/readwrite.c:716) dosyscall64 (arch/x86/entry/syscall64.c:94) entrySYSCALL64afterhwframe (arch/x86/entry/entry64.S:121) ... Oops: general protection fault, probably for non-canonical address 0xdffffc000000000a RIP: 0010:ieee80211ifreadlink (net/mac80211/debugfsnetdev.c:127) Kernel panic - not syncing: Fatal exception

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64574.json",
    "cna_assigner": "Linux"
}
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
170cd6a66d9a164180eb4dc72d50afa6ce1ce566
Fixed
329589417214d3b7221432e5b266ed2bba7ff674
Fixed
c57d97f381306bbfba174e8f708419e007824e0c
Fixed
0f7eaeb950adb77f71beb546e5ab30f90b41fe6f
Fixed
901a73523e093beff123b54b1ceaf3113f18acc9
Fixed
952c02b33f56207a160421bcd61e7ac53c9c59ae

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.4.0
Fixed
6.6.148
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.101
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.42
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.6

Database specific

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