Vulnerability in comedi: dt9812 - Fix DMA buffers on stack
Summary
GSD-2021-1002024: comedi: dt9812: fix DMA buffers on stack. Affects Kernel versions >= 63274cd7d38a3322d90b66a5bc976de1fb899051, < 3efb7af8ac437085b6c776e5b54830b149d86efe. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The comedi package is a Linux kernel driver framework for data acquisition and control. It provides a unified interface for various data acquisition devices. One of the supported devices is dt9812, which is used for USB-based data acquisition. The dt9812 driver in the comedi package allows users to perform data transfers using Direct Memory Access (DMA) buffers. However, a vulnerability has been discovered in the dt9812 driver where DMA buffers are allocated on the stack, which can lead to stack-based buffer overflows and potential security issues.
Vulnerability Detail
The vulnerability in the dt9812 driver arises from the allocation of DMA buffers on the stack. This can be exploited by an attacker to overflow the stack and potentially execute arbitrary code or crash the system. The vulnerability was introduced in version v2.6.29 of the Linux Kernel and has been fixed in version v5.4.159. The impact and attack plausibility of this vulnerability have not been proven yet.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The vulnerability in the dt9812 driver of the comedi package can potentially lead to stack-based buffer overflows and security issues. It is recommended to update the Linux Kernel to version v5.4.159 or later to fix this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
Comedi is a Linux kernel driver framework for data acquisition and control. It provides a unified interface for various data acquisition devices.
dt9812 is a USB-based data acquisition device supported by the comedi package.
A DMA buffer is a region of memory used for Direct Memory Access transfers. It allows devices to directly read from or write to memory without involving the CPU.
A stack-based buffer overflow occurs when a program writes more data to a stack buffer than its allocated size, leading to the overwriting of adjacent memory locations on the stack.
You can use Vulert's playground at Vulert Scanner to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.