In the Linux kernel, the following vulnerability has been resolved: comedi: Fix memory leak in compat_insnlist() `compat_insnlist()` handles the 32-bit version of the `COMEDI_INSNLIST` ioctl (whenwhen `CONFIG_COMPAT` is enabled). It allocates memory to temporarily hold an array of `struct comedi_insn` converted from the 32-bit version in user space. This memory is only being freed if there is a fault while filling the array, otherwise it is leaked. Add a call to `kfree()` to fix the leak.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2024-05-21T15:03:31.852Z

Updated: 2024-08-04T05:32:08.649Z

Reserved: 2024-05-21T14:58:30.809Z

Link: CVE-2021-47364

cve-icon Vulnrichment

Updated: 2024-05-23T18:02:06.627Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2024-05-21T15:15:22.497

Modified: 2024-05-21T16:54:26.047

Link: CVE-2021-47364

cve-icon Redhat

Severity : Low

Publid Date: 2024-05-21T00:00:00Z

Links: CVE-2021-47364 - Bugzilla