First published: Tue Jan 21 2025(Updated: )
In the Linux kernel, the following vulnerability has been resolved: gpio: virtuser: fix missing lookup table cleanups When a virtuser device is created via configfs and the probe fails due to an incorrect lookup table, the table is not removed. This prevents subsequent probe attempts from succeeding, even if the issue is corrected, unless the device is released. Additionally, cleanup is also needed in the less likely case of platform_device_register_full() failure. Besides, a consistent memory leak in lookup_table->dev_id was spotted using kmemleak by toggling the live state between 0 and 1 with a correct lookup table. Introduce gpio_virtuser_remove_lookup_table() as the counterpart to the existing gpio_virtuser_make_lookup_table() and call it from all necessary points to ensure proper cleanup.
Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Software | Affected Version | How to fix |
---|---|---|
Linux Kernel |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-21661 is classified as a medium severity vulnerability in the Linux kernel.
The fix for CVE-2025-21661 involves applying the latest patch provided by the Linux kernel maintainers.
CVE-2025-21661 affects specific versions of the Linux kernel that implement the virtuser device through configfs.
The impact of CVE-2025-21661 is that a failed probe due to an incorrect lookup table prevents subsequent probes from being executed.
CVE-2025-21661 was discovered and resolved in the Linux kernel as part of the ongoing security updates.