back to article This security hole can crash billions of Chromium browsers, and Google hasn't patched it yet

A critical, currently unpatched bug in Chromium's Blink rendering engine can be abused to crash many Chromium-based browsers within seconds, causing a denial-of-service condition – and, in some tests, freezing the host system. Security researcher Jose Pino found the flaw, and created a proof-of-concept exploit, Brash, to …

  1. david 12 Silver badge

    JavaScript has been doing this for years.

    You don't need custom malware to saturate Chromium, take all memory, load your CPU and crash your browser. Plenty of websites already do that if you leave them open long enough.

    1. IGotOut Silver badge

      Re: JavaScript has been doing this for years.

      Pretty much any British newspaper outlet then.

      1. Hubert Cumberdale Silver badge

        Re: JavaScript has been doing this for years.

        Yeah, my local rag causes NoScript's list of domains trying to run JS to fall off the bottom of the screen, needing a scroll bar.

        1. sabroni Silver badge
          Thumb Up

          Re: my local rag causes NoScript's list of domains ... to fall off the bottom of the screen

          And yet, without those scripts, you can see the actual news much more easily.

          1. Greybearded old scrote

            Re: my local rag causes NoScript's list of domains ... to fall off the bottom of the screen

            If you've configured noscript to temporarily allow scripts from the same domain. Then very likely examined the list for whatever cdn(s) they are using. By the 2nd or third attempt I decide that their dribblings aren't that important to me after all.

            It's still less hassle than letting everything run, but I can't recommend it to my non-techie friends.

          2. werdsmith Silver badge

            Re: my local rag causes NoScript's list of domains ... to fall off the bottom of the screen

            Local newspaper news portals are the worst websites that I ever see on my daily web use. They are at the level: appallingly bad. And they are trying to monetise, asking people to subscribe.

            That's like asking people to subscribe to a ripped and shredded printed edition.

            1. Snake Silver badge

              Re: my local rag causes NoScript's list of domains ... to fall off the bottom of the screen

              Not just local: check the Associated Press website, a scrolled NoScript list. But otherwise, yes, newspaper portals are the worst.

            2. heyrick Silver badge

              Re: my local rag causes NoScript's list of domains ... to fall off the bottom of the screen

              It's even better when it gets ingested and messed up by the Google news app - you'll get several screenfuls of the exact same headline with the exact same image for a load of publications you've never heard of, like The Leicester Early Afternoon Herald or The South Side of Portsmouth Shouty One... It's all the same drivel masquerading as "local" news.

    2. Not Yb Silver badge
      Facepalm

      Re: JavaScript has been doing this for years.

      Chrome uses all that virtual memory to sandbox Javascript, so they don't (think they) have to worry about things like this. It's easier to pretend that sandboxing is the solution to all "overload the systm" ECMA/javascript exploits, but... obviously it isn't.

    3. Roland6 Silver badge

      Re: JavaScript has been doing this for years.

      One of retrograde steps Chrome took a while back was the removal of the standalone management console/task manager. So that when Chrome ground to a halt and some website prevented it from running, you had a way of killing specific tabs, now with functionality embedded in Chrome, Chrome stops running or some website blocks menu access your only option is to kill chrome via the Windows task manager.

      1. This post has been deleted by its author

  2. Throatwarbler Mangrove Silver badge
    Trollface

    That's a bummer

    Fortunately, as a member of the Firefox master race, I am unaffected by this disease of the Chrome peasantry.

    1. IvyKing

      Re: That's a bummer

      Firefox user here as well, but Apple's insistence on Webkit for iOS has probably done more to keep Chrome from being the second coming of Internet Explorer than anything Mozilla has done.

      1. Anonymous Coward
        Anonymous Coward

        Re: That's a bummer

        Unfortunately that's happened anyway. We use a number of SaaS services where the answer to any support request is "are you using Chrome?", and when told that we aren't the next response is " we advise using Chrome".

        Basically, they can't be arsed to test it properly in anything other than Chrome.

        1. IvyKing

          Re: That's a bummer

          I am not surprised, but I would guess that the fraction of "Chrome only" websites are less than "Internet Exploder only" websites back in its heyday. I suspect the SaaS websites you've mentioned do not expect to be accessed by iOS devices.

    2. Anonymous Coward
      Anonymous Coward

      Re: That's a bummer

      Firefox (1 version back) will run for about 10 days before it starts to collapse on itself, at which time its too late to save any open tabs, since you can't get them to open. The only fix is to start task manager and start killing off firefox processes until you get them all. Its been behaving this way for about 6 versions and I have zero hope that they will fix it.

      1. Nate Amsden Silver badge

        Re: That's a bummer

        doesn't seem to affect ESR? I have firefox ESR 140.3.1 on linux processes dating back to Sept 27. I run 4 different isolated firefox browsers simultaneously in linux each running under a different username, for better isolation(I still have 104G/128G of memory available so ram is not a problem).

        I checked a Win10 system that I use less frequently it is running Firefox ESR 128.13.0, I ran a powershell script command ((Get-Process firefox).StartTime | % {New-TimeSpan -Start $_}) and it says some of the processes for firefox have been running for 75.4 days. I haven't used that system in a few weeks at least I think. Browser sitting there with 3 tabs open on basic websites nothing fancy(cygwin.com being one of them)

        1. david 12 Silver badge

          Re: That's a bummer

          I suspect that it depends on which web sites you have open (and how many). For me, FF gradually sucks up memory until my machine becomes unresponsive, and I have to kill the processes. It's been doing that since FF moved to independent processes, which was years ago. Maybe 15+ tabs, mixture of news, retail, technical etc, so all JS heavy.

      2. Not Yb Silver badge

        Re: That's a bummer

        Turn down the setting that splits off "Isolated Web Content" processes for everything, and things start working much better. They went a bit too far with the sandboxing (individual web pages don't really need to be sandboxed much from other web pages on the same site, but Firefox now seems to do it by default.)

        Somewhat counter-intuitively, I also found that turning off swap entirely leads to better performance with a RAM heavy computer, as Firefox will try to avoid using too much memory, and if has swap to use it can use too much of it leading to thrashing EVERYTHING.

        1. Phil O'Sophical Silver badge

          Re: That's a bummer

          if has swap to use

          Why on earth is a user-level app like Firefox trying to handle something so low-level itself? Swap is an OS issue, an app should just ask for the memory it needs and rely on the OS to provide it as it sees fit, according to the requirements of the whole system.

          1. heyrick Silver badge

            Re: That's a bummer

            At a guess, the system might report that it has 4GB of real memory and 4GB of swap and Firefox is like "cool, eight gigs!" ?

            But, yeah, if it can be frugal with less memory, it ought to be equally frugal with more.

            1. Anonymous Coward
              Anonymous Coward

              Re: That's a bummer

              > Firefox is like "cool, eight gigs!"

              It's not for a program to make that determination, it has no idea what part of the 8gb is available. Firefox should simply decide that it wants, say, 4g and ask for it. If the os says no then FF either aborts with an insufficient memory error or reconfigures itself to require less, and then repeats the request for that much. No user space programme should be trying to second guess the OS's resource usage, that's totally incompetent programming.

          2. Blazde Silver badge

            Re: That's a bummer

            Why on earth is a user-level app like Firefox trying to handle something so low-level itself? Swap is an OS issue, an app should just ask for the memory it needs and rely on the OS to provide it as it sees fit, according to the requirements of the whole system.

            It's not handling OS swap itself but it does manage it's own memory usage. That's quite reasonable when you consider a modern browser functions exactly like a basic operating system.

            The issue is that if you leave a tab open in the background there will be lots of potentially quite fragmented memory associated with that tab which goes untouched for an extended period of time. Windows will eventually swap that to disk if swap is available. This might be exacerbated by process isolation. It's also worse if the backgrounded tab is doing some awful tracking or ad rotation that causes a script-level memory leak which the browser can't do much about. When you want the tab back a lot of that memory needs to be swapped back in before the tab will function. And many people's reaction when a tab fails to load quickly is try another long-forgotten tab to see if that's broken too.. which only makes things worse. Another application that suffers this problem is VS Code because it runs child processes that can go untouched for long periods of time and can sometimes use lots of memory.

            However when Firefox knows memory getting low, it will proactively 'unload' tabs and also run garbage collection and heap optimisation routines. If it does that when half the memory it's using is already in swap - maybe even on a platter disk (avoid that) - because you've allowed Windows to use lots of it, this is going to exhaust some people's patience. Not entirely sure but I think Chrome started more aggressively unloading unused tabs recently? But then it also do more pre-loading too.

            Too much swap really can be a bad thing, ironically more so on low-RAM systems.

      3. Blazde Silver badge

        Re: That's a bummer

        can't get them to open

        Definitely sounds like a swap issue to me. All browsers are memory hungry but it's really Windows' fault when it hands out memory so liberally and then backs itself into a corner needing a bigger working set than there is physical RAM.

        1. C R Mudgeon Silver badge

          Re: That's a bummer

          "Definitely sounds like a swap issue to me."

          That was my thought as well. If your system's "disk" light (assuming there is one, but that's another rant) is on almost solid, page thrashing is a pretty good bet.

          On Linux, instead of playing Whac-a-Mole with Firefox processes, you can "pkill firefox", which kills all of them at once. (Well, all of your own. "sudo pkill firefox", if necessary and appropriate, to take out every user's.)

          Be patient. Once it actually runs, pkill is pretty fast, but it can take a *very* long time to get to the point of running it. On my 16 GiB system, if page thrashing is especially severe, it can take minutes for the terminal window and then the shell process to page in, both of which are prerequisites to running that quick pkill command.

          I don't know the correct incantation on Windows, but from another comment here, PowerShell might be a good starting point.

          1. Blazde Silver badge

            Re: That's a bummer

            On Windows Ctrl-Shift-Esc, wait patiently until Task Manager appears and tread carefully from there. End task or end process tree on the correct process to kill all Firefox at once. I do think both Windows & Linux could do more to ensure a minimal set of process control functionality was always given priority to run and never swapped but this doesn't seem the case. On Windows 11 Task Manager even runs on Normal priority now, while I'm sure it was always elevated on Win7 and before?

            Last year I was routinely exhausting for 128GB RAM + 128GB swap for some project. To it's credit Win11 was mostly remarkably stable (Win7 would not have been because it always flaked under multi-core low memory situations) but sometimes quite randomly would get itself into trouble and on one occasion it took over over 4 hours to get the right processes killed off. After that I always opened Task Manager and set it High priority pre-emptively.

            1. ThatOne Silver badge

              Re: That's a bummer

              > After that I always opened Task Manager and set it High priority pre-emptively.

              Except that Windows (at least Win11) apparently likes to change that on its own: I had some heavy calculations to do, and they seemed to run sluggishly (not using the full CPU capacity), so I checked the task's priority, and for some reason it was running as "low priority"! I manually changed it to "high priority", went away, came back an hour later and lo and behold, it was back to "low priority"... Apparently Windows decided my work should take a backseat to its own internal shenanigans (nothing else was supposed to run at that time)...

              1. Blazde Silver badge

                Re: That's a bummer

                That's 'efficiency mode', and it's as infuriatingly stupid as you've demonstrated. Settings -> Power -> Power Mode -> Best Performance, is enough to stop it if I remember correctly.

                1. ThatOne Silver badge
                  Pint

                  Re: That's a bummer

                  Thanks, will try it next time! Have one of those ->

                  1. ThatOne Silver badge
                    Unhappy

                    Re: That's a bummer

                    (Later)

                    Well, that computer was already on "Best Performance" (seemed the sensible thing for a computer dedicated to crunch numbers for hours on end), so apparently that's not enough to stop Windows from downgrading your work to "also ran".

                    1. Blazde Silver badge

                      Re: That's a bummer

                      Okay, more info: People seem to report defeating efficiency mode is now a moving target and a mystery. All I can advise is that I managed to stop it triggering last year, and that needing the solution was unexpected but it wasn't complicated to figure out and it still worked as of around 9 months ago, but I can't remember for sure whether it involved anything other than setting 'Best Performance'. I haven't confirmed whether it still works. In ~3 weeks I'll be returning to lengthy CPU-intensive workloads so I'll report back with any new findings/solutions. We may need some kind of support group... :|

                      The solution then was robust over various workloads and I was even able to run CPU-intensive code which set itself IDLE_PRIORITY_CLASS and achieved the expected functionality of properly using all spare CPU (on all cores) while having minimal impact on any higher priority programs, although that wasn't (at least originally) necessary for stopping Windows triggering efficiency mode - it was defeated for Normal priority processes just fine too. Note that PROCESS_MODE_BACKGROUND_BEGIN & THREAD_MODE_BACKGROUND_BEGIN are the real killers because they throttle I/O and memory resources (rather than just affecting scheduling priority), and efficiency mode appears to do the something similarly nasty. So Low (aka Idle) process priority itself is probably not the true issue in your case, but rather a tell-tale symptom. (However no two workloads are the same so you shouldn't take my word for that, it could be confirmed by manually setting the program Low manually before efficiency mode kicks in, then checking that CPU is still high and only drops later once efficiency mode is triggered).

      4. Rich 2 Silver badge

        Re: That's a bummer

        I keep Firefox open on my laptop for weeks (with the machine being put to sleep at the end of each day - not shut down) and have rarely seen any issues.

        1. C R Mudgeon Silver badge

          Re: That's a bummer

          I think it has to do with which sites you visit. Some just keep consuming more and more resources as long as a page is open, even when you're not actively interacting with them.

      5. WolfFan Silver badge

        Re: That's a bummer

        Interesting. Doesn’t happen here. Currently looking at Firefox running on a Win10 system, on a Ubuntu system, and a Mac. Multiple tabs and windows open on each. The Win10 machine hasn’t beenn restarted since Patch Tuesday; that’s more than 10 days. The Ubuntu and the Mac were last restarted last month; that’s also more than 10 days. Firfox starts up on startup on all three, and it’s never closed until shutdown.

      6. Irongut Silver badge

        Re: That's a bummer

        Hasn't happened to me on Win10, Win11 or Linux. Are you sure the problem isn't something else?

      7. JcRabbit

        Re: That's a bummer

        Doesn't happen to me and I have over 50 individual Firefox windows open at all times (don't ask) and some have multiple tabs. PC is on 24/7 for weeks at a time, only going to sleep when not in use for a while.

    3. hotaru

      Re: That's a bummer

      unfortunately, Firefox has similar vulnerabilities. this script, for example, will take out both Chromium-based browsers and Firefox: https://dpaste.com/G8R94ESDC

      I actually reported that iframe method as a vulnerability in Phoenix, and was told that it was working as intended. it's still vulnerable to the exact same DoS attack more than a decade later.

      1. xanadu42
        Thumb Down

        Re: That's a bummer

        The article states that "... other rendering engines, Firefox (Gecko engine) and Safari (WebKit engine), and both were immune to the attack ..."

        Your example of a vulnerability across two different "engines" suggests to me that the Javascipt/ECMAScript Specification may be the issue and that the two different "engines" correctly reproduced the fault in the Specification...

        And which "Phoenix" web browser are you referring to? The 2002 browser that became Firefox or some other, later, web browser using the same name?

        I would be more impressed with an example of a Firefox-Only vulnerability with the same severity as this!

        1. hotaru

          Re: That's a bummer

          the script I linked uses two different vulnerabilities, the title changing one for Chromium-based browsers, and a recursive iframe one that's been in Firefox since it was called Phoenix. yes, that Phoenix. the two vulnerabilities are similar in severity.

  3. BinkyTheMagicPaperclip Silver badge

    How about Brave get off their arses and write some code

    They're a commercial company making millions of pounds a year. Get off your arses, be responsible, and fix the problem without depending on Google.

    1. Hubert Cumberdale Silver badge

      Re: How about Brave get off their arses and write some code

      How about you just stop using Brave, as should everyone.

      1. BinkyTheMagicPaperclip Silver badge

        Re: How about Brave get off their arses and write some code

        Good reminder, but I'm using Firefox, not Brave

        1. Hubert Cumberdale Silver badge

          Re: How about Brave get off their arses and write some code

          Good choice.

      2. BasicReality

        Re: How about Brave get off their arses and write some code

        It's simply the best of the browsers.

        1. Hubert Cumberdale Silver badge

          Re: How about Brave get off their arses and write some code

          [citation needed]

      3. Dwarf Silver badge

        Re: How about Brave get off their arses and write some code

        There is a difference between brave and stupid

    2. Anonymous Coward
      Anonymous Coward

      Re: How about Brave get off their arses and write some code

      They've done plenty of improvements over Google's code, that's simply a part they didn't customize yet. All the others will probably do the same as well.

  4. Tron Silver badge

    Going public without the details would have been ethical.

    Explaining how crims can utilise it is not.

    1. Anonymous Coward
      Anonymous Coward

      Re: Going public without the details would have been ethical.

      I bet fixing this will cause their missing youtube script DOM collapse unworkable.

    2. Not Yb Silver badge

      Re: Going public without the details would have been ethical.

      This is one of those still open debates that are frequently considered from only one side. If the bug remains unfixed after your repeated attempts to show the company the problem, most tech journos wouldn't go to print with a "company X didn't fix bug Y" without a somewhat thorough description of bug Y. Non-tech journos wouldn't bother at all.

      Getting enough public perception that "this is an actual problem that company X should fix", without providing proof of bug Y somewhere, is very difficult. Especially with larger company X's whose actual customers are the advertisers, and not the web browser users.

    3. Roland6 Silver badge

      Re: Going public without the details would have been ethical.

      Trouble is with open source and in public/open development, you effectively have to “go public” with the details, just to communicate with the maintainers.

      Obviously, this open communication can be picked up by interested parties such as ElReg writers.

      The article does not say the author “went public” or approached ElReg, just that they spoke exclusively to ElReg - who initiated that communication? Ie. How did ElReg discover this potential news item.

      1. Irongut Silver badge

        Re: Going public without the details would have been ethical.

        No you don't. All major open source projects have a way to report security issues without making them instantly public.

        1. Roland6 Silver badge

          Re: Going public without the details would have been ethical.

          I suggest you walk through the entire reporting and fix process where a public repository such as Github is being used to manage changes.

          From what I can determine this bug finder didn’t wait 90 days from report to publication, but only circa 60 days.

  5. An_Old_Dog Silver badge

    "Ethical"

    @Tron:

    I'm not downvoting you, but am pointing out this type of situation is not as clearcut as you present it as being.

    Without releasing details, companies selling/providing vulnerable software could easily spin up their PR machine against the researcher, muddy the waters, and continue to not fix the problem.

    "This person is lying. This person has no proof. This person is seeking publicity [which may be true, but is irrelevant to the existance or non-existance of a bug]. We at Megasoft employ the finest software engineers [yet let unpaid interns do commits to production code without sufficient supervision and review], follow industry best practices [arguing what those may be], and are ISO-9000 certified [but we outsource some coding and program maintenance to non-ISO-9000-certified companies] ..."

  6. IamAProton

    That's actually counting Vivaldi

    because of poorly coded websites Vivaldi since a while identifies as Chrome in the User Agent string

    1. tiggity Silver badge

      Re: That's actually counting Vivaldi

      My FireFox identifies as Chrome.

      Because some sites are lazy & do some idle useragent checking & often claim not to support FF so I use a useragentswitcher extension that lets me claim to be a browser they happily accept (Chrome).

  7. Kane
    Joke

    ...and sucked down 18 GB of RAM into one tab.

    I thought that was typical of Chromium based browsers, Ya?

  8. Greybearded old scrote
    Mushroom

    This

    This is why Brendan Eich should have been drummed out of our community many years before his political views got him cancelled.

    Trusting code from any rando you encounter was the dumbest idea.

    1. Anonymous Coward
      Anonymous Coward

      Re: This

      That's what most of the browser companies do, reuse the same engine from Google.

  9. Rich 2 Silver badge

    How did I guess

    I read the headline saying that the faults also brought down the OS in some cases

    Reading further….

    “..not only did it crash the browser, but it also locked up the Windows-based machine…”

    Only MS could allow a browser to bring down the whole OS. Absolute shower of shite

    1. collinsl Silver badge

      Re: How did I guess

      Any machine running out of RAM will be similarly locked up. Happens all the time to Linux machines when heavy swapping is involved when people don't constrain their workloads properly

  10. bigphil9009
    Joke

    Unacceptable!

    I ran this clearly-flagged-as-dangerous exploit and my browser crashed! This is unacceptable! Who can I sue?

  11. GNU Enjoyer
    Facepalm

    All these consequences

    and yet people don't realize the vulnerabilities can only happen due to arbitrary remote code execution - with the only effective mitigation being to not run JavaScript or at least not running it by default.

    1. heyrick Silver badge

      Re: All these consequences

      If only Google were more proactive about supporting the blocking of unnecessary third party scripts rather than running in the other direction because the profitable side of their business involves supplying exactly those unnecessary third party scripts...

  12. vekkq

    Users are used to crashes. Wake me up on a hack~

  13. NapTime ForTruth

    Saving this so I can get back to it never...

    Why are people using the presentation layer (browser) to store infinite numbers of active web pages/sites/data? That's like filling your home with infinite newspapers just in case you ever get back to those articles you started to read thirteen years ago.

    Howard Hughes was a warning, not a goal.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon