CVE-2025-38581
BaseFortify
Publication date: 2025-08-19
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 | kernel | 6.1.153 |
| linux | kernel | 5.10.244 |
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 crypto CCP device driver when the CONFIG_CRYPTO_DEV_CCP_DEBUGFS option is enabled. Rebinding the CCP device causes a kernel crash due to a NULL pointer dereference. Specifically, after unbinding and rebinding the device, the debugfs directory pointer is not properly reset, leading to a crash when the system tries to recreate the debugfs directory. The patch fixes this by setting the debugfs directory pointer to NULL after destroying it, allowing safe recreation upon rebinding.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash (kernel panic) when the CCP device is rebound with debugfs enabled. This can lead to system instability, downtime, and potential loss of data or service availability on affected systems using the CCP device with debugfs enabled.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by attempting to rebind the ccp device when CONFIG_CRYPTO_DEV_CCP_DEBUGFS is enabled and observing if the system crashes with a kernel NULL pointer dereference. The commands to test this are: $ echo '0000:0a:00.2' > /sys/bus/pci/drivers/ccp/unbind $ echo '0000:0a:00.2' > /sys/bus/pci/drivers/ccp/bind If the system logs show a kernel crash with messages similar to a NULL pointer dereference and a call trace involving ccp5_debugfs_setup, the vulnerability is present.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves applying the patch that sets ccp_debugfs_dir to NULL after destroying it in ccp5_debugfs_destroy, which prevents the crash when rebinding the ccp device. If patching is not immediately possible, avoid rebinding the ccp device while CONFIG_CRYPTO_DEV_CCP_DEBUGFS is enabled to prevent triggering the crash.