CVE-2026-64297
Last modified
CVE-2026-64297 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
Description
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.]
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.17, < 6.1.178 |
| Linux | Linux Kernel | >= 6.2, < 6.6.145 |
| Linux | Linux Kernel | >= 6.7, < 6.12.96 |
| Linux | Linux Kernel | >= 6.13, < 6.18.39 |
| Linux | Linux Kernel | >= 6.19, < 7.1.4 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-64297?
How severe is CVE-2026-64297?
How do I fix CVE-2026-64297?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-64291In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-64292In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-64293In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-64294In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-64295In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-64296In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-64298In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2026-64299In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2026-64300In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-64301In the Linux kernel, the following vulnerability has been re…
- CVE-2026-64302In the Linux kernel, the following vulnerability has been re…
- CVE-2026-64303In the Linux kernel, the following vulnerability has been re…9.8
Are you affected by CVE-2026-64297?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
