CVE-2026-64527

Source
https://cve.org/CVERecord?id=CVE-2026-64527
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64527.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64527
Downstream
Published
2026-07-25T09:20:51.078Z
Modified
2026-07-27T04:03:22.904938646Z
Summary
drm/hyperv: validate VMBus packet size in receive callback
Details

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

drm/hyperv: validate VMBus packet size in receive callback

hypervreceivesub() reads msg->vidhdr.type and dispatches into one of four message-type branches without knowing how many bytes the host wrote into hv->recvbuf. The completion path then runs memcpy(hv->initbuf, msg, VMBUSMAXPACKETSIZE), so the consumer that wakes on waitforcompletion_timeout() can read up to 16 KiB of residue from a prior message as if it were the response payload.

Pass bytesrecvd into hypervreceivesub() and reject any packet that does not cover the pipe + synthvid header. A single switch on msg->vidhdr.type then computes the type-specific payload size: the three completion-driving types (SYNTHVIDVERSIONRESPONSE, SYNTHVIDRESOLUTIONRESPONSE, SYNTHVIDVRAMLOCATIONACK) fall through to a shared exit that requires that size before memcpy/complete, while SYNTHVIDFEATURECHANGE validates its own payload and returns before reading isdirt_needed. Unknown types are dropped.

SYNTHVIDRESOLUTIONRESPONSE is variable length: the host fills resolutioncount entries, not the full SYNTHVIDMAXRESOLUTIONCOUNT array. Validate the fixed prefix first so resolution_count can be read, bound it against the array, then require only the count-sized array, so the shorter responses the host actually sends are accepted.

Only run the sub-handler when vmbusrecvpacket() returned success. The memcpy length is bytesrecvd, which is bounded by VMBUSMAXPACKETSIZE only on a successful receive; on -ENOBUFS vmbusrecvpacket() instead reports the required length, which can exceed hv->recvbuf, so copying bytesrecvd would read and write past the 16 KiB buffers. Gating on the success return keeps the copy bounded. The nonzero-return path is itself a malformed-message case and is now logged rather than silently skipped; channel recovery is not attempted.

Rejected packets are reported via drmerrratelimited() rather than silently dropped, matching the CoCo-hardened pattern in hvkvponchannelcallback().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64527.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
76c56a5affeba1e163b66b9d8cc192e6154466f0
Fixed
57d5d697642e05d5dd2d40660817765943dd709f
Fixed
f5251226551bfec98c4705641b6f94ff1f238d91
Fixed
049a6b474823049fe60212f25f26e4b30f44ee8f
Fixed
588c84b461393ff1998ac7b97b04f953f642e0df
Fixed
164dc7bf17609340233c6bf4f66bb7c7008a0511
Fixed
c8974d96b6a5496f33dc69a3ce28a7bf5078def4
Fixed
7f87763f47a3c22fb50265a00619ef10f2394b18

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.14.0
Fixed
5.15.210
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.176
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.143
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.93
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.35
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.12

Database specific

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