CVE-2025-38581 Information
Description
In the Linux kernel the following vulnerability has been resolved:
crypto: ccp - Fix crash when rebind ccp device for ccp.ko
When CONFIG_CRYPTO_DEV_CCP_DEBUGFS is enabled rebinding the ccp device causes the following crash:
$ echo ‘0000:0a:00.2’ > /sys/bus/pci/drivers/ccp/unbind $ echo ‘0000:0a:00.2’ > /sys/bus/pci/drivers/ccp/bind
[ 204.976930] BUG: kernel NULL pointer dereference address: 0000000000000098
[ 204.978026] PF: supervisor write access in kernel mode
[ 204.979126] PF: error_code(0x0002) - not-present page
[ 204.980226] PGD 0 P4D 0
[ 204.981317] Oops: Oops: 0002 [1] SMP NOPTI
…
[ 204.997852] Call Trace:
[ 204.999074]
This patch sets ccp_debugfs_dir to NULL after destroying it in ccp5_debugfs_destroy allowing the directory dentry to be recreated when rebinding the ccp device.
Tested on AMD Ryzen 7 1700X.
Reference
https://git.kernel.org/stable/c/181698af38d3f93381229ad89c09b5bd0496661a https://git.kernel.org/stable/c/2d4060f05e74dbee884ba723f6afd9282befc3c5 https://git.kernel.org/stable/c/64ec9a7e7a6398b172ab6feba60e952163a1c3d5 https://git.kernel.org/stable/c/6eadf50c1d894cb34f3237064063207460946040 https://git.kernel.org/stable/c/9dea08eac4f6d6fbbae59992978252e2edab995d https://git.kernel.org/stable/c/db111468531777cac8b4beb6515a88a54b0c4a74
Related CNNVD
CNNVD-202508-2143 (Published: 2025-08-19)
Share on: