CVE-2025-39776
BaseFortify
Publication date: 2025-09-11
Last updated on: 2025-11-03
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 6.1.153 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel's debug_vm_pagetable test, where page table entries allocated manually are not properly cleared during the destroy_args() function. This leaves stale page table entries that can be reused by other processes, potentially causing incorrect memory mappings or kernel warnings/errors when those stale entries are accessed.
How can this vulnerability impact me? :
The impact of this vulnerability is that processes may encounter stale page table entries, which can lead to kernel warnings, errors, or unstable behavior in a debug kernel environment with CONFIG_DEBUG_VM_PGTABLE enabled. This could affect system stability or debugging accuracy but is limited to debug kernel configurations.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring kernel warning messages related to stale page table entries and memory management issues. Specifically, look for warning traces in the kernel logs indicating negative pgtables_bytes values or warnings at the check_mm() function. You can use the command 'dmesg | grep debug_vm_pgtable' or 'dmesg | grep WARNING' to find relevant kernel warnings. Additionally, monitoring for BUG messages related to rss-counter state or non-zero pgtables_bytes on freeing mm_struct can indicate the presence of this issue.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves ensuring that the kernel is updated to a version where this vulnerability is fixed, as it relates to the clearing of page table entries in the debug_vm_pgtable test. If running a debug kernel with CONFIG_DEBUG_VM_PGTABLE=y, consider disabling this configuration or updating to a patched kernel version. Monitoring and avoiding use of affected debug kernel builds can prevent encountering this issue.