CVE-2021-47364

comedi: Fix memory leak in compat_insnlist()

published May 21, 2024

CVSS
—
EPSS
0%
Percentile
14.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00239 · 14.1th percentile
Published
2024-05-21T15:03Z
EPSS history
Timeline
  • 21 MAY 15:03Z
    comedi: Fix memory leak in compat_insnlist()
    cvelistv5