comedi: dt9812: fix DMA buffers on stack
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 63274cd7d38a3322d90b66a5bc976de1fb899051 · < 786f5b03450454557ff858a8bead5d7c0cbf78d6| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's comedi dt9812 driver uses stack-allocated USB transfer buffers, which can cause transfers to fail when DMA is used. On systems without DMA, commands can send 32 bytes to the device even when shorter, leaking stack information. The input does not specify attacker access or user-interaction requirements.
Engineers running Linux systems that use the comedi dt9812 driver should check their kernel version; affected versions are not specified.