# CVE-2026-46281: vmalloc: fix buffer overflow in vrealloc_node_align()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-06-08T15:41:24.168Z
- Modified: 2026-07-23T08:10:00.137Z
- Weaknesses: CWE-787
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 4c5d3365882dbbc0784688784904f440d7a4c0f1 before e9b057a44deff4c59c13f44672a5cc74dcd57522; from 4c5d3365882dbbc0784688784904f440d7a4c0f1 before b281adf71f786c325eb6d6d1582d4d05313438a8; from 4c5d3365882dbbc0784688784904f440d7a4c0f1 before 82d1f01292d3f09bf063f829f8ab8de12b4280a1; 6.18 (not affected: before 6.18; from 6.18.27 up to 6.18.*; from 7.0.4 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.18 before 6.18.27; from 6.19 before 7.0.4; 7.1

## References

- <https://git.kernel.org/stable/c/e9b057a44deff4c59c13f44672a5cc74dcd57522> (patch)
- <https://git.kernel.org/stable/c/b281adf71f786c325eb6d6d1582d4d05313438a8> (patch)
- <https://git.kernel.org/stable/c/82d1f01292d3f09bf063f829f8ab8de12b4280a1> (patch)

## Sources

- CVE List: [CVE-2026-46281](https://www.cve.org/CVERecord?id=CVE-2026-46281), CVE Terms of Use, modified 2026-06-14
- NVD: [CVE-2026-46281](https://nvd.nist.gov/vuln/detail/CVE-2026-46281), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-46281 · Whole record: https://cve.day/CVE-2026-46281.json · Rebuilt by cve.day 2026-11-25T22:59:24.002Z
