iio: gyro: mpu3050: Fix irq resource leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3904b28efb2c780c23dcddfb87e07fe0230661e5 · < 3a8e68d65a443de05061818823037931674740e0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iio: gyro: mpu3050: Fix irq resource leak
The interrupt handler is setup but only a few lines down if iio_trigger_register() fails the function returns without properly releasing the handler.
Add cleanup goto to resolve resource leak.
Detected by Smatch: drivers/iio/gyro/mpu3050-core.c:1128 mpu3050_trigger_probe() warn: 'irq' from request_threaded_irq() not released on lines: 1124.
From the CVE record · Linux
The Linux kernel’s mpu3050 gyroscope driver fails to release an interrupt handler if trigger registration fails. This causes a resource leak; the input does not specify how an attacker could trigger it or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the mpu3050 gyroscope driver should check their kernel vendor’s advisory; affected versions are not specified.