Linux Kernel IIO Trigger Sysfs Memory Leak Vulnerability

Vulnerability

A memory leak vulnerability has been identified in the Linux kernel's IIO (Industrial I/O) subsystem, specifically within the sysfs trigger management. The issue arises in the 'iio_sysfs_trig_init()' function, where memory allocated for device names is not properly freed if 'device_add()' fails. This oversight can lead to unreferenced memory objects, as demonstrated by a fault injection test that triggered the leak. The vulnerability has been resolved in the Linux kernel.

Impact

Exploitation of this vulnerability could lead to a memory leak, causing increased memory usage and potentially leading to a denial-of-service condition.

Reproduction

The vulnerability can be reproduced by loading a module that utilizes the IIO sysfs trigger management. The 'iio_sysfs_trig_init()' function will allocate memory for the device name. If 'device_add()' fails, the allocated memory is not freed, leading to a memory leak. This can be observed with a fault injection test that triggers the unreferenced object.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
0.0
relevance
0.0
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.