CVE-2025-21661

published 21 Jan 2025 · updated 5 Aug 2026

gpio: virtuser: fix missing lookup table cleanups

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel a619cba8c69c434258ff4101d463322cd63e1bdc and Kernel d72d0126b1f6981f6ce8b4247305f359958c11b5.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.11, >=91581c4b3f29e2e22aeb1a62e842d529ca638b2d <a619cba8c69c434258ff4101d463322cd63e1bdc, >=91581c4b3f29e2e22aeb1a62e842d529ca638b2d <d72d0126b1f6981f6ce8b4247305f359958c11b5a619cba8c69c434258ff4101d463322cd63e1bdc, d72d0126b1f6981f6ce8b4247305f359958c11b5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-21661 severity on Zeptric[![CVE-2025-21661](https://zeptric.io/badge/cve/CVE-2025-21661.svg)](https://zeptric.io/cve/CVE-2025-21661)