Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Printer Bug HP Windows

16-Year-Old HP Printer-Driver Bug Impacts Millions of Windows Machines (threatpost.com) 106

An anonymous reader quotes a report from Threatpost: Researchers have released technical details on a high-severity privilege-escalation flaw in HP printer drivers (also used by Samsung and Xerox), which impacts hundreds of millions of Windows machines. If exploited, cyberattackers could bypass security products; install programs; view, change, encrypt or delete data; or create new accounts with more extensive user rights. The bug (CVE-2021-3438) has lurked in systems for 16 years, researchers at SentinelOne said, but was only uncovered this year. It carries an 8.8 out of 10 rating on the CVSS scale, making it high-severity.

According to researchers, the vulnerability exists in a function inside the driver that accepts data sent from User Mode via Input/Output Control (IOCTL); it does so without validating the size parameter. As the name suggests, IOCTL is a system call for device-specific input/output operations. "This function copies a string from the user input using 'strncpy' with a size parameter that is controlled by the user," according to SentinelOne's analysis, released on Tuesday. "Essentially, this allows attackers to overrun the buffer used by the driver." Thus, unprivileged users can elevate themselves into a SYSTEM account, allowing them to run code in kernel mode, since the vulnerable driver is locally available to anyone, according to the firm.

The printer-based attack vector is perfect for cybercriminals, according to SentinelOne, since printer drivers are essentially ubiquitous on Windows machines and are automatically loaded on every startup. "Thus, in effect, this driver gets installed and loaded without even asking or notifying the user," explained the researchers. "Whether you are configuring the printer to work wirelessly or via a USB cable, this driver gets loaded. In addition, it will be loaded by Windows on every boot. This makes the driver a perfect candidate to target since it will always be loaded on the machine even if there is no printer connected."
Affected models and associated patches can be found here and here.

"While HP is releasing a patch (a fixed driver), it should be noted that the certificate has not yet been revoked at the time of writing," according to SentinelOne. "This is not considered best practice since the vulnerable driver can still be used in bring-your-own-vulnerable-driver (BYOVD) attacks." Some Windows machines may already have the vulnerable driver without even running a dedicated installation file, since it comes with Microsoft Windows via Windows Update.
This discussion has been archived. No new comments can be posted.

16-Year-Old HP Printer-Driver Bug Impacts Millions of Windows Machines

