Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Security

X.Org Server Hit By New Local Privilege Escalation, Remote Code Execution Vulnerabilities (phoronix.com) 24

Getting things started for this "Patch Tuesday" are the disclosure of two new X.Org Server vulnerabilities. Phoronix reports: These issues affecting out-of-bounds accesses with the X.Org Server can lead to local privilege elevation on systems where the X.Org Server is running privileged and remote code execution for SSH X forwarding sessions.

CVE-2022-2319 and CVE-2022-2320 were made public this morning and both deal with the X.Org Server's Xkb keyboard extension not properly validating input that could lead to out-of-bounds memory writes. Fixes for these XKB vulnerabilities have been patched in X.Org Server Git and xorg-server 21.1.4 point release is expected soon with these fixes. Both vulnerabilities were discovered by Trend Micro's Zero Day Initiative.

This discussion has been archived. No new comments can be posted.

X.Org Server Hit By New Local Privilege Escalation, Remote Code Execution Vulnerabilities

Comments Filter:
  • Oh boy, X server vulnerabilities .. such fun memories.

  • Do any of the "standard" Linux distributions still run X as root?

    • by DamnOregonian ( 963763 ) on Tuesday July 12, 2022 @06:48PM (#62698270)
      No*

      * this is really provided by GDM3, which will run Xorg root-less, if KMS is available. Also, distributions that use LightDM will be running a root Xorg, but they're not common.

      If KMS is unavailable, it will run Xorg as root.
      There are many situations where your hardware may fall into that situation "by default" (using an NVIDIA card without an iGPU is the big one), but you can enable KMS on all common configurations I'm aware of- including the NVIDIA scenario.
      • by sconeu ( 64226 )

        What about SDDM?

        • I know SDDM supports it, but I don't think it's the default like it is on GDM3.

          I don't regularly use any KDE distributions, so I'm not sure what the status of that is.
          Asahi on my Air is running Arch+SDDM+KDE, so I'll check it out real quick... and it's root.
      • Assuming you're running X at all.
        • A fair point, that the major distributions now default to using Wayland if they can... which is also a general inherited feature of GDM3.

          Its default is to load Wayland if it's available, Xorg otherwise, as the logged in user if KMS is available, root otherwise.
  • by Catvid-22 ( 9314307 ) on Tuesday July 12, 2022 @06:32PM (#62698240)
    Why is this called Patch Tuesday? Isn't that a Windows (not a X Window) thing?
    • by Osgeld ( 1900440 )

      doesn't matter, the author got a moment of smug face when they wrote it thinking they were in in some 1337 joke. Probably by the same type of person that will tell you "I have been writing on this topic for 25 years" (smug hahaha) but yea how many year have you actually done the thing your writing about ... oh none thanks for the input

    • Given how ubiquitous Windows is, my understanding is that a number of organizations (like Oracle and Adobe) also began adopting Microsoft's "Patch Tuesday" cadence.

      I don't know to what extent any open-source providers follow this trend. It would be a weird coincidence if they just happened to publish information about this vulnerability on Patch Tuesday, though, so maybe other orgs *do* try to synchronize when possible.

      • by cas2000 ( 148703 )

        It would be a weird coincidence

        The odds against it being a co-incidence are astronomical!. Tuesdays are extremely rare, they only occur in one out of every FIVE weekdays!!1! And the rate goes down to one in seven if weekends are included.

        OTOH, there's a good chance that there will be at least one in every week, depending on location and what the official language is.

        • Very droll, but Patch Tuesday is the second Tuesday of the month, not every Tuesday. Still not astronomical, but a bit more coincidental.

      • I got the update for Xorg already before I even saw this new message.
    • > Why is this called Patch Tuesday? Isn't that a Windows (not a X Window) thing?

      Judge the author accordingly.

  • Seems like calling this a remote code execution bug is kindof a stretch. Using X forwarding over ssh is known to only be as secure as the server one is logging into. Calling this a remote execution bug is a pretty short step away from saying that all local privilege escalation bugs are remote execution bugs because a file transfer application could be used to download a malware executable from an unsecured remote server.
    • by DamnOregonian ( 963763 ) on Tuesday July 12, 2022 @08:09PM (#62698406)

      Seems like calling this a remote code execution bug is kindof a stretch.

      Absolutely not.

      Using X forwarding over ssh is known to only be as secure as the server one is logging into.

      This is true.

      Calling this a remote execution bug is a pretty short step away from saying that all local privilege escalation bugs are remote execution bugs because a file transfer application could be used to download a malware executable from an unsecured remote server.

      This is a terminally broken analogy.
      In one, a user account with an expected set of privileges, which may or may not be communicating X remotely, can achieve escalated permissions.
      Since X and SSH facilitates communication remotely of the local protocol, the exploit is in fact remote capable.

      In your situation, it requires affirmative action from a local agent on the machine to execute the malware.
      A better example, using your framework, would be if you could upload something via a fileserver, and get the system to automatically execute it as root.

      Which would be an RCE, just like this is.

  • OK, where we at with X.org vs. XFree86 these days?

    Asking for a friend.

    • XFree86 has been stone dead for almost two decades.

    • Comment removed based on user account deletion
    • XFree86 last updated in 2014. I think there are 4 (or less) people in the world who actually understand X-Windows. There are many people who will complain about Wayland, but zero of those complainers will actually help with XFree86.

  • That is what happens when you use a PDP-11 assembler in 2022. There is no shortage of languages that perform automatic index checking (e.g. Ada, C#, Java, Python, Rust, ...). And yet, billions in damage are incurred every year with those bugs and nothing changes. To quote Hoare:

    Many years later we asked our customers whether they wished us to provide an option to switch off these checks in the interest of efficiency on production runs. Unanimously, they urged us not to—they already knew how frequently subscript errors occur on production runs where failure to detect them could be disastrous. I note with fear and horror that even in 1980, language designers and users have not learned this lesson. In any respectable branch of engineering, failure to observe such elementary precautions would have long been against the law.

It's time to boot, do your boot ROMs know where your disk controllers are?

Working...