
Legacy code strikes again!
This is almost certainly code that was written in the late 90s or early 2000s, and has just sat there ever since.
"It works, so why change it" is fine for code in userland applications that won't hold sensitive data, but not for kernel code like this. (Or for some kinds of userland apps.)
So how do we get companies to audit their old code?
In the case of kernel-mode drivers, I suggest that Microsoft make signing the driver a contract. If the driver has a security flaw, then the cost to Microsoft of investigating and mitigating the flaw will be borne by the supplier. Plus a penalty fine per vulnerability if they're common types (buffer overflow, pointer misuse).
Only by introducing some kind of fiscal penalty will the audit of old code suddenly become fiscally viable, which is what we need.