CVE-2025-21661
Linux Debian vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's GPIO virtuser driver was discovered and resolved on January 21, 2025. The issue occurs when a virtuser device is created via configfs and the probe fails due to an incorrect lookup table, where the table is not properly removed. This vulnerability is tracked as CVE-2025-21661 (NVD, Debian).

Technical details

The vulnerability stems from a cleanup issue in the GPIO virtuser driver where the lookup table is not properly removed after a failed probe attempt. Additionally, cleanup is also needed in the case of platformdeviceregisterfull() failure. A consistent memory leak in lookuptable->dev_id was identified using kmemleak by toggling the live state between 0 and 1 with a correct lookup table (Kernel Commit).

Impact

The vulnerability prevents subsequent probe attempts from succeeding, even if the issue is corrected, unless the device is released. This can lead to system resource leaks and potential denial of service conditions (NVD).

Mitigation and workarounds

The issue has been fixed by introducing gpiovirtuserremovelookuptable() as the counterpart to the existing gpiovirtusermakelookuptable() and calling it from all necessary points to ensure proper cleanup. The fix is included in the Linux kernel commit a619cba8c69c (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management