scsi: snic: Fix memory leak with using debugfs_lookup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: snic: Fix memory leak with using debugfs_lookup()
When calling debugfs_lookup() the result must have dput() called on it, otherwise the memory will leak over time. To make things simpler, just call debugfs_lookup_and_remove() instead which handles all of the logic at once.
From the CVE record · Linux
The Linux kernel’s snic SCSI driver can leak memory over time because a debugfs lookup result is not released. The input does not describe an attacker-controlled trigger or establish whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the snic SCSI driver should check their kernel version; affected versions are not specified in the input.