{"id":"CVE-2021-47364","published":"2024-05-21T15:03:31Z","modified":"2026-05-11T13:53:16Z","title":"comedi: Fix memory leak in compat_insnlist()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: Fix memory leak in compat_insnlist()\n\n`compat_insnlist()` handles the 32-bit version of the `COMEDI_INSNLIST`\nioctl (whenwhen `CONFIG_COMPAT` is enabled).  It allocates memory to\ntemporarily hold an array of `struct comedi_insn` converted from the\n32-bit version in user space.  This memory is only being freed if there\nis a fault while filling the array, otherwise it is leaked.\n\nAdd a call to `kfree()` to fix the leak.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00305,"percentile":0.15672,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/8d6a21e4cd6a319b0662cbe4ad6199e276ac776a","tags":[]},{"url":"https://git.kernel.org/stable/c/f217b6c1e28ed0b353634ce4d92a155b80bd1671","tags":[]},{"url":"https://git.kernel.org/stable/c/bb509a6ffed2c8b0950f637ab5779aa818ed1596","tags":[]}],"priority":{"score":3.1,"factors":[{"name":"EPSS percentile","points":3.13}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b8d47d8813055ce38c0d2ad913d5462017e52692, < 8d6a21e4cd6a319b0662cbe4ad6199e276ac776a",">= b8d47d8813055ce38c0d2ad913d5462017e52692, < f217b6c1e28ed0b353634ce4d92a155b80bd1671",">= b8d47d8813055ce38c0d2ad913d5462017e52692, < bb509a6ffed2c8b0950f637ab5779aa818ed1596"]},{"vendor":"Linux","product":"Linux","versions":["5.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-23T18:02:02.368572Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34369","exploited":false,"provenance":"source"}}