Linux Kernel Double Free Vulnerability in Hisilicon QM Crypto Driver

Vulnerability

A double free vulnerability has been identified in the Linux kernel's Hisilicon QM crypto driver. This issue arises because the initialization of the 'qm->debug.acc_diff_reg' can fail, causing the probe process to continue without properly handling the error. After the 'qm->debug.qm_diff_regs' is freed, it is not reset to NULL, leading to a double free when the removal process tries to free it again. The vulnerability affects the Linux kernel stable tree.

Impact

Exploitation of this vulnerability can lead to a double free condition, which may cause memory corruption and potentially allow for arbitrary code execution.

Reproduction

The vulnerability can be reproduced by initializing the 'qm->debug.acc_diff_reg' in the Hisilicon QM crypto driver, causing the initialization to fail. This will leave 'qm->debug.qm_diff_regs' freed but not set to NULL. When the removal process attempts to free 'qm->debug.qm_diff_regs' again, it will result in a double free.

Remediation

The vulnerability has been addressed in the Linux kernel stable tree. Users can upgrade to the latest version to mitigate this issue.

Added: Oct 28, 2025, 12:42 PM
Updated: Oct 28, 2025, 12:42 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.9
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.