CVE-2026-46281

Source
https://cve.org/CVERecord?id=CVE-2026-46281
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46281.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-46281
Downstream
Related
Published
2026-06-08T15:41:24.168Z
Modified
2026-06-18T03:56:13.078358331Z
Summary
vmalloc: fix buffer overflow in vrealloc_node_align()
Details

In the Linux kernel, the following vulnerability has been resolved:

vmalloc: fix buffer overflow in vreallocnodealign()

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 (needrealloc), the code allocates a new object of 'size' bytes and then memcpy()s 'oldsize' 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46281.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4c5d3365882dbbc0784688784904f440d7a4c0f1
Fixed
e9b057a44deff4c59c13f44672a5cc74dcd57522
Fixed
b281adf71f786c325eb6d6d1582d4d05313438a8
Fixed
82d1f01292d3f09bf063f829f8ab8de12b4280a1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46281.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.18.0
Fixed
6.18.27
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-46281.json"