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.
Published: 2026-06-08
Score: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s vmalloc subsystem contains a buffer overflow flaw in the vrealloc_node_align function. When resizing a buffer to a smaller size, the function copies more bytes than the new allocation holds, writing past the end of the destination buffer. This out‑of‑bounds write corrupts kernel memory and can cause a crash or alter kernel state, potentially enabling privilege escalation.

Affected Systems

Any Linux kernel build that has not incorporated the commit that limits the copy length is affected. Since the commit is part of the mainline kernel, the vulnerability applies to all stock Linux distributions that ship with a kernel older than the commit. Distribution references are not enumerated, so the specific affected release series may vary.

Risk and Exploitability

With a CVSS score of 7.0, the flaw represents a medium‑to‑high risk. The EPSS score is not available and it is not listed in CISA’s KEV catalog. Exploitation requires local or privileged system access to execute code that calls the vulnerable routine. Successful exploitation would corrupt kernel memory, potentially leading to denial of service or privilege escalation.

Generated by OpenCVE AI on June 9, 2026 at 04:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that incorporates the commit which bounds the copy length.
  • If an upgrade is not immediately possible, recompile the kernel with the patch applied to prevent the overflow.
  • Limit local users to avoid triggering the vulnerable code path, and monitor for anomalous kernel memory usage.

Generated by OpenCVE AI on June 9, 2026 at 04:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 09 Jun 2026 02:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Tue, 09 Jun 2026 00:15:00 +0000

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


Mon, 08 Jun 2026 19:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Mon, 08 Jun 2026 17:00:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-08T15:41:24.168Z

Reserved: 2026-05-13T15:03:33.110Z

Link: CVE-2026-46281

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-08T17:16:45.817

Modified: 2026-06-08T17:16:45.817

Link: CVE-2026-46281

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-06-08T00:00:00Z

Links: CVE-2026-46281 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-06-09T04:30:42Z

Weaknesses