{"id":"CVE-2021-47364","aliases":["CVE-2021-47364"],"related":[],"kind":"vulnerability","state":"published","title":"comedi: Fix memory leak in compat_insnlist()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: comedi: Reparar pérdida de memoria en compat_insnlist() `compat_insnlist()` maneja la versión de 32 bits del ioctl `COMEDI_INSNLIST` (cuando `CONFIG_COMPAT` está habilitado). Asigna memoria para almacenar temporalmente una matriz de `struct comedi_insn` convertida desde la versión de 32 bits en el espacio de usuario. Esta memoria solo se libera si hay una falla al llenar la matriz; de lo contrario, se pierde. Agregue una llamada a `kfree()` para solucionar la fuga.","source":"nvd"}],"published":"2024-05-21T15:03:31.852Z","modified":"2026-06-17T04:17:17.983Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"b8d47d8813055ce38c0d2ad913d5462017e52692","fixed":"8d6a21e4cd6a319b0662cbe4ad6199e276ac776a","status":"affected"},{"type":"git","introduced":"b8d47d8813055ce38c0d2ad913d5462017e52692","fixed":"f217b6c1e28ed0b353634ce4d92a155b80bd1671","status":"affected"},{"type":"git","introduced":"b8d47d8813055ce38c0d2ad913d5462017e52692","fixed":"bb509a6ffed2c8b0950f637ab5779aa818ed1596","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.70","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.14.9","lastAffected":"5.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.8","fixed":"5.10.70"},{"status":"affected","introduced":"5.11","fixed":"5.14.9"},{"status":"affected","version":"5.15"},{"status":"affected","version":"5.15"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/8d6a21e4cd6a319b0662cbe4ad6199e276ac776a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f217b6c1e28ed0b353634ce4d92a155b80bd1671","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bb509a6ffed2c8b0950f637ab5779aa818ed1596","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-23T18:02:02.368Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47364","url":"https://www.cve.org/CVERecord?id=CVE-2021-47364","licence":"CVE Terms of Use","modified":"2026-05-11T13:53:16.771Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47364","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47364","licence":"Public domain","modified":"2026-06-17T04:17:17.983Z"}],"updatedAt":"2026-11-25T22:58:08.817Z","epss":{"score":0.00239,"percentile":0.16029,"date":"2026-12-01T12:00:22.000Z"}}