CVE-2025-40245
BaseFortify
Publication date: 2025-12-04
Last updated on: 2025-12-04
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update the Linux kernel to a version that includes the patch fixing the memblock.current_limit initialization issue on nios2 with CONFIG_FLATMEM. This patch ensures correct calculation of memory limits to prevent kernel paging failures.
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel on the nios2 architecture with CONFIG_FLATMEM set. The kernel relies on memblock.current_limit to determine memory map limits, but memblock.current_limit is only default initialized early in boot, which can cause the maximum low page frame number (max_low_pfn) to exceed the maximum page frame number (max_pfn) and the valid DRAM range. This can lead to kernel-level paging failures and kernel panics.
How can this vulnerability impact me? :
This vulnerability can cause kernel paging failures resulting in kernel panics, which means the system can crash and become unstable or unusable. This can lead to downtime and potential data loss or corruption.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring kernel logs for paging failures or kernel panics related to memory management on nios2 architecture with CONFIG_FLATMEM set. Specifically, look for messages such as 'Unable to handle kernel paging request at virtual address' and 'Kernel panic - not syncing: Oops'. You can check kernel logs using commands like 'dmesg | grep -i panic' or 'journalctl -k | grep -i paging'.