CVE-2026-46281

vmalloc: fix buffer overflow in vrealloc_node_align()

published June 8, 2026

CVSS
—
EPSS
0%
Percentile
7.9
In the wild
Unconfirmed
What it is

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

vmalloc: fix buffer overflow in vrealloc_node_align()

Commit 4c5d3365882d ("mm/vmalloc: allow to set node and align in

vrealloc") added the ability to force a new allocation if the current

pointer is on the wrong NUMA node, or if an alignment constraint is not

met, even if the user is shrinking the allocation.

On this path (need_realloc), the code allocates a new object of 'size'

bytes and then memcpy()s 'old_size' bytes into it. If the request is to

shrink the object (size < old_size), this results in an out-of-bounds

write on the new buffer.

Fix this by bounding the copy length by the new allocation size.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00187 · 7.9th percentile
Published
2026-06-08T15:41Z
EPSS history
Timeline
  • 08 JUN 15:41Z
    vmalloc: fix buffer overflow in vrealloc_node_align()
    cvelistv5