Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2021-47364
HistoryMay 21, 2024 - 3:15 p.m.

CVE-2021-47364

2024-05-2115:15:22
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
27
cve-2021-47364
vulnerability
linux kernel
comedi
memory leak
compat_insnlist()
ioctl
kfree()

6.5 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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.

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.85.10.70
OR
linuxlinux_kernelRange5.11.05.14.9
OR
linuxlinux_kernelRange5.15.0

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/comedi/comedi_fops.c"
    ],
    "versions": [
      {
        "version": "b8d47d881305",
        "lessThan": "8d6a21e4cd6a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b8d47d881305",
        "lessThan": "f217b6c1e28e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b8d47d881305",
        "lessThan": "bb509a6ffed2",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/comedi/comedi_fops.c"
    ],
    "versions": [
      {
        "version": "5.8",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.8",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.70",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.14.9",
        "lessThanOrEqual": "5.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.5 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%