CVE-2021-47477
published 2024-05-22CVE-2021-47477: 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…
PriorityP340high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.72%
49.8th percentile
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
23 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 5.15.3-1 (bookworm) | linux 5.15.3-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 63274cd7d38a3322d90b66a5bc976de1fb899051 < a6af69768d5cb4b2528946d53be5fa19ade37723 | a6af69768d5cb4b2528946d53be5fa19ade37723 |
| linux | linux | >= 63274cd7d38a3322d90b66a5bc976de1fb899051 < 365a346cda82f51d835c49136a00a9df8a78c7f2 | 365a346cda82f51d835c49136a00a9df8a78c7f2 |
| linux | linux | >= 63274cd7d38a3322d90b66a5bc976de1fb899051 < 8a52bc480992c7c9da3ebfea456af731f50a4b97 | 8a52bc480992c7c9da3ebfea456af731f50a4b97 |
| linux | linux | >= 63274cd7d38a3322d90b66a5bc976de1fb899051 < 39ea61037ae78f14fa121228dd962ea3280eacf3 | 39ea61037ae78f14fa121228dd962ea3280eacf3 |
| linux | linux | >= 63274cd7d38a3322d90b66a5bc976de1fb899051 < 3efb7af8ac437085b6c776e5b54830b149d86efe | 3efb7af8ac437085b6c776e5b54830b149d86efe |
| linux | linux | >= 63274cd7d38a3322d90b66a5bc976de1fb899051 < 786f5b03450454557ff858a8bead5d7c0cbf78d6 | 786f5b03450454557ff858a8bead5d7c0cbf78d6 |
| linux | linux | >= 63274cd7d38a3322d90b66a5bc976de1fb899051 < 3ac273d154d634e2034508a14db82a95d7ad12ed | 3ac273d154d634e2034508a14db82a95d7ad12ed |
| linux | linux | >= 63274cd7d38a3322d90b66a5bc976de1fb899051 < 20cebb8b620dc987e55ddc46801de986e081757e | 20cebb8b620dc987e55ddc46801de986e081757e |
| linux | linux | >= 63274cd7d38a3322d90b66a5bc976de1fb899051 < 536de747bc48262225889a533db6650731ab25d3 | 536de747bc48262225889a533db6650731ab25d3 |
| linux | linux_kernel | >= 0 < 5.10.84-1 | 5.10.84-1 |
| linux | linux_kernel | >= 0 < 5.15.3-1 | 5.15.3-1 |
| linux | linux_kernel | >= 0 < 5.15.3-1 | 5.15.3-1 |
| linux | linux_kernel | >= 0 < 5.15.3-1 | 5.15.3-1 |
| linux | linux_kernel | >= 2.6.29 < 4.4.292 | 4.4.292 |
| linux | linux_kernel | >= 4.10 < 4.14.255 | 4.14.255 |
| linux | linux_kernel | >= 4.15 < 4.19.217 | 4.19.217 |
| linux | linux_kernel | >= 4.20 < 5.4.159 | 5.4.159 |
| linux | linux_kernel | >= 4.5 < 4.9.290 | 4.9.290 |
| linux | linux_kernel | >= 5.11 < 5.14.18 | 5.14.18 |
| linux | linux_kernel | >= 5.15 < 5.15.2 | 5.15.2 |
| linux | linux_kernel | >= 5.5 < 5.10.79 | 5.10.79 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
CVE-2021-47477: In the Linux kernel, the following vulnerability has been resolved: comedi: dt9812: fix DMA buffers on stack USB transfer buffers are typically mapped
osv·2024-05-22·CVSS 7.8
CVE-2021-47477 [HIGH] CVE-2021-47477: In the Linux kernel, the following vulnerability has been resolved: comedi: dt9812: fix DMA buffers on stack USB transfer buffers are typically mapped
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.
GHSA
GHSA-6vq2-rrj2-6jjh: In the Linux kernel, the following vulnerability has been resolved:
comedi: dt9812: fix DMA buffers on stack
USB transfer buffers are typically mapp
ghsa_unreviewed·2024-05-22
CVE-2021-47477 [MEDIUM] CWE-787 GHSA-6vq2-rrj2-6jjh: In the Linux kernel, the following vulnerability has been resolved:
comedi: dt9812: fix DMA buffers on stack
USB transfer buffers are typically mapp
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.
Red Hat
kernel: comedi: dt9812: fix DMA buffers on stack
vendor_redhat·2024-05-22·CVSS 7.8
CVE-2021-47477 [HIGH] CWE-402 kernel: comedi: dt9812: fix DMA buffers on stack
kernel: comedi: dt9812: fix DMA buffers on stack
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.
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 7) - Not affected
Package: kernel (Red Hat Enterprise Lin
Debian
CVE-2021-47477: linux - In the Linux kernel, the following vulnerability has been resolved: comedi: dt9...
vendor_debian·2021·CVSS 7.8
CVE-2021-47477 [HIGH] CVE-2021-47477: linux - In the Linux kernel, the following vulnerability has been resolved: comedi: dt9...
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.
Scope: local
bookworm: resolved (fixed in 5.15.3-1)
bullseye: resolved (fixed in 5.10.84-1)
forky: resolved (fixed in 5.15.3-1)
sid: resolved (fixed in 5.15.3-1)
trixie: resolved (fixed in 5.15.3-1)
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/20cebb8b620dc987e55ddc46801de986e081757ehttps://git.kernel.org/stable/c/365a346cda82f51d835c49136a00a9df8a78c7f2https://git.kernel.org/stable/c/39ea61037ae78f14fa121228dd962ea3280eacf3https://git.kernel.org/stable/c/3ac273d154d634e2034508a14db82a95d7ad12edhttps://git.kernel.org/stable/c/3efb7af8ac437085b6c776e5b54830b149d86efehttps://git.kernel.org/stable/c/536de747bc48262225889a533db6650731ab25d3https://git.kernel.org/stable/c/786f5b03450454557ff858a8bead5d7c0cbf78d6https://git.kernel.org/stable/c/8a52bc480992c7c9da3ebfea456af731f50a4b97https://git.kernel.org/stable/c/a6af69768d5cb4b2528946d53be5fa19ade37723https://git.kernel.org/stable/c/20cebb8b620dc987e55ddc46801de986e081757ehttps://git.kernel.org/stable/c/365a346cda82f51d835c49136a00a9df8a78c7f2https://git.kernel.org/stable/c/39ea61037ae78f14fa121228dd962ea3280eacf3https://git.kernel.org/stable/c/3ac273d154d634e2034508a14db82a95d7ad12edhttps://git.kernel.org/stable/c/3efb7af8ac437085b6c776e5b54830b149d86efehttps://git.kernel.org/stable/c/536de747bc48262225889a533db6650731ab25d3https://git.kernel.org/stable/c/786f5b03450454557ff858a8bead5d7c0cbf78d6https://git.kernel.org/stable/c/8a52bc480992c7c9da3ebfea456af731f50a4b97https://git.kernel.org/stable/c/a6af69768d5cb4b2528946d53be5fa19ade37723
2024-05-22
Published