CVE-2026-46281

vmalloc: fix buffer overflow in vrealloc_node_align()

Published Jun 8, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel’s vmalloc subsystem contains a buffer overflow in the vrealloc_node_align function. When a buffer is resized to a smaller size, the routine copies the full old length bytewise into the new allocation. If the new allocation is smaller than the old, this results in an out‑of‑bounds write past the end of the destination buffer, corrupting kernel memory. The corruption can lead to a kernel crash, denial of service, or alteration of kernel state that could be leveraged for privilege escalation. The flaw is specifically tied to the need_realloc path that forces a new allocation when the current pointer is on the wrong NUMA node or does not meet alignment requirements, even for shrink operations.

Affected Systems

Any Linux kernel build that has not incorporated the commit that limits the copy length is affected. Because the vulnerability is addressed in a commit included in the mainline kernel, all stock Linux distributions shipping with a kernel older than that commit—and any custom kernels that exclude the update—fall within the scope. The relevant CPE identifiers indicate a broad range of Linux kernel releases, including version 7.1 release candidate 1 and all earlier kernels.

Risk and Exploitability

With a CVSS score of 7.8, the flaw represents medium‑to‑high risk. The EPSS score is listed as less than 1 %, indicating that the probability of exploitation is very low at the time of analysis. It is not catalogued in CISA’s KEV list. Based on the description, it is inferred that exploitation would require local or privileged system access to invoke the vulnerable routine; the vulnerability description does not explicitly state the required attack vector, so that assessment is an inference rather than a direct statement from the CVE data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that incorporates the commit which bounds the copy length.
  • If an upgrade is not immediately possible, apply the patch manually to your kernel source and rebuild the kernel.
  • Until the patch is applied, limit local users from executing code paths that trigger vmalloc resizing or monitor for anomalous memory usage that could indicate an attempt to exploit the flaw.

Generated by OpenCVE AI on August 13, 2026 at 22:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8488-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8489-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8488-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8507-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-119
Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-119
Type Values Removed Values Added
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.
Title vmalloc: fix buffer overflow in vrealloc_node_align()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jun 14, 2026, 6:06 PM
Reserved
May 13, 2026, 3:03 PM
Status
Analyzed
Published
Jun 8, 2026, 5:16 PM
Modified
Jul 23, 2026, 8:10 AM
Severity
Moderate
Public date
Jun 8, 2026, 12:00 AM