CVE-2026-64402

Source
https://cve.org/CVERecord?id=CVE-2026-64402
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64402.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64402
Downstream
Published
2026-07-25T08:50:45.075Z
Modified
2026-07-27T04:03:19.345773252Z
Summary
coresight: ultrasoc-smb: Fix OOB write in smb_sync_perf_buffer()
Details

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

coresight: ultrasoc-smb: Fix OOB write in smbsyncperf_buffer()

When the SMB sink is used as a perf AUX sink, smbupdatebuffer() calls smbsyncperfbuffer() to copy hardware trace data into the perf AUX ring buffer pages. It derives pgidx = head >> PAGESHIFT from @head, which is handle->head, and indexes dstpages[pgidx]. The pgidx %= nr_pages normalization is only applied after the first loop iteration.

This leaves the initial page index underived from the buffer size, which can result in an out-of-bounds write past dst_pages[] when head exceeds the AUX buffer size.

Normalize head modulo the AUX buffer size before deriving the page index and offset, mirroring tmcetrsyncperfbuffer().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64402.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
06f5c2926aaa0fba7f99678da6ef77cbbbda1441
Fixed
38dbc8db8341ccdf8e1e1a067453d33ad751864b
Fixed
4c5a0a946373da99a80398289b28845b5ae40cd1
Fixed
661a019ac0413ecec9e5d1dfcc12fbca8e78d5fb
Fixed
daf6246ab988fc8bdc82ad7c8d0b1c182d11b15f
Fixed
98495b5a4d77dd22e106f462b76e1093a55b29a7

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.3.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

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