What’s Vulnerable › Vulnerabilities

CVE-2021-47477: comedi: dt9812: fix DMA buffers on stack

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.255, 4.19.217, 4.4.292, 4.9.290. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-47477 or the next vulnerability affects your stack