In the Linux kernel, the following vulnerability has been resolved: module: decompress: check return value of module_extend_max_pages()… (CVE-2026-64297)
A vulnerability in the Linux kernel module decompression code arises from the failure to check the return value of module_extend_max_pages(), which internally calls kvrealloc(). On allocation failure, kvrealloc() returns -ENOMEM, but this error is not handled, leading to a potential dereference of a ZERO_SIZE_PTR and a kernel oops. The issue has been fixed by adding the missing error check and returning immediately on failure.
AI Analysis
Technical Summary
The Linux kernel contained a flaw in the module decompression code where the function module_extend_max_pages() calls kvrealloc() to allocate memory but does not check for allocation failure. If kvrealloc() returns -ENOMEM, the code proceeds as if allocation succeeded, resulting in info->pages being NULL and info->max_pages being 0. Subsequent calls attempt to grow the array with a zero size, causing kvrealloc(NULL, 0) to return ZERO_SIZE_PTR, which is incorrectly treated as success. This leads to dereferencing ZERO_SIZE_PTR and triggers a kernel oops (crash). The fix involves adding the missing error check after module_extend_max_pages() and returning immediately on failure, aligning with other callers in the module loading path.
Potential Impact
The vulnerability can cause a kernel oops (crash) due to dereferencing an invalid pointer when memory allocation fails during module decompression. This results in denial of service by crashing the kernel. There is no indication of code execution or privilege escalation from the provided data.
Mitigation Recommendations
A fix has been implemented that adds the missing error check after module_extend_max_pages() and returns immediately on failure. Users should apply the official Linux kernel updates that include this fix. Patch status is not yet confirmed in the provided data; check the vendor advisory for current remediation guidance.
In the Linux kernel, the following vulnerability has been resolved: module: decompress: check return value of module_extend_max_pages()… (CVE-2026-64297)
Description
A vulnerability in the Linux kernel module decompression code arises from the failure to check the return value of module_extend_max_pages(), which internally calls kvrealloc(). On allocation failure, kvrealloc() returns -ENOMEM, but this error is not handled, leading to a potential dereference of a ZERO_SIZE_PTR and a kernel oops. The issue has been fixed by adding the missing error check and returning immediately on failure.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel contained a flaw in the module decompression code where the function module_extend_max_pages() calls kvrealloc() to allocate memory but does not check for allocation failure. If kvrealloc() returns -ENOMEM, the code proceeds as if allocation succeeded, resulting in info->pages being NULL and info->max_pages being 0. Subsequent calls attempt to grow the array with a zero size, causing kvrealloc(NULL, 0) to return ZERO_SIZE_PTR, which is incorrectly treated as success. This leads to dereferencing ZERO_SIZE_PTR and triggers a kernel oops (crash). The fix involves adding the missing error check after module_extend_max_pages() and returning immediately on failure, aligning with other callers in the module loading path.
Potential Impact
The vulnerability can cause a kernel oops (crash) due to dereferencing an invalid pointer when memory allocation fails during module decompression. This results in denial of service by crashing the kernel. There is no indication of code execution or privilege escalation from the provided data.
Mitigation Recommendations
A fix has been implemented that adds the missing error check after module_extend_max_pages() and returns immediately on failure. Users should apply the official Linux kernel updates that include this fix. Patch status is not yet confirmed in the provided data; check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5c7j-4454-42wh
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64297"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a65420e9c2644c7f8086045
Added to database: 07/25/2026, 23:09:02 UTC
Last enriched: 07/25/2026, 23:37:57 UTC
Last updated: 07/26/2026, 03:44:43 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.