CVE-2026-64297
module: decompress: check return value of module_extend_max_pages()
Reported by linux · Published July 25, 2026
In the Linux kernel, the following vulnerability has been resolved: module: decompress: check return value of module_extend_max_pages() module_extend_max_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->max_pages remains 0. Subsequent calls to module_get_next_page() will attempt to dynamically grow the array by calling module_extend_max_pages(info, 0) since info->used_pages is 0. This results in kvrealloc(NULL, 0) returning ZERO_SIZE_PTR, which is treated as a success, leading to a dereference of ZERO_SIZE_PTR and a kernel oops. Fix: add the missing error check after module_extend_max_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.]
EPSS 0.16% · 5.2th percentile
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7, b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7, b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7 |
| Linux | Linux | 5.17, 0, 6.1.178 |
| linux | linux_kernel | 5.17, 5.17, 5.17 |
| chainguard | linux-gcp-6.18 | 0 |
| Linux | Linux | 5.17, 0, 6.1.178 |
Timeline
- Jul 25, 2026 EPSS Score (11 in total, the first dated here)
- Jul 25, 2026 Coalition ESS Score
- Jul 25, 2026 CVE Published
- Jul 26, 2026 Security Advisory (20 in total, the first dated here)
- Aug 12, 2026 Distribution Patch (21 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-64297
vulnetix vdb fixes CVE-2026-64297
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-64297/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart