CVE-2025-40256
BaseFortify
Publication date: 2025-12-04
Last updated on: 2025-12-12
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
Can you explain this vulnerability to me?
This vulnerability in the Linux kernel involves a flaw in the handling of xfrm states related to IPcomp tunnels. Specifically, when state creation fails after initialization but before being added to internal lists, the fallback tunnel (FB tunnel) is created and added, but the user state is not. Because the user state does not go through the usual deletion process, the fallback tunnel is not properly deleted, leading to a resource leak. The fix ensures that the fallback tunnel is deleted during garbage collection even if the state was never fully added, preventing the leak.
How can this vulnerability impact me? :
This vulnerability can lead to resource leaks in the Linux kernel's handling of IPcomp tunnels, potentially causing increased memory usage or exhaustion of kernel resources over time. This could degrade system performance or stability, especially in environments heavily using IPsec tunnels with IPcomp. However, there is no indication of direct code execution or privilege escalation from this issue.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability has been resolved in the Linux kernel by ensuring that xfrm_state_delete_tunnel is called during the destruction of states that were never added, preventing fallback tunnel leaks. To mitigate this vulnerability, you should update your Linux kernel to the version that includes the fix (commit b441cf3f8c4b and subsequent patches).