CVE-2026-64297

Source
https://cve.org/CVERecord?id=CVE-2026-64297
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64297.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64297
Downstream
Published
2026-07-25T08:49:34.486Z
Modified
2026-07-27T04:03:21.482245514Z
Summary
module: decompress: check return value of module_extend_max_pages()
Details

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

module: decompress: check return value of moduleextendmax_pages()

moduleextendmax_pages() calls kvrealloc() internally and returns -ENOMEM on allocation failure. The return value is never checked.

If the initial allocation fails, info->pages remains NULL and info->maxpages remains 0. Subsequent calls to modulegetnextpage() will attempt to dynamically grow the array by calling moduleextendmaxpages(info, 0) since info->usedpages is 0. This results in kvrealloc(NULL, 0) returning ZEROSIZEPTR, which is treated as a success, leading to a dereference of ZEROSIZEPTR and a kernel oops.

Fix: add the missing error check after moduleextendmax_pages() and return immediately on failure. This matches the pattern used by every other kvrealloc() caller in the module loading path.

[Sami: Corrected the analysis in the commit message.]

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64297.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
b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7
Fixed
e7f174715f9f0cbcb9e87b52e4fc4ef149baac98
Fixed
afcc0515bbdd28d509a2b5870faaa89b137f5d53
Fixed
168072baf9ad516d5a06046514c7fea4c0671990
Fixed
a82e170637e050a803b4f37542371ef216bf66d2
Fixed
e7da02659c229f73492fb1ed87ceda4090153aaa
Fixed
786d2d84416a9a1c1a47b71a68d679d886284be2

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

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