CVE-2026-64297
module: decompress: check return value of module_extend_max_pages()
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.]
INFO
Published Date :
July 25, 2026, 10:17 a.m.
Last Modified :
Aug. 17, 2026, 5:17 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the Linux kernel to the patched version.
- Verify the module loading path error handling.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-64297.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-64297 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-64297
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-64297 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-64297 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 17, 2026
Action Type Old Value New Value Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'e7f174715f9f0cbcb9e87b52e4fc4ef149baac98', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'afcc0515bbdd28d509a2b5870faaa89b137f5d53', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': '168072baf9ad516d5a06046514c7fea4c0671990', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'a82e170637e050a803b4f37542371ef216bf66d2', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'e7da02659c229f73492fb1ed87ceda4090153aaa', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': '786d2d84416a9a1c1a47b71a68d679d886284be2', 'versionType': 'git'}], 'programFiles': ['kernel/module/decompress.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['kernel/module/decompress.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'e7f174715f9f0cbcb9e87b52e4fc4ef149baac98', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'afcc0515bbdd28d509a2b5870faaa89b137f5d53', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': '168072baf9ad516d5a06046514c7fea4c0671990', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'a82e170637e050a803b4f37542371ef216bf66d2', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'e7da02659c229f73492fb1ed87ceda4090153aaa', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': '786d2d84416a9a1c1a47b71a68d679d886284be2', 'versionType': 'git'}], 'programFiles': ['kernel/module/decompress.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['kernel/module/decompress.c'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
Aug. 12, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-476 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.145 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.96 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.17 up to (excluding) 6.1.178 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.39 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.1.4 Added Reference Type kernel.org: https://git.kernel.org/stable/c/168072baf9ad516d5a06046514c7fea4c0671990 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/786d2d84416a9a1c1a47b71a68d679d886284be2 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a82e170637e050a803b4f37542371ef216bf66d2 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/afcc0515bbdd28d509a2b5870faaa89b137f5d53 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/e7da02659c229f73492fb1ed87ceda4090153aaa Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/e7f174715f9f0cbcb9e87b52e4fc4ef149baac98 Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 25, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'e7f174715f9f0cbcb9e87b52e4fc4ef149baac98', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'afcc0515bbdd28d509a2b5870faaa89b137f5d53', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': '168072baf9ad516d5a06046514c7fea4c0671990', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'a82e170637e050a803b4f37542371ef216bf66d2', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': 'e7da02659c229f73492fb1ed87ceda4090153aaa', 'versionType': 'git'}, {'status': 'affected', 'version': 'b1ae6dc41eaaa98bb75671e0f3665bfda248c3e7', 'lessThan': '786d2d84416a9a1c1a47b71a68d679d886284be2', 'versionType': 'git'}], 'programFiles': ['kernel/module/decompress.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['kernel/module/decompress.c'], 'defaultStatus': 'affected'}] Added 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.] Added Reference https://git.kernel.org/stable/c/168072baf9ad516d5a06046514c7fea4c0671990 Added Reference https://git.kernel.org/stable/c/786d2d84416a9a1c1a47b71a68d679d886284be2 Added Reference https://git.kernel.org/stable/c/a82e170637e050a803b4f37542371ef216bf66d2 Added Reference https://git.kernel.org/stable/c/afcc0515bbdd28d509a2b5870faaa89b137f5d53 Added Reference https://git.kernel.org/stable/c/e7da02659c229f73492fb1ed87ceda4090153aaa Added Reference https://git.kernel.org/stable/c/e7f174715f9f0cbcb9e87b52e4fc4ef149baac98