CVE-2026-46281

vmalloc: fix buffer overflow in vrealloc_node_align()

State
Published
Severity
Not scored
Published
Jun 8, 2026
Updated
Jun 14, 2026
Reserved
May 13, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4c5d3365882dbbc0784688784904f440d7a4c0f1 to before e9b057a44deff4c59c13f44672a5cc74dcd57522Affected
  • 4c5d3365882dbbc0784688784904f440d7a4c0f1 to before b281adf71f786c325eb6d6d1582d4d05313438a8Affected
  • 4c5d3365882dbbc0784688784904f440d7a4c0f1 to before 82d1f01292d3f09bf063f829f8ab8de12b4280a1Affected
LinuxLinux
  • 6.18Affected
  • before 6.18Not affected
  • 6.18.27 through 6.18.*Not affected
  • 7.0.4 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.