Skip to content

x/sys/windows, internal/syscall/windows: integer overflow in NewNTUnicodeString #78916

Description

@neild

NewNTUnicodeString did not check for string length overflow.
When provided with a string that overflows the maximum size of
a NTUnicodeString (a 16-bit number of bytes), it returned a truncated
string rather than an error.

It now correctly returns an error when provided with a too-long string.

This is CVE-2026-39824 and Go issue https://go.dev/issue/78916.


This was a PUBLIC track issue, tracked in http://b/502133867.

Metadata

Metadata

Assignees

Labels

BugReportIssues describing a possible bug in the Go implementation.FixPendingIssues that have a fix which has not yet been reviewed or submitted.Securitycompiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions