Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2021-47477
HistoryMay 22, 2024 - 9:15 a.m.

CVE-2021-47477

2024-05-2209:15:09
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
29
linux kernel
comedi
dt9812
dma buffer
fix
usb transfer
buffer allocation
stack data
error handling
info leak

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

13.0%

In the Linux kernel, the following vulnerability has been resolved:

comedi: dt9812: fix DMA buffers on stack

USB transfer buffers are typically mapped for DMA and must not be
allocated on the stack or transfers will fail.

Allocate proper transfer buffers in the various command helpers and
return an error on short transfers instead of acting on random stack
data.

Note that this also fixes a stack info leak on systems where DMA is not
used as 32 bytes are always sent to the device regardless of how short
the command is.

Affected configurations

Vulners
Node
linuxlinux_kernelRange2.6.294.4.292
OR
linuxlinux_kernelRange4.5.04.9.290
OR
linuxlinux_kernelRange4.10.04.14.255
OR
linuxlinux_kernelRange4.15.04.19.217
OR
linuxlinux_kernelRange4.20.05.4.159
OR
linuxlinux_kernelRange5.5.05.10.79
OR
linuxlinux_kernelRange5.11.05.14.18
OR
linuxlinux_kernelRange5.15.05.15.2
OR
linuxlinux_kernelRange5.16.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/drivers/dt9812.c"
    ],
    "versions": [
      {
        "version": "63274cd7d38a",
        "lessThan": "a6af69768d5c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63274cd7d38a",
        "lessThan": "365a346cda82",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63274cd7d38a",
        "lessThan": "8a52bc480992",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63274cd7d38a",
        "lessThan": "39ea61037ae7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63274cd7d38a",
        "lessThan": "3efb7af8ac43",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63274cd7d38a",
        "lessThan": "786f5b034504",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63274cd7d38a",
        "lessThan": "3ac273d154d6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63274cd7d38a",
        "lessThan": "20cebb8b620d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "63274cd7d38a",
        "lessThan": "536de747bc48",
        "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/drivers/dt9812.c"
    ],
    "versions": [
      {
        "version": "2.6.29",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "2.6.29",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.4.292",
        "lessThanOrEqual": "4.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.9.290",
        "lessThanOrEqual": "4.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.14.255",
        "lessThanOrEqual": "4.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.217",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.159",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.79",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.14.18",
        "lessThanOrEqual": "5.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.2",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

13.0%