Linux Kernel Toshiba HDD Active Protection Sensor Memory Leak Vulnerability

Vulnerability

A memory leak vulnerability has been identified in the Linux kernel's handling of Toshiba HDD Active Protection Sensor devices. The issue arises in the 'toshiba_haps_add' function, which fails to free an allocated object if an error occurs after the allocation. Similarly, the 'toshiba_haps_remove' function does not properly release the object it points to before clearing the pointer, leading to unreachable memory. This vulnerability affects the Linux kernel stable tree.

Impact

The vulnerability can lead to memory leaks, causing increased memory usage and potential degradation of system performance over time.

Reproduction

The vulnerability can be reproduced by adding a Toshiba HDD Active Protection Sensor device, which will trigger the memory leak in the 'toshiba_haps_add' function. Removing the device will also demonstrate the issue, as the 'toshiba_haps_remove' function fails to free the associated object, leaving allocated memory unreachable.

Remediation

The vulnerability has been addressed by modifying the memory allocation method to use 'devm_kzalloc', which automatically manages the memory and prevents leaks. Users should apply the latest patches available in the Linux kernel stable tree to mitigate this issue.

Added: Feb 14, 2026, 5:39 PM
Updated: Feb 14, 2026, 5:39 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
7.7
relevance
3.1
threat
4.8
urgency
2.9
incentive
0.0

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