CVEvulnerability

CVE-2026-46281

7.8 HIGH Published 2026-06-08 Modified 2026-07-23 Official page ↗
Status
Analyzed
Published
2026-06-08
Last modified
2026-07-23
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-787

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.

Affected configurations

• linux linux kernel (>= 6.18 < 6.18.27) • linux linux kernel (>= 6.19 < 7.0.4) • linux linux kernel 7.1

Related

Weakness · CWE (1)

  • CWE-787 Out-of-bounds Write weakness

References