A device driver is a program that passes commands and data between an operating system and hardware such as graphics cards, storage devices and USB peripherals. The operating system handles each device's specific behavior through the common interface the driver provides.
Many drivers run with high privileges inside the kernel, the core of the operating system, so flaws in a driver can affect the stability and security of the whole system.