Comments Filter:
  • Buy HP's newest printers with enterprise-grade anti-malware software [hp.com] for the home office!
    • Did you cut a deal with HP? How are you making money off this now?

      • Re: (Score:3, Insightful)

        It's called a "joke", you bunch of haters. Honestly the bunch of you make Creimer seem kind of infamous. Like what did he do to you? Shit in your cereal? Or honestly, I have way expect you all to be hit alts her something, so the whole thing is like a huge internet gag.

        • Never, even trust a link from creimer. He used to salt his posts with affiliate links constantly. It was cancerous.

  • by imperious_rex ( 845595 ) on Wednesday July 21, 2021 @11:54PM (#61606479)
    Good thing I have a Canon laser printer. :)
    One more reason not to buy HP printers anymore. :P
    • by jonwil ( 467024 )

      +1, I only buy Canon inkjet printers and not that HP crap.

      • +1, I only buy Canon inkjet printers and not that HP crap.

        I buy whichever is cheaper. I use it until it runs out of ink, and then I throw it away and buy a new one.

        • by AmiMoJo ( 196126 )

          Why not just get a laser printer instead of creating more e-waste and landfill?

          It will be cheaper for you in the long run. I have a Ricoh one, full colour, takes refilled carts no problem. In hindsight I should have got a Brother as they are even better for low TCO, but the Ricoh was on sale at the time.

          • It depends very much on how much you print. If it's not much, and you need color, then inkjets are still cheaper.

            • Unless they do that underhanded shit and expire your cartridge 6mos later even though its full. Lexmark did that. Marketed a thimble sized cartridge for $30 for each color, then put expiration dates on them.
              • Yes, Lexmark is truly one of the worst printer vendors. Along, of course, with the HP of today. Lexmark has pretty much always been bad, though, in different ways.

                • My favorite printer of all time is/was the HP Laserjet 4 with the Postscript ram installed. It just worked with everything.
            • by kackle ( 910159 )
              Probably the most reliable device I own is my 26-year old Epson "Stylus COLOR" inkjet printer (it's the original model, so no model number), which is still used weekly. It has only needed cleanings for all that time. No one makes ink cartridges for it anymore so I've been buying new-old stock from eBay for a few dollars each--the 20-year old, expired cartridges work!

              First iterations of products seem to be well-designed before they "cheapen it out".
              • I use to have one of those, they worked very well. However I replaced mine for a Solid Ink Printer then to a Laser mostly because of the time it took to print was way too long. Granted it was faster than the Dot Matrix I used previously. However I used that sucker new in High School and made some really impressive stuff at the time. I remember using Neopaint to do my Science Class Lab result papers, Where most students had to draw and color the results with markers, crayons or pencils I had a color graphi

            • Actually I have a BW Laser printer, because I don't print that much. My level of printing Inkjets are a waste, If I only print a few pieces of paper a year, my Inkjet would dry up and not work every time I print. I got a cheap small Samsung Laser Printer, and after a decade owning it, I had to replace the stock limited supply toner cartridge once (7 years ago).

            • I disagree. Inkjets dry out quickly. You only get a few months (maybe a year if you're lucky?) before the cartridges dry out and you have to replace them (or the printer in OPs case...). You can get a color laser printer, often with duplex printing, for about $300 (duplex seems to be standard sometimes, sometimes it's $50 more). An inkjet is going to be $100 probably, so after replacing it 3 times you're better off with the laser.

              I have a Xerox color laser printer that I got close to 5 years ago and is stil

            • by Rhipf ( 525263 )

              Actually if you don't print much and want to print color you are still better off getting a color laser printer. The toner doesn't dry out and clog the print head which is exactly what can happen if you use your inkjet infrequently.
              The upfront cost will be greater but over time the laser printer will still be more cost efficient than an inkjet.

      • Re:Whew! (Score:5, Informative)

        by mysidia ( 191772 ) on Thursday July 22, 2021 @02:10AM (#61606711)

        Good thing I have a Canon laser printer. :)

        But Windows still ships with the HP drivers even when you don't use an HP printer, Ergo there is still a path to exploit this, even if you never had a HP printer -- if nothing else the attacker simply executes an Add Printer action (Which does not require privileges) and specifies a fake HP Network printer that doesn't exist in order to make sure the driver will be loaded.

        • Re: Whew! (Score:4, Funny)

          by Anonymouse Cowtard ( 6211666 ) on Thursday July 22, 2021 @02:16AM (#61606723) Homepage

          > Good thing I have a Canon laser printer. :) But Windows still ships with the HP drivers even when you don't use an HP printer, Ergo there is still a path to exploit this, even if you never had a HP printer Holy shit dude never reveal that you've read the fucking article!

        • I miss the days when printers were postscript and did not need a driver. You simply sent the postscript image to the printer. Universal compatibility, so long as it wasnt running MS who fought against PS royalties for years. Unix / Mac worked just fine with postscript.
          • Brother has printers that support PostScript, and in my experience do not seem to have planned obsolecence built into them.

            https://www.openprinting.org/d... [openprinting.org]
          • "You simply sent the postscript image to the printer."

            A postscript file isn't an image, it is a program. Which means you have to worry about someone exploiting your printer: https://oaklandsok.github.io/p... [github.io]

            • by mysidia ( 191772 )

              It should probably be noted that MOST, perhaps all modern printers are PostScript printers, even HP Printers. You still need printer drivers and driver binaries --- Your hardware needs protocols for transmitting the PostScript data and Uploading fonts, etc, To the printer. Finally, you need a PCL (Printer command Language) file describing how to send commands to the printer -- because PostScript itself is not a command language And your computer needs custom extensions to have a way of issuing command

    • by mspohr ( 589790 )

      But you still buy Windows?

  • .. to do their jobs when we're spending all our time dealing with this sort of crap.

    • by Tablizer ( 95088 ) on Thursday July 22, 2021 @12:37AM (#61606547) Journal

      Microsoft is job security, not OS security

    • Easy, set a policy to only allow Admins to Add Printers then ... oh I see what you mean.
    • by gweihir ( 88907 )

      This _is_ part of the job of admins. And yes, this is crap as well. But imagine what would happen to many Windows admins if MS suddenly learned how to write an OS....

      • This _is_ part of the job of admins. And yes, this is crap as well. But imagine what would happen to many Windows admins if MS suddenly learned how to write an OS....

        +5 Insightful.

        We had an entire department of them for Windows maintenance. A counterintuitive as is sounds - there is a vested interest in having Windows being exactly what it is.

        In the meantime, security on the user level is getting onerous. I have some innocent programs Windows insists are trojans that you have to jump through hoops to install and use, but Microsoft politely ships you ancient and ongoing security flaws as standard stuff.

    • Anything involving the word "admin" implies a business of a suitable size to have one. That also implies networked printers. That means a couple things. One the printers are on their own network. Two that also means there's a print server on the same network, but fire-walled against the rest.

  • https://support.hp.com/us-en/d... [hp.com] Hope you don't have an older printer.
  • by The Wily Coyote ( 7406626 ) on Thursday July 22, 2021 @12:29AM (#61606527)
    The real issue here is drivers being in kernel space. That may be necessary for some drivers, but not for a printer driver.
    • by 93 Escort Wagon ( 326346 ) on Thursday July 22, 2021 @01:08AM (#61606581)

      Well, the other issue is we have yet another example of an exploit made possible because the user is trusted to provide the length of the data being passed.

      • by jarkus4 ( 1627895 ) on Thursday July 22, 2021 @01:53AM (#61606681)

        The problem is that providing data length is like "binary protocol 101". Pretty much any non-text data file on your computer will make use of "data size, actual data" approach. Unfortunately the only way you can handle it is to verify the input data correctness and handle (or let the used technology handle) the invalid input

        • by gweihir ( 88907 )

          Anybody that does not validate input or fails to validate all moves to buffers for size has no business writing production code. This does not only apply to C code.

        • The problem is stopping at the 101 level. You're supposed to go on from there. That's introduction, not completion.

    • by Shimbo ( 100005 ) on Thursday July 22, 2021 @03:24AM (#61606791)

      I don't think that's the issue here; printer drivers aren't in kernel space any more. The problem is lots of crap running as SYSTEM, rather than having a capability model of what it can do.

      • by gweihir ( 88907 )

        Probably. May take MS another 20 or 30 years to get that idea. Of course, UNIX had done it for decades, bit MS things they are so great they do not need to learn from others. Result is that they do not learn.

      • SYSTEM is an exceptionally highly privileged account so it’s effectively the same issue as running in kernel space. We aren’t worrying about the system crashing in this case, just security.

        Cups/Apple has effectively fixed printer drivers for non-Windows users(e.g. Linux, MacOS, BSD). It supports 99.9% of printers out there. https://www.cups.org/ [cups.org]

        I doubt driver issues will ever get addressed on Windows(it’s not just printers) because software backwards comparability is too important fo
  • Idiots Orchestrated This

  • #BlameTheIntern
  • by Anonymous Coward
    TFS calls out HP printer drivers but there's actually about 5-6 x more Samsung models affected than HP. Just a minor consequence of "badge engineering" in modern society.
  • by Opportunist ( 166417 ) on Thursday July 22, 2021 @04:51AM (#61606905)

    Back when I and the world were both young, printer drivers came on a disc and contained a couple kilobytes of code that allowed the computer to communicate with a printer.

    Today, they come on DVDs filled to the b... no, actually, they come as multi-GB downloads that install printer driver, a "printing suite" nobody cares about, a bunch of other "utility" programs with questionable to dubious value, and of course a buttload of spyware to ensure you're buying their cartridges instead of some third party ink and toner.

    Guess what: Some of that rubbish nobody could possibly want on their PC is prone to have security issues. Twice so if that's basically the function of the whole shit.

  • Of course, HP is not responsible for anything its software does or doesn't do.
    • Hmmm.

      On the HP site, it looks like its (some of) their laser printers ... none of the typical 'home' ranges get a mention.

      SD

  • by Canberra1 ( 3475749 ) on Thursday July 22, 2021 @06:53AM (#61607085)
    Printer drivers - this was known ages ago. HP Network drivers could also be borked to transmit stuff. Graphics cards, with direct DMA and undocumented op codes are rich territory to exploit. The interesting thing is that both win7 and win10, Microsoft drivers were supposed to be stricter. Bzzz afraid not. Many color laser printers also add off color dots, so forgeries can be detected and traced. And some photographic/Camera software is probably even worse. Then webcams. Then trackpad drivers that 'accidently' let key logging in the final product.
    • Many Government and Military arms also have their own specially crafted MS volume customer printer drivers, that also cause fingerprinting to that anonymous leaks and letters can be traced back to the source. Many sysadmins are NOT told by security that special drivers have been deployed. This doubles the risk of unpatched drivers, being left behind. Not sure who will pay for the corrections. Some banks have magnetic ink drivers, and these too are iffiy. It used to be fun editing paper bank cheques, so they
  • Deep inside many enterprises you will find vintage jet direct cards and other unsupported hardware that has become mission critical. They defaults are often unchanged....
  • by Fly Swatter ( 30498 ) on Thursday July 22, 2021 @08:09AM (#61607193) Homepage
    All these modern system designs and we still don't have separation of data and execution address space. If that existed the data would be corrupted sure, with still bad and risky results, but execution space couldn't be overwritten or changed by something like this.
  • by mnassri ( 149467 ) <`moc.oohay' `ta' `k2duorhs'> on Thursday July 22, 2021 @08:32AM (#61607249)

    This https://support.hp.com/us-en/d... [hp.com] is the HP link that actually lists the devices affected. The one in the article makes you search manually.

  • At the present time, are there any known "drive-by" exploits that can be triggered indirectly (say, by allowing Explorer to parse a file that's merely present, or by vising a web page with malicious content), or does it still at least require that users actively DO something to initiate actual printing that requires some degree of social engineering to trick users into initiating?

    Trojans are bad, especially with nontechnical users (particularly if they can trigger actions remotely on OTHER people's computer

  • by slacktide ( 796664 ) on Thursday July 22, 2021 @11:54AM (#61608189)
    Gee, who would have thought a 180 megabyte PRINTER DRIVER could possibly have an undetected security hole? Maybe it's been made more complicated than it needs to be?
  • Just seeing "strncpy" makes me feel young again. I thought compilers flagged that as insecure more than 16 yrs ago, but am not a real coder so don't know. Laser C forever!

Never ask two questions in a business letter. The reply will discuss the one you are least interested, and say nothing about the other.

Working...