• Damage@feddit.it
    link
    fedilink
    arrow-up
    35
    ·
    1 day ago

    Ok this is the first time I try one of these exploits and it works on my system, I’m currently very spooked.

    On the other hand, this may allow me to root my LG WebOS TV?

  • Ooops@feddit.org
    link
    fedilink
    arrow-up
    8
    ·
    21 hours ago

    Update: Kernel 7.0.5 just released

    Fixes: cac2661c53f3 (“esp4: Avoid skb_cow_data whenever possible”)

    Fixes: 03e2a30f6a27 (“esp6: Avoid skb_cow_data whenever possible”)

    Fixes: 7da0dde68486 (“ip, udp: Support MSG_SPLICE_PAGES”)

    Fixes: 6d8192bd69bb (“ip6, udp6: Support MSG_SPLICE_PAGES”)

  • mecen@lemmy.ca
    link
    fedilink
    arrow-up
    6
    ·
    21 hours ago

    It was patched in almalinux though, and it was how this exploit got exposed before disclosure.

    At lest this is what I read

  • monovergent@lemmy.ml
    link
    fedilink
    arrow-up
    81
    arrow-down
    1
    ·
    2 days ago

    Can’t wait for one that’ll work on Android so I can maybe root some otherwise useless old phones

      • smeg@feddit.uk
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 hours ago

        I’m keen to put PostmarketOS on them all and build a Kubernetes cluster. Just don’t ask me what I’m going to run on it!

      • monovergent@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        13 hours ago

        Removing all the system-level bloat that makes them unpleasant to use, perhaps stripping one down to the level of a fancy MP3 player with its microSD slot. Also having “disposable” phones to play with various rooted tweaks. All of my easily-rootable phones are too valuable as daily drivers to experiment on, while all of the ones I don’t care about also don’t have rooting methods yet.

      • nyan@sh.itjust.works
        link
        fedilink
        arrow-up
        9
        ·
        23 hours ago

        I’ve encountered a couple of people who use them as remote cameras to observe their 3D printers. That suggests a bunch of other possibilities for things you want to be able to watch or listen to without standing over them and without buying an extra webcam to cover what might be a temporary need.

      • sp3ctr4l@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        20 hours ago

        They are less expensive.

        EDIT:

        Sorry, I misread the parent comment.

        You would use them for literally anything you typically or potentially could use a phone for.

        If you are not playing video games on your phone… there is basically no common reason to have a top spec brand new phone.

        What do I want my phone to do?

        Make calls, send messages, run a web browser, check emails, take a picture or video every once in a while, act as a notepad, check a weather forecast, have some map explorer, use some entirely 2D proprietary apps for things like… groceries or hailing a ride or checking my bank balance.

        Pretty sure that right there is about 80% of people’s phone use case.

        You do not need top spec hardware to do any of that.

        You have the gaming thing to do the gaming stuff.

      • lengau@midwest.social
        link
        fedilink
        arrow-up
        15
        ·
        1 day ago

        I’m not the person you replied to, but I would love to have more ARM hardware for running tests on. A lot of what I write needs to be separately tested on each architecture.

  • shirro@aussie.zone
    link
    fedilink
    English
    arrow-up
    37
    ·
    2 days ago

    In the 90s I compiled all my kernels at home from source with just the drivers I needed. Only installed the packages I needed. Only enabled the services I needed. The Unix way. When the kernel added modules I was still only compiling a subset and generally loading them manually.

    Obviously that doesn’t work for most users and distros sensibly started shipping with modules compiled for practically every need. Usually when I view distro security alerts they are for packages I don’t install. But I have all these damn kernel modules just waiting to automatically load. I know I can blacklist them individually but I wonder if there is a way to profile the modules I use and use a deny all/whitelist approach instead?

    • mlfh@lm.mlfh.org
      link
      fedilink
      English
      arrow-up
      24
      ·
      edit-2
      20 hours ago

      modprobed-db can create a profile of the kernel modules that get loaded by your system over time. You can feed that directly into make localmodconfig to build a kernel that only includes those modules, or use the data to build a modprobe whitelist.

      • MonkderVierte@lemmy.zip
        link
        fedilink
        arrow-up
        5
        ·
        1 day ago

        Hm? Somehow, lemmy.zip wants to proxy the clickable link (spam & moderation i guess) but doesn’t find the site? Good thing you’ve pasted it plaintext.

    • MNByChoice@midwest.social
      link
      fedilink
      arrow-up
      3
      ·
      1 day ago

      Clearly you know of lot about this. Here are some comments for the next human.

      Deny all modules seems more possible than a whitelist approach. To deny all, the command is likely “sysctl kernel.modules_disabled=1”.

      Whitelisting is harder. One could store a list of all loaded modules on a working system. Store a list of all kernel modules currently installed on the system. Compare the lists and remove from the “all” list the “running” list (grep will do this) and write it to the blacklist file.

      The problem with the Whitelisting approach is that it needs to run after every kernel module install (which is doable).

      If the above is the case, then someone must have automated this already, but I cannot find it quickly. (I checked Debian’s package repository.)

      • shirro@aussie.zone
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 day ago

        Clearly you know of lot about this.

        Nah, that is the problem. It all got so dynamic and easy I don’t really know how the hundreds of active modules on my desktop are loaded, why or in what order anymore. The days when I could list a handful of modules to load at boot are long gone I think unless its an embedded device or perhaps a simple server.

        Setting modules_disabled might be viable for a relatively static system. I have seen that one when looking at hardening servers in the past but thought it was a bit extreme. Perhaps not.

  • the_weez@midwest.social
    link
    fedilink
    arrow-up
    5
    ·
    2 days ago

    Well shit. I wonder if all Linux systems are affected, the testing in the repo doesn’t cover Arch for instance. For now I’d assume the answer is yes.

    • CodenameDarlen@lemmy.world
      link
      fedilink
      arrow-up
      12
      ·
      2 days ago

      Yea it works on arch, I just tested on my own PC:

      OS: Arch Linux x86_64
      Kernel: Linux 7.0.3-arch1-2
      
      ❯ ./exp
      [root@arch dirtyfrag]# ls
      README.md  assets  exp  exp.c
      [root@arch dirtyfrag]# whoami
      root
      

      I updated it last week.

      Edit: I just ran yay -Suy to update everything and still works.

      • racoon@lemmy.ml
        link
        fedilink
        arrow-up
        7
        ·
        19 hours ago

        Have you tried updating your system with a less cheerful command? Like damn -Syu

    • Remus86@lemmy.zip
      link
      fedilink
      arrow-up
      9
      ·
      2 days ago

      I also just verified it worked on my Arch install. But running the mitigation command and rebooting effectively blocked it, and I’m on the Arch LTS kernel. I think the disabled modules are related to IPSec, which most desktop users don’t really need.

    • CameronDev@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      13 hours ago

      Its a kernel exploit, so probably. But I just checked my arch installs,and I don’t have any of the kernel modules loaded. Loading requires root anyway, so I think this may be fairly limited in reality?

      Edit: seems the modules get loaded automatically :(

    • KianaTabion@lemmy.today
      link
      fedilink
      arrow-up
      7
      ·
      1 day ago

      I’m pretty sure it does; as secureblue, an immutable atomic distro that’s hardened by default, required this commit to mitigate it once and for all.

      While Bazzite and its atomic brethren do provide some additional protection against attacks, it’s often very overstated 😅. Hence, it’s unsurprising that it doesn’t provide any defense against this assault.

  • Bronstein_Tardigrade@lemmygrad.ml
    link
    fedilink
    arrow-up
    2
    arrow-down
    7
    ·
    1 day ago

    Funny that just after Microsoft commits suicide with Winders 11, Linux “exploits” start popping up like Whack-A-Moles. Makes one wonder if they were inserted by MS engineers.

    • flying_sheep@lemmy.ml
      link
      fedilink
      arrow-up
      11
      arrow-down
      1
      ·
      1 day ago

      Nah, people just started using LLM assisted vuln discovery workflows and having early successes with them.

      There will be diminishing returns.

  • CodenameDarlen@lemmy.world
    link
    fedilink
    arrow-up
    6
    arrow-down
    7
    ·
    2 days ago

    What’s up with all these vulnerabilities?

    Kind of worried to be honest, two in like a week? Pretty scary.

    I’m very dumb about Linux technical stuff but I feel like root access is way too easy to be accessed.

    Is there any way to make it harder? I mean let’s say similar to Android, you need to unlock the boot loader first, flash a recovery and flash Magisk or something, that’s a good layer before root access.

    At least for Linux Desktop, maybe make it so we can get root access only via a bootable USB with a correct password? Just for sporadic system changes.

    Is there anything like that?

    • Ooops@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      17 hours ago

      Setups like Android or those new fancy ummutable distros don’t actually make anything more secure. If the underlying OS is drectly exploited they don’t protect you. Not having a mechanism included to get you root permissions regularly, doesn’t help you against exploits achieving the same in unplanned ways. In fact -allthough that’s a minor issue- you can probably specifically target the latter distros even after a patch: After all we are talking about direct changes to binary code here. On that level you could get ideas about manipulating the overlay to access the unpatched files.

      In the end the most effective way to be more secure is not a mass produced thing like Android that locks out everyone (and not even being that good at it because there are masses working to circumvent it to get control over their device back), but to minimise you attack surface: Don’t have stuff activated you don’t need. Have a kernel compiled for your device with only exactly the components you really need. Or whitelist all kernel modules you need and nothing more. Explicitly declare what a user can do and access actively (see: SELinux, AppArmor with strict policies) instead of relying on the underlying passive permission system.

    • Dingaling@lemmy.ml
      link
      fedilink
      English
      arrow-up
      18
      arrow-down
      1
      ·
      1 day ago

      It’s a positive thing, don’t be worried.

      These vulns already existed. It’s possible the bad guys were already using them. This gets them out in the open and on their way to being resolved.

      Just keep patches up to date with any modern and maintained distro and you’ll be grand.

    • superglue@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      26
      arrow-down
      1
      ·
      2 days ago

      This exploit appears to be inspired by the copy fail.

      Should you be worried? Nah, You should not be installing untrusted software on your device. This isnt even the type of exploit that scares me. Your device gas to already be compromised for this exploit to succeed.

      Supply chain attacks are what scare me.

      • corsicanguppy@lemmy.ca
        link
        fedilink
        English
        arrow-up
        17
        ·
        1 day ago

        Supply chain attacks are what scare me.

        As a former OS security pro, this is the right answer. Not because of the exploit itself, but because young (unmentored) coders readily trust some really bad patterns of pulling in random junk from the web and running it. THIS is how the LPE becomes essentially an RCE-level problem.

    • wampus@lemmy.ca
      link
      fedilink
      English
      arrow-up
      14
      arrow-down
      1
      ·
      1 day ago

      With AI enabled bug hunting, you’re likely to see a blitz of vulnerabilities, followed by a significant reduction in vulnerabilities.

      Yes, malicious folks are usin em – heck, Kali’s had AI integrations for a while on a bunch of its tools even, for pen testing. But devs writing code get em too, and those are the people we need to see using these sorts of workflows as it lets them clip a bunch of zero days.

      I think Mozilla, as an example, had a recent patch that cleaned up something like 271 zero days? Anthropic taking their Mythos stuff to banks/govt was largely just a publicity thing to try and shut people up who were mocking claudes code, but also potentially because it’d found govt-placed backdoors that they wanted the gov to know were about to be exposed / patched. The USA’s alleged ability to “shut off” tech assets during raids in Venezuela and Iran, gets trickier if AI is exposing their back doors. Likely also why the US Administration is now saying they want to review AIs before they get released. Mythos definitely isn’t the only game in town for this sort of stuff – but the general idea that the dev teams will be shifting to using these tools for QA / writing more secure apps in the near future, is fairly valid. So I wouldn’t go too tinfoil hat-y on that front… though it is a period where we’ll see a need to patch aggressively, and to double check security configs etc.

    • idriss@lemmy.ml
      link
      fedilink
      arrow-up
      9
      arrow-down
      2
      ·
      2 days ago

      if somebody has user access to your computer, they are already 95% there, so I am not worried about these priv escalation part of the last 5%

      • Excel@lemming.megumin.org
        link
        fedilink
        English
        arrow-up
        6
        ·
        18 hours ago

        If they can already read/write all of your user’s files, then an attacker doesn’t even care about root access anyway most of the time anyway.

        It’s really only relevant for things like web servers.

      • CodenameDarlen@lemmy.world
        link
        fedilink
        arrow-up
        7
        arrow-down
        3
        ·
        2 days ago

        If you refer to physical access I wouldn’t say that, I’ve encrypted partition.

        But if you’re saying just access to my main user inside the OS, then I’d really like if you could elaborate with real examples how can user access do any harm to my system without root access. Real examples please not speculation or theory. Something I can run here right away to see by myself.

        • TechLich@lemmy.world
          link
          fedilink
          arrow-up
          8
          ·
          1 day ago

          Your user account can run applications and read and write to a lot of locations on the disk.

          So it can be used to run malware (cryptominers, ransomware, RATs etc.) Exfiltrate the data your account has access to, download or plant malicious or illegal data, use your internet connection to attack other systems with DOS or similar, use any logged in social media accounts to attack or spam your contacts, steal saved passwords and credentials from your web browsers, use your peripherals or connected devices (printers cameras microphone speakers), pivot to access other services on your local network (smart devices, IoT, TVs, home lab) etc.

          There are comparatively few things an attacker wants on a desktop that actually require root access. It’s mostly just system files, package management and settings changes that require root to mess with. Eg. You would need root to dump a shadow file or stuff like luks encryption keys from kernel memory, but if an attacker has your logged in user account, the disk is already decrypted and account is already logged in.

          • idriss@lemmy.ml
            link
            fedilink
            arrow-up
            5
            ·
            1 day ago

            Most systems also use single user, you normally give yourself docker group access (I use docker for work) and that alone is equivalent to root access. It’s not the 90s anymore where universities gave user access to all students, priv escalation was a big security threat, now it almost doesn’t mean anything, nobody shares the same machine anymore the way they used to do.

            • TechLich@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              3 hours ago

              Yes kinda? It depends a lot on the system. It’s still pretty common, even with containers like docker, for different services to run with different accounts and permissions. Eg. If you have a webapp with a small database or something, the web server will be www-data or whatever and the db will be a different user account like a postgres user or something. Even a fresh Linux install will have a separate user account for things like ntp (or systemd-timesync) etc. Users aren’t usually people, they’re daemons with limited scope and rule of least privilege.

              Even if it’s all docker containers and you deploy them with the same docker account on the host, there are almost certainly a bunch of different accounts inside.

              That way if there’s some vulnerability in ntp or something, an attacker might have permission to mess with the time but can’t, in theory, take over the whole container.

              I think there is a trend towards caring less about that aspect of defence in depth if each service is in its own container and just rely on isolation. People are deploying services running as root with ansible or even just in dockerfiles, and not caring about it because there’s nothing else on the box for an attacker anyway. If they compromise the service, they’ve already got what they want.

              I get the thought process but it still doesn’t feel good to me. If some docker bug shows up that allows a container user with root to break isolation and use the shared kernel to pivot to the host or other containers, then that one dodgy webapp that’s not running as a restricted user can become a part of a larger kill chain. It’s really easy to develop systems with least privilege in mind and there’s not much downside to doing it. It’s a good habit to to create different accounts for different services (even if there’s one admin/docker/ansible/whatever account for deployment).

        • Corngood@lemmy.ml
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          1 day ago

          For me the scariest thing someone could do on my pc is exfiltrate all the data from my home directory which is readable by my user account.

          Maybe I’m misunderstanding you, but that’s harm to me without root access.

            • favoredponcho@lemmy.zip
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              14 hours ago

              Maybe you didn’t read it, but the article expresses that LLMs are being used to find vulnerabilities in software.

              The only real argument it makes that Mythos isn’t special is that other LLMs and human security researchers can also find vulnerabilities. This is true, but I find it funny because in the same section they note that it found 271 vulnerabilities in Firefox. I don’t think this article is the gotcha that you think it is.

              You strike me as just another Lemmy drone that downvoted and hates everything AI. And the energy and negativity with which you’re attacking me when all I was doing was answering a comment about why so many vulnerabilities are being found these days with an actual true statement is just weird man. Save your AI anger for someone else.

              • potustheplant@feddit.nl
                link
                fedilink
                arrow-up
                1
                ·
                14 hours ago

                Except that it is? There’s nothing particularly special about mythos and it’s not “too dangerous” to release. LLMs make it easier for people to find potential vulnerabilities, true. But they cannot actually confirm that they’re real wothout an actual person verifying it. Lots of reports are bogus.

                Do I hate AI? Of course I do. It literally has nothing positive unless you’re an ai company’s ceo. It’s being sold at a heavily subsidized price that is literally unmaintainable. All models will have to use token based pricing and that’s wgen you’ll see what it actually costs (spoiler alert, it’s a fuckton of money). This awfyl technology is also why a lot of tech is getting increasingly expensive.

                Not to mention that for these models to exist, all of these companies stole unfathomable amounts of data and caused chaos in the job market. Aaron Swartz’s life was turned into hell for much less.

                You’re literally defending a product that’s enshitifying your life. It’s absolutely moronic.