CVE-2021-47477: 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.
Security readout for executives and security teams
Plain-English summary
This Linux kernel issue affects the comedi dt9812 USB driver. The driver used stack memory for USB transfer buffers, which can fail with DMA and may expose unintended stack data in some conditions. Business impact is limited unless affected systems use this driver, but kernel updates should be tracked through normal patch management.
Executive priority
Treat as routine kernel maintenance unless the organization uses the affected driver. Prioritize patching specialized Linux hosts connected to relevant USB data-acquisition hardware, while confirming exposure before emergency action.
Technical view
The dt9812 comedi driver allocated USB transfer buffers on the stack. The source says USB DMA buffers must not be stack allocated, and short transfers could cause the driver to act on random stack data. It also fixed a stack information leak on systems where DMA was not used, because 32 bytes were always sent to the device.
Likely exposure
Exposure is most likely on Linux systems running affected kernel versions where the comedi dt9812 driver is present and used. General Linux servers without this driver or relevant USB device use are less likely exposed. The bundle does not provide distribution-specific package names or configuration checks.
Exploitation context
The source bundle reports CVSS 5.3 and KEV is false. No cited source states active exploitation or public exploit availability. The described impact is low availability impact and possible stack information disclosure behavior tied to driver transfer handling.
Researcher notes
Evidence is limited to the CVE record and upstream stable commit references. The affected-version data in the bundle is broad and commit-oriented, so distribution-specific validation requires vendor advisories or local kernel changelogs.
Mitigation direction
Update to a vendor kernel containing the relevant upstream stable fix.
Check Linux distribution advisories for the corrected package version.
Prioritize systems using the comedi dt9812 driver or related USB hardware.
Use vendor guidance for any temporary workaround if patching is delayed.
Validation and detection
Inventory Linux kernels against the affected version list in the CVE record.
Confirm whether the comedi dt9812 driver is enabled, loaded, or required.
Verify installed kernel includes one of the referenced stable commits or vendor backport.
Review patch status through distribution security tooling or vendor advisories.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2021-47477 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.