CVE-2021-47477
Buslogic Comedi USB DMA Stack Overflow/Leak
Description
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.
INFO
Published Date :
May 22, 2024, 9:15 a.m.
Last Modified :
Nov. 21, 2024, 6:36 a.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
Yes !
Impact Score :
1.4
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-47477
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-47477
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-47477
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/20cebb8b620dc987e55ddc46801de986e081757e Added Reference https://git.kernel.org/stable/c/365a346cda82f51d835c49136a00a9df8a78c7f2 Added Reference https://git.kernel.org/stable/c/39ea61037ae78f14fa121228dd962ea3280eacf3 Added Reference https://git.kernel.org/stable/c/3ac273d154d634e2034508a14db82a95d7ad12ed Added Reference https://git.kernel.org/stable/c/3efb7af8ac437085b6c776e5b54830b149d86efe Added Reference https://git.kernel.org/stable/c/536de747bc48262225889a533db6650731ab25d3 Added Reference https://git.kernel.org/stable/c/786f5b03450454557ff858a8bead5d7c0cbf78d6 Added Reference https://git.kernel.org/stable/c/8a52bc480992c7c9da3ebfea456af731f50a4b97 Added Reference https://git.kernel.org/stable/c/a6af69768d5cb4b2528946d53be5fa19ade37723 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 06, 2024
Action Type Old Value New Value Added CVSS V3.1 CISA-ADP AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 28, 2024
Action Type Old Value New Value -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 22, 2024
Action Type Old Value New Value Added Description 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. Added Reference kernel.org https://git.kernel.org/stable/c/a6af69768d5cb4b2528946d53be5fa19ade37723 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/365a346cda82f51d835c49136a00a9df8a78c7f2 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/8a52bc480992c7c9da3ebfea456af731f50a4b97 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/39ea61037ae78f14fa121228dd962ea3280eacf3 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/3efb7af8ac437085b6c776e5b54830b149d86efe [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/786f5b03450454557ff858a8bead5d7c0cbf78d6 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/3ac273d154d634e2034508a14db82a95d7ad12ed [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/20cebb8b620dc987e55ddc46801de986e081757e [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/536de747bc48262225889a533db6650731ab25d3 [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-47477
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-47477
weaknesses.