new linux exploit is absolutely insane

Поділитися
Вставка
  • Опубліковано 22 лис 2024

КОМЕНТАРІ • 768

  • @LowLevelTV
    @LowLevelTV  7 місяців тому +269

    Thanks for watching guys! ( come learn C at lowlevel.academy 🥺)

    • @Daniel-vs7it
      @Daniel-vs7it 7 місяців тому +1

      hi

    • @Alfred-Neuman
      @Alfred-Neuman 7 місяців тому +5

      Ha! I always knew Linux was unsafe!
      That's why I'm still using Windows 98 and I only connect to the internet with my 56k modem...

    • @drpoundsign
      @drpoundsign 7 місяців тому +1

      @@Alfred-Neuman LUV that toilet-flushing sound.
      I DO hope you are being Facetious and Sarcastic.

    • @real_yoplayer1
      @real_yoplayer1 7 місяців тому

      ​No, @@drpoundsign, Windows 98 is the newest version of Windows, safe and secure

    • @AnonymousAccount514
      @AnonymousAccount514 7 місяців тому

      rewrite the linux kernel in Rust???

  • @PS_Tube
    @PS_Tube 7 місяців тому +1196

    It was discovered in January, 2024. And has been patched already. All the rolling distributions would have the patch already installed. Ubuntu has already issued the patch back in Jan.

    • @rbgtk
      @rbgtk 7 місяців тому +42

      Thanks!

    • @maxturgeon89
      @maxturgeon89 7 місяців тому +175

      Thanks! That definitely should have been part of the video

    • @sunilpaul6891
      @sunilpaul6891 7 місяців тому +35

      I got really worried because i run linux; thanks

    • @zeckma
      @zeckma 7 місяців тому +5

      Thanks for informing us!

    • @TurtleKwitty
      @TurtleKwitty 7 місяців тому +121

      @@sunilpaul6891 A professional researched bug like this is always patched before it becomes public like this, assume its fixed unless it's mentioned it's not

  • @Swampdragon102
    @Swampdragon102 7 місяців тому +752

    The most shocking part of this video was that 2016 was 8 years ago.

    • @edwardmacnab354
      @edwardmacnab354 7 місяців тому +9

      I missed the 2016 mentioned , where is it in the video ?

    • @NisheshTyagi
      @NisheshTyagi 7 місяців тому

      @@edwardmacnab354 2:02

    • @maro0ozzz
      @maro0ozzz 7 місяців тому

      @@edwardmacnab354 2:02

    • @ryadboufar4741
      @ryadboufar4741 7 місяців тому +6

      sad reacts only

    • @jjm7797
      @jjm7797 7 місяців тому

      @@edwardmacnab354 2:02, you didn't miss much!

  • @WansVids
    @WansVids 7 місяців тому +260

    If you're wondering which kernel versions are vulnerable, here's what I found: The exploit affects kernel versions from (including) v5.14 to (including) v6.6, excluding patched branches v5.15.149>, v6.1.76>, v6.6.15>.

    • @Blaineworld
      @Blaineworld 7 місяців тому +12

      i’m on 6.8.0 so that means i’m safe? right?

    • @WansVids
      @WansVids 7 місяців тому +28

      @@BlaineworldYeah, you're fine. It's patched since 6.7.

    • @rayauxey
      @rayauxey 7 місяців тому +35

      I'm surprised he didn't include this in the video

    • @guilherme5094
      @guilherme5094 7 місяців тому +2

      o7!

    • @Tobsson
      @Tobsson 7 місяців тому +2

      ​@ap3ture0switch distro to fedora or arch. You'll always be up to speed.

  • @jimdiroffii
    @jimdiroffii 7 місяців тому +111

    I just read this entire write up yesterday, and I was blown away with the thoroughness and complexity of the research. And, it was only found because the author found a bug while trying to do some work. Most people just find another way, this guy found a wild exploit. Very impressive. Cheers to notselwyn

  • @XerrolAvengerII
    @XerrolAvengerII 7 місяців тому +149

    me, a plucky wizards apprentice resetting user passwords and setting up accounts, watching a UA-cam video about dark sorcerers unraveling death itself and warping space and time

    • @LowLevelTV
      @LowLevelTV  7 місяців тому +24

      I love this analogy XD

    • @Dirtyharry70585
      @Dirtyharry70585 7 місяців тому

      Simply about money and or destruction of property by people who have no morals, and could care less about who it affects or lives that can be lost

    • @slayeryt637
      @slayeryt637 7 місяців тому +1

      @@Dirtyharry70585 there's so many more reasons to want to make exploits than just death and destruction. What about the pure beauty in the exploit itself?

    • @LBNODK
      @LBNODK 7 місяців тому

      my name is my passport, then only i can be i as good as i... especialy in tron trades of wireless energetic multi androidic communication, were the cyberwar algorithm makes attack due ineffecientcy by having a password different then own name.... entering string linguistic and design of solid state reality... and so on and so forth.... = no pwd, then it is my own PersonalComputer communication fassett!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @demonman1234
    @demonman1234 7 місяців тому +58

    We’re making it out of the userspace with this one boys

  • @stopcensoringmen5044
    @stopcensoringmen5044 7 місяців тому +727

    What I like about Linux is that when a vulnerability like this is found, the community comes together and fixes it asap.

    • @akulkis
      @akulkis 7 місяців тому

      In contrast to Microsoft, who hides security bug reports while working feverishly to replace the functionality of the discovered back door by writing a patch which closes the discovered back door with a new back door. Only then does Microsoft admit that the security issue even exists.

    • @poisonouspotato1
      @poisonouspotato1 7 місяців тому +138

      the sun never sets on the global open source community

    • @BakelitTV
      @BakelitTV 7 місяців тому +49

      yes! unlike Windows or other communities where they don't fix vulnerabilities asap. (???)

    • @Z3rgatul
      @Z3rgatul 7 місяців тому +66

      linux community has no way to hide vulnerability fix, since fix goes open source. unlike with close source you can make a fix, and hackers will not know what was fixed and they can't exploit vulnerability on unpatched systems.
      i am not defending close source, I am just saying there is pros and cons everywhere

    • @Moe_Posting_Chad
      @Moe_Posting_Chad 7 місяців тому +25

      So how long was the vulnerability sold and exploited before it leaked? *That's the real question.*

  • @pu239
    @pu239 7 місяців тому +397

    Hi, this was a slightly unleveled video: It was basic in the beginning with you explaining what the kernel does and about syscalls, and then you explained the whole exploit in less time than that, which was too advanced. I know what the kernel is and that by interfacing with the kernel you are asking the kernel to do stuff. I also understand double-freeing and use after free, but socket buffer freelist/all those page descriptors/modprobe was explained in less than 2 minutes
    If you spent maybe 2 mins explaining the kernel and syscall basics part and 4-5 mins on the actual exploit, it would have more sense
    Thanks!

    • @adammontgomery7980
      @adammontgomery7980 7 місяців тому +60

      Nah, this deserves an hour at least.

    • @a.lollipop
      @a.lollipop 7 місяців тому +60

      i agree, i got very lost when he was explaining the actual exploit haha

    • @WasguckstdudieURlan
      @WasguckstdudieURlan 7 місяців тому +16

      Maybe he did it by intention, it's quite new after all. However he linked the full article in the description (77 min read) that goes into full detail

    • @aaaAaAAaaaaAa1aAAAAaaaaAAAAaaa
      @aaaAaAAaaaaAa1aAAAAaaaaAAAAaaa 7 місяців тому +2

      its mostly just data structure manipulation

    • @patrickstival6179
      @patrickstival6179 7 місяців тому +2

      Yeah, I got that same feeling. I will ask chatgpt now about that stuff

  • @incogninto1-1
    @incogninto1-1 7 місяців тому +243

    Time to finally root the Oculus Quest 2

    • @hyperkiko
      @hyperkiko 7 місяців тому +4

      it has already been done anyways

    • @incogninto1-1
      @incogninto1-1 7 місяців тому +35

      @@hyperkiko Why not do it again?

    • @hyperkiko
      @hyperkiko 7 місяців тому

      @@incogninto1-1 i will actually try it on my quest 3, i checked the kernel for the quest 3 and it isnt patched on it

    • @wheeI
      @wheeI 7 місяців тому +2

      looking for a poc right now

    • @hyperkiko
      @hyperkiko 7 місяців тому

      @@wheeI the github link in the description

  • @clintonreisig
    @clintonreisig 7 місяців тому +263

    It was fixed almost immediately. That is a strong advantage of Open Source in contrast to big corp coverups

    • @GoogleDoesEvil
      @GoogleDoesEvil 7 місяців тому +10

      If it was Windows, it would have been fixed before it was disclosed.

    • @kooostia16
      @kooostia16 7 місяців тому +76

      @@GoogleDoesEvil it would be fixed after it was disclosed after several years

    • @YTDeletes90PercentOfMyComments
      @YTDeletes90PercentOfMyComments 7 місяців тому +29

      @@kooostia16 it would then take 30 years for corporations to implement the fix

    • @dusxmt
      @dusxmt 7 місяців тому +20

      A disadvantage is that a whole bunch of companies "just ship" open source solutions based off of Linux and barely provide any security updates, which are critically important. This is one of the reasons I don't like IoT, because it's extremely susceptible to issues like this.

    • @edwardmacnab354
      @edwardmacnab354 7 місяців тому +13

      @@GoogleDoesEvil it would have been fixed ? by windows ? , tell me you don't know the history of windows by not telling me --lol

  • @kayakMike1000
    @kayakMike1000 7 місяців тому +160

    Running in kernel is worse than running as root.

    • @dahahaka
      @dahahaka 7 місяців тому +20

      from my understanding they're not really running or changing that much code inside the kernel, that might be pretty complicated, but they're letting the kernel execute their binary as root by changing a path, that's still not running inside the kernel

    • @rusi6219
      @rusi6219 7 місяців тому +53

      Everything should run in kernel
      This comment was posted by TempleOS Gang

    • @kayakMike1000
      @kayakMike1000 7 місяців тому +4

      @@dahahaka well, depends. Running inside the kernel could cause a kernel panic and crash the whole system, running as root just causes a segfault

    • @dahahaka
      @dahahaka 7 місяців тому

      @@rusi6219 niche and I love it

    • @averagegeek3957
      @averagegeek3957 7 місяців тому +6

      @@rusi6219 RIP Terry

  • @thedtubeteam7981
    @thedtubeteam7981 7 місяців тому +132

    Welp, time to upgrade my kernel.

    • @kolz4ever1980
      @kolz4ever1980 7 місяців тому +9

      you think? Might be why distros push out updates..

    • @ent2220
      @ent2220 7 місяців тому +4

      Tell me about it. I'm still on Fedora 37 with kernel 5.15 LTS, which I haven't updated in about 6 months because the updates stopped lmao. I might have to jump to the newest Fedora 40 beta.Luckily 99% of my apps are flatpaked, installed with the --user flag, and I have dconf commands to apply all my GNOME settings. So I would barely have to re-setup anything and will have all my apps and userdata once I upgrade.

    • @robertjenkins6132
      @robertjenkins6132 7 місяців тому

      What's the big deal? As I understand, malicious code running in userland could take advantage of the exploit to run arbitrary code as root? But why would you run malicious code on your computer??? My personal policy is that I don't run anything that I'm not getting from a trusted source. You have javascript on web pages but that runs in its own sandbox in the browser (on Windows as well), and if you have AdBlock installed then that blocks a lot of crud right there. The Internet is more centralized nowadays so most people spend their time on a few websites run by giant corporations. Presumably your personal network is protected with a wifi password and firewall. I mean, if you're a network admin and people can come in and run any kind of code on your network's computers, then maybe that's where it would be warranted to be a bit concerned about such a privilege escalation vulnerability.
      In olden days everything ran as root in Windows 3.1 (or the Windows analogue of "root"), but you would not become infected if you did not click on malicious .exe files (also best to avoid Internet Explorer and ActiveX).
      I think that if there is malicious code, which might be inclined to _attempt_ a privlege escalation exploit, running on your machine, then you're already in a bad place. In my opinion, it's not good to have malicious code running, even if it is not escalated up to root...

  • @dustsheep1316
    @dustsheep1316 7 місяців тому +1

    I love how you keep it short all the time, I don't want to watch through 40 minutes of detailed explanation. This is the perfect overview - thank you very much

  • @petermathijssen9470
    @petermathijssen9470 7 місяців тому +12

    Great that you used one of the Tuxlets in your video, that I made with my son years ago. 👍

  • @Catalyst8487
    @Catalyst8487 7 місяців тому +8

    Really enjoyed this kind of video from you! Admittedly, some of the exploit explanation went over my head and I'll need to do some further research on my end. You might have yourself a little niche here of in-depth explanations of vulnerabilities in an ELI5 manner if you want it. I'd love to see more videos like this with other well-known or new vulnerabilities.

  • @hawkbirdtree3660
    @hawkbirdtree3660 7 місяців тому +8

    Bugs never went away, but recently, it feels like bugs just did 20 years in prison, and they've been released on parole.

  • @IngwiePhoenix_nb
    @IngwiePhoenix_nb 7 місяців тому +7

    I am looking at the proprietary Linux devices at home and at work and just... curiously tapping my chin.
    This ought to be interesting (:

  • @BenjaminVestergaard
    @BenjaminVestergaard 7 місяців тому +15

    The poor guy that was tasked to educate me about Linux wasn't allowed to use an updated Linux for education... he had to stick to one (old) version of RedHat, because that's what the book used...
    It took me 1 Google, 3 potential exploits and 15 minutes to become root of that educational Linux server. (Okay, I was familiar with Linux before they tried to educate me).
    I just made an extra root account, which was allowed to login via ssh. Could have locked out everyone else... but I was just making a point about using outdated software for education.
    Netfilter is quite a problem if it can elevate privileges. But at the same time kinda predictable... I'm happy that it's been found, so next iteration will be safer. Worst is how easy it can be used.

    • @SanchoPanza-m8m
      @SanchoPanza-m8m 7 місяців тому

      Excellent whitehat hacking.

    • @sayori3939
      @sayori3939 3 місяці тому

      I'll do the same :3 already found the vulnerability

    • @BenjaminVestergaard
      @BenjaminVestergaard 3 місяці тому

      Even white hats are being cursed at in corporate setups.
      A lot of organisations still rely on security by obscurity and doesn't do the mental exercise of "how would I get in if I lost my key"... If you do that well enough, you can't... if it was a physical building of yours you'd probably find the least expensive window to break and pay for that.
      If you're clever you piggyback on some software that needs root. In that way, it's very difficult to lock out the legitimate admin.
      Problem is, an experienced hacker would probably also have installed a few back-doors upon arrival.
      Edit: having physical access to your server is the ultimate security... but so much is virtual today.

  • @Little-bird-told-me
    @Little-bird-told-me 7 місяців тому +1

    _I have learned so much from this channel its amazing. I was scared of writing _*_Hello World_*_ in C until last year, and now I am learning about exploits in the kernel. Thanks so much !!_

    • @CFSworks
      @CFSworks 7 місяців тому +1

      Welcome to the field! Now go do the next thing you're scared of failing!

  • @nunyobiznez875
    @nunyobiznez875 7 місяців тому +16

    This works a bit like a digital Rube Goldberg machine.

  • @oscarmendez9079
    @oscarmendez9079 7 місяців тому +10

    Relatively new here - background is in mechanical engineering but I would really like to learn embedded software development ( for myself and for my job). Really enjoy these types of videos. I will say I always write some of the acronyms from these videos down on stickies to look up later, given my lack of knowledge of the inner workings of computers. TIL what a TLB is. Anyways, looking forward to any and all videos 👍🏼

    • @edk3539
      @edk3539 7 місяців тому +2

      translate look-aside buffer. i learned it in early ee/cs course on cpu's

    • @arthurmoore9488
      @arthurmoore9488 7 місяців тому +1

      Analogy, you know how you can have a reference book which has a chapter list at the front, then every chapter has a section list at the start. That's how these work. Another common trick is to say:
      * Chapter 1 - Pages 100-199
      * Chapter 2 - Pages 200-299
      etc...
      Sure there may be some blank pages, but the hardware can be designed to be really really fast.

  • @RobertHyrkiel
    @RobertHyrkiel 7 місяців тому +127

    I'm learning that the safest way to store your secure data is on a piece of paper

    • @Gogeta70
      @Gogeta70 7 місяців тому +17

      Yep, no better method than writing your password on a sticky note and "hiding" it under your keyboard... lol

    • @YeeLeeHaw
      @YeeLeeHaw 7 місяців тому +22

      Only second to your brain, but sometimes the files can get corrupted up there or with package loss before reaching your fingers.

    • @Sypaka
      @Sypaka 7 місяців тому +1

      And all it takes, is a pencil to make a copy of everything you wrote.

    • @oxylepy2
      @oxylepy2 7 місяців тому +6

      @@Sypaka assuming the location of the written information is known. Sure it isn't going to stop your kids from finding it, or Boeing, but it works against the hackers online

    • @someoneelse5005
      @someoneelse5005 7 місяців тому +1

      @@Sypakaor a photo but you keep forgetting the whole part of physically being there

  • @morgwai667
    @morgwai667 7 місяців тому +6

    the amount of grinding through kernel code and memory dumps that must have been put to develop this exploit is beyond my comprehension... now if i add to this that merely obtaining a kernel memory dump is way more complicated than in case of a user space results in me getting a headache just thinking about it ;-]

  • @enigmatico6209
    @enigmatico6209 7 місяців тому +10

    Yeah all Linux distributions probably has this patched, but think about all the routers and phones and devices like smart TVs and everything that are connected to the internet and are probably still outdated, like your router if you have an ISP that doesn't allow you to switch it. A lot of these run on Linux and are likely using an outdated version of the kernel.

    • @techwolflupindo
      @techwolflupindo 7 місяців тому +2

      And to think, one can now hack it to put there own updated software that the manufacture locks you out of so you can't update.

    • @SanchoPanza-m8m
      @SanchoPanza-m8m 7 місяців тому

      @@techwolflupindoTheir?

  • @sumless
    @sumless 6 місяців тому

    One thing many folks might not understand is that the attacker needs to have access to the system to exploit/gain this privilege. That being said, it can be used in a process where user xyz is harmlessly (or intentionally) installing something onto the box itself. This doesn't mean that any Linux system sitting idly on a network can be exploited from a pure network means. One of the overcites most folks make is hearing there is an exploit that gains root access means you need to drop everything and patch any and every system running Linux distro version xyz as the exploit affects them immediately. It really depends on the system, it's use, it's broad access, and several other factors. Granted, this is not to say you should not address such a situation, but by all means it doesn't mean the sky is falling either. All the same, very interesting how this one works, and thank you for breaking it down the way you have.

  • @haywardgg
    @haywardgg 7 місяців тому +4

    Should have pointed out that so long as people were doing their updates, this was patched back in January. FUD, for clickbait!

  • @jama211
    @jama211 7 місяців тому

    Thank you for having a correct title, seen some people saying stuff like "linux got wrecked". I appreciate your title game more for being truthful.

  • @xeqqail3546
    @xeqqail3546 7 місяців тому +9

    Really hope one day I could comprehend all this shenanigans lol .. great vid!

  • @AWIRE_onpc
    @AWIRE_onpc 7 місяців тому +86

    Right after i installed debian...

    • @vaisakh_km
      @vaisakh_km 7 місяців тому +15

      XD good luck for next 10 years...

    • @yramagicman675
      @yramagicman675 7 місяців тому

      @@vaisakh_km eh, if I'm not trying yo completely kill the joke it's more like 3 months. Debian does apply security patches pretty effectively.
      To kill the joke completely, in reality, the bug is probably patched in latest and LTS kernels by now, it's just up to the distributions at this point, and Debian uses a patched version of the LTS kernel

    • @Excalibur13
      @Excalibur13 7 місяців тому +19

      rm -rf
      install gentoo

    • @Jeppelelle
      @Jeppelelle 7 місяців тому +18

      So? Just update the kernel like you would on any other distro

    • @willardorwud
      @willardorwud 7 місяців тому +4

      @@Excalibur13 rm -rf --no-preserve-root

  • @itskarudo
    @itskarudo 7 місяців тому +4

    you should definitely do more detailed exploit writeup videos! :)

    • @epolpier
      @epolpier 7 місяців тому +1

      He acknowledges himself that this is sth beyond his knowledge so better not try it...

  • @DeusGladiorum
    @DeusGladiorum 7 місяців тому +14

    You should do a video on the most impactful or crazy bugs of all time, or perhaps per decade/computing era

    • @ACium.
      @ACium. 7 місяців тому

      Nice one

  • @kenny-ze8eg
    @kenny-ze8eg 7 місяців тому

    So, this information only makes my situation way more puzzling to me. My respect for you guys is beyond comprehensive. I just wish I could cling onto the information and actually put it into play to fix my situation.

  • @eliotmansfield
    @eliotmansfield 7 місяців тому

    as someone who spent his teenage years in the 80’s aligning floppy disks who also had an engineering background - I always found that disks would run far more concentrically if you lowered the disk clamp slowly to give the cone a chance to clamp the disk correctly

  • @gnuPirate
    @gnuPirate 7 місяців тому +1

    This channel is so awesome and educational. Look forward to spending more time with it.

  • @UltimatePerfection
    @UltimatePerfection 7 місяців тому +6

    Can you talk about the backdoor in liblzma/xz that lets you avoid SSH?

  • @ryangrogan6839
    @ryangrogan6839 7 місяців тому +5

    Soooo, what is vulnerable to this? Is this something that can happen if you have a socket based connection? Do you need access before escalating? Itd be nice to know how to protect myself and not just how they do it.

    • @nou712
      @nou712 7 місяців тому +1

      This windows users priorities are not to inform linux users like yourself. It is a local privesc so unless someone accesses your system you're fine. If you install buggy software from GNOME and their diverse programmers you open up more privesc possibilities.

    • @Pharoah2
      @Pharoah2 7 місяців тому +1

      It has been patched for months so unless you’ve manually disabled security updates you are not vulnerable

    • @Pharoah2
      @Pharoah2 7 місяців тому +1

      @@lawrencemanning not your fault. I have no idea why he didn’t mention it in the video.

    • @anthonybernstein1626
      @anthonybernstein1626 7 місяців тому

      @@lawrencemanningProcess namespaces are enabled by default on most distros. A quick way to check is cat /proc/self/uid_map. If it exists, you have user NS.

  • @4.0.4
    @4.0.4 7 місяців тому +1

    I love how the author made such a cool graphic instead of just writing about it. It's clearly a lot of steps.

  • @spencernold7121
    @spencernold7121 7 місяців тому +1

    "In 2016, about 8 years ago", god damn man, you're making me feel old

  • @researcher_x
    @researcher_x 7 місяців тому +2

    Thanks for sharing your enthusiasm on this exploit. Next time, please try digging into it.

  • @claudiu7909
    @claudiu7909 7 місяців тому +9

    Hmmm, what I hear is: NEW android rooting method (possibly)
    if someone implements this functionality into a su/sudo, someone else might be able to port it on android and we'll have a new way of rooting some of the older phones that either didn't have a way to be rooted or didn't have a big enough user base for someone to find a way to root them. ofc this is only possible if the same exploit is available in the android kernel.

  • @raelimec
    @raelimec 7 місяців тому

    I dont understand almost any of these but still catches my genuine interest, congrats bro!!

  • @ralfbaechle
    @ralfbaechle Місяць тому

    I'm not surprised by this bug being complex. The kernel community and the associated companies and users have always values security and over time that value has increased drastically. Joe A. Verage doesn't want his router to become part of a botnet, Google wants no visitors on their servers. To name a few. The security net isn't perfect and the likelihood of something slipping through is higher in esoteric corners of the kernel such as rarely used subsystems or drivers. A security problem that's distributed across half the kernel is a small nightmare. But if something slips through the net it will be perceived as an egg hitting the face and be dealt with accordingly. On the other hand, Linux has become a huge beast, security is tough.

  • @diobrando7642
    @diobrando7642 7 місяців тому +38

    How was this bug discovered?

    • @LowLevelTV
      @LowLevelTV  7 місяців тому +108

      manual source code audit. absolutely insane

    • @weiSane
      @weiSane 7 місяців тому +7

      @@LowLevelTVwoah crazyyy

    • @Reydriel
      @Reydriel 7 місяців тому +6

      @@LowLevelTV That's pretty hardcore lol

    • @dengyun846
      @dengyun846 7 місяців тому +7

      That's amazing that someone would just...read the source code like that.

    • @diobrando7642
      @diobrando7642 7 місяців тому +2

      @@LowLevelTV That is nuts

  • @heitormbonfim
    @heitormbonfim 7 місяців тому +6

    I'm loving your Cybersecurity stuff. That's the future

  • @yellingintothewind
    @yellingintothewind 7 місяців тому +2

    Privilege escalation as a class does not depend on exploiting anything in the Linux kernel. It just means gaining permission to do some normally-restricted thing without proper authentication. This _can_ involve a Kernel exploit, but often means targeting set-uid binaries like ping or sudo. Alternatively you can target a service running with the desired permissions.
    For example, suppose you have a guest user with ssh-only access to a desktop with a running X11 server. This user does not have permission on /dev/input, nor permission to talk to the X server. Further, suppose this is a legacy system with X11 installed setuid. If the user finds a vulnerability in X11 that makes it change permission on an existing X11 socket to 777 before it drops root, the user can use that vulnerability to give himself permission to talk to the primary user's already running X11 server. Then, through the running X11 server, the guest user can listen to the keyboard and mouse or snoop on existing windows. As this is not an intended permission, gained through an exploit, this is a privilege escalation attack.
    In practice, relatively few privilege escalation attacks use defects in the kernel. Local-user privilege escalation usually involves finding a misconfigured or defective setuid program. There are also remote-user privilege escalations, usually gaining admin rights on a website or similar service. In this case the attacker doesn't even get permission over a new process, just escalated privileges within a specific application.

    • @framegrace1
      @framegrace1 7 місяців тому

      setuid is not used on linux systems from 2008, where `capabilities` replaced most of its uses, and then we have SELinux on top for a long long long time.
      Been years without setuid files on any modern system. Non syscall derived escalations are ultra rare (Never heard of any for a long time)

    • @dusxmt
      @dusxmt 7 місяців тому +1

      @@framegrace1 There's been several privilege escalations caused by bugs in things like sudo and policykit, some of which have been pretty recent (e.g. due to some of the code in policykit being written in a "clever" (read: hacky) way and not handling argv[0] being NULL correctly, CVE-2021-4034)

    • @yellingintothewind
      @yellingintothewind 7 місяців тому

      @@framegrace1 Really? Because `/bin/su` and 12 other binaries in /bin, /sbin/, and /usr/bin are all setuid on my stock ubuntu VM. Sure, granular capabilities have helped, and programs like firejail take advantage of that to even further restrict capabilities of even normal users (which makes escaping firejails a relatively new area of escalation attacks).
      More than granular capabilities, dbus (and things built on top of dbus like the typical wayland implementations) use posix file handle passing to grant granular access to system resources across users. For example, X11 no longer is setuid because it gets access to /dev/input and the video card resources by asking for them over dbus. The Login1 provider (usually a combination of PAM + (e)logind, running as root) then opens these files and passes handles to them to X11 for session creation. Like with the possible firejail escape above, this means system services like Login1 listening over dbus are now viable attack surfaces for privilege escalation attacks.

    • @Ethorbit
      @Ethorbit 7 місяців тому

      🤓

    • @phobos.anomaly
      @phobos.anomaly 7 місяців тому

      @@framegrace1 _"Been years without setuid files on any modern system."_ - The system I'm on now has like 20 setuid binaries. I'm pretty sure binaries like su, sudo, passwd, mount, chsh are still setuid on most if not all systems.

  • @spambot7110
    @spambot7110 7 місяців тому +1

    0:23 i think the "author of this bug" was probably not using novel techniques, i think they just made a mistake writing some kernel code

    • @tremon3688
      @tremon3688 7 місяців тому

      He means the one who discovered the bug

  • @aga5897
    @aga5897 7 місяців тому

    Superb exploitation !
    The author of that one must really really have a hands-on grip of Kernel code.
    Kinda narrows it down some.

  • @David-XCsoaring
    @David-XCsoaring 7 місяців тому +2

    This video was fascinating to listen to as a Linux fan but if I am honest, I have no idea what he is talking about. This is on another level way over my head.

  • @vasiliigulevich9202
    @vasiliigulevich9202 7 місяців тому +2

    Exploit explanation starts at 3:47

  • @0xkleo
    @0xkleo 7 місяців тому +18

    I'm sick and this vid is already making me happy :)

  • @misterrreco2535
    @misterrreco2535 7 місяців тому +1

    I'm proud I was able to understand half of this after my OS college classes

  • @user-pd5ot4zd4b
    @user-pd5ot4zd4b 7 місяців тому

    Sweet 'sploit, scary 'sploit. It must have been there for a long time and I wonder what other well resourced adversaries were sitting on it in a zeroday portfolio. Appears to require a local user, but also seems to be the kind of thing that might be projected through a web service bug into a RCE.

  • @Ch40zz
    @Ch40zz 7 місяців тому +3

    many of these techniques are used for windows kernel exploitation quite often

    • @ent2220
      @ent2220 7 місяців тому +1

      Yeah except they don't tell you about it and keep them open on purpose for the NSA, CIA etc. I'm also fairly confident that Bitlocker has a bunch of backdoors as well.

    • @rusi6219
      @rusi6219 7 місяців тому

      @@ent2220 yeah why use that garbage when veracrypt is available

    • @kidnamedfinger.productions
      @kidnamedfinger.productions 7 місяців тому

      @@ent2220 Some guy made a video on UA-cam how he cracks bitlocker in 50 seconds. Bitlocker is an absolute garbage.

  • @mihai6977
    @mihai6977 7 місяців тому +24

    dude i'm high on shrooms rn this is insane.

  • @downwardtumble4451
    @downwardtumble4451 7 місяців тому +1

    “Dirty Cow” sounds like it would be a drink in Wisconsin lmao

  • @scootergirl3662
    @scootergirl3662 7 місяців тому

    LLC has a knack for explaining complicated low level processes in a way noobs can understand, without boring the people that do actually know a bit more. Rare skill.

  • @TheEtrepreneur
    @TheEtrepreneur 7 місяців тому

    this video finished too soon!! Very simple explanation, this dude might be a great teacher.

  • @keithmanning6564
    @keithmanning6564 7 місяців тому +1

    Privilege escalations do not necessarily exploit kernel code, they could exploit weak applications which have higher privilege themselves

  • @iamgeok
    @iamgeok 7 місяців тому +1

    This is one of those channels I go to watch to feel smart. Knowing a little bit about computers, I understood everything and nothing 🤣

    • @shiftingsandsgames
      @shiftingsandsgames 7 місяців тому

      Programming vulkan graphics lets me at least not get confused when i hear about buffers and descriptors😅

  • @benjaminshropshire2900
    @benjaminshropshire2900 7 місяців тому +1

    I wonder if segregating the kernel dynamic memory meta data from the allocate-able memory would make this harder? Use the freed block to hold their own meta data is nice, but is it an unnecessary risk?

  • @Rasspor
    @Rasspor 7 місяців тому

    Some people work really hard to find these exploits. Way over achieving. AMAZING!!!!

  • @alexlefevre3555
    @alexlefevre3555 7 місяців тому

    That visual aid chart is very Charlie from It's Always Sunny-esque.

  • @Z3rgatul
    @Z3rgatul 7 місяців тому +2

    So, who was affected by this? Any system? Or just very specific network configuration?

    • @CFSworks
      @CFSworks 7 місяців тому

      Looks like any unpatched Linux system newer than 3.15 (!!) with USERNS enabled. So... the vast majority of them. A mitigation is to set the sysctl kernel.unprivileged_userns_clone=0

    • @sayori3939
      @sayori3939 3 місяці тому

      yeah and people pretend this is some ancient exploit that's not relevant like dirty cow, my school literally has this exploit

  • @TheDudeAbidesYo
    @TheDudeAbidesYo 5 днів тому

    I am always astonished at how many bugs there are. I am glad that they are being caught and fixed. But it begs the question: will we ever enter into an era where there aren't any more vulnerabilities to exploit? Sometimes it seems like we are going the opposite direction and finding and fixing more bugs than ever before, which is frustrating. It angers me that at some level you simply have to let go and just trust that you computer is OK in the sense that criminals won't be able to get at it or your accounts. But still.

  • @BacklTrack
    @BacklTrack 7 місяців тому

    I usually kinda understand a lot of general exploit stuff but this is just insane

  • @_JohnHammond
    @_JohnHammond 7 місяців тому

    holy poop dude this video is popping off
    get that root shell 🔥🚀🐚🐚

  • @woahblow4127
    @woahblow4127 7 місяців тому +1

    How is double free a thing? Is it for multiple locks on the same file? Lock decrements instead of setting to 0? Are there double lock errors then when files are permanently closed?

    • @anthonybernstein1626
      @anthonybernstein1626 7 місяців тому +1

      Kinda, but it’s not files, it’s memory:
      foo = kmalloc(whatever);
      (lots of other stuff)
      kfree(foo);
      (more stuff)
      kfree(foo);
      The allocator uses the freed memory to store pointers to other free memory so that it knows what’s free (and not to waste additional memory to store this). You can imagine it as free pieces of memory pointing to other free pieces of memory in a long chain. If you free the same piece the second time, it will be in this chain twice. Now if you allocate a new piece, you could get this twice-freed piece back so you can write data to it - but it’s still in the list (since it was added twice) so whatever you write there, the allocator thinks is part of the free chain - so you can redirect the allocator and force it to write to memory it’s not supposed to.

  • @svarodzic
    @svarodzic 7 місяців тому

    Yes, I definitely learned something here. That I am stupid as a rock! ))) Even though I've been doing system programming for 30 years now.

  • @wickeddubz
    @wickeddubz 7 місяців тому

    Level of discussions on this channel regularly makes my brain hurt in positive sense, but i can’t imagine level of those dudes who actually found this bug and used it. It’s WTF++ or even higher

  • @Skyliner_369
    @Skyliner_369 7 місяців тому +4

    Now the question is, how long will this bug last?

    • @VallThyo
      @VallThyo 7 місяців тому +4

      I has been fixed several months ago on 6.7

    • @martenkahr3365
      @martenkahr3365 7 місяців тому +2

      Already gone, for the most part. Discovered in January and already patched in the kernel before the end of January. Downstream distros caught up with this update quickly, too. Ubuntu released the relevant kernel update on their package manager before the end of January, most other distros got it done by the end of February. At this point, the bug only lives in the computers of users that refuse to install security updates.

    • @dusxmt
      @dusxmt 7 місяців тому

      @@martenkahr3365 Can't forget companies that ship products based off of Linux and don't provide security fixes for them (commonly seen in IoT)

    • @BrendonGreenNZL
      @BrendonGreenNZL 7 місяців тому

      @@martenkahr3365 such as every home router or IoT lightbulb out there?

  • @TalsBadKidney
    @TalsBadKidney 7 місяців тому +1

    okay the GH says this blows right through defaults on debian-core systems... does this work on more serious SELinux like RHEL or Gentoo?

  • @SoulExpension
    @SoulExpension 7 місяців тому

    I had this question over "immutable" os utilizing overlayfs, and escaping containers and chroot in this low level way.

  • @test40323
    @test40323 7 місяців тому

    Congrats on doing an excellent job explaining it. Thanks!

  • @drpoundsign
    @drpoundsign 7 місяців тому +2

    I am NO Expert on this. Years ago, however, I put a Linux disc in my Old Sony Vaio. It ran like a Breeze, and there was NO Further Malware. I'm typing this on a 2011 Macbook. IOS is slightly more vulnerable to viruses. But, it's Never been so Bad that I couldn't turn on the machine, or get to my browser. I've never had Dancing Bios (remember the Magistrate Virus, around twenty years ago??)
    The Problem with Apple, and also Chromebook, is that the system stops being updatable after a given number of years, and then you need to buy a new machine. RIPOFF!
    The Ransomware attacks against Electronic Health Records have ALL been Windows systems. And, that's NOT because of their Prevalence, Either.
    Windows is Dangerous by Design.

    • @TheSkyLynx2
      @TheSkyLynx2 7 місяців тому

      Windows is perfectly safe, its users are dangerous as hell. :)

  • @elzabethtatcher9570
    @elzabethtatcher9570 7 місяців тому +1

    I didn't understand a thing after the graph went up, but I hope kernel patches it soon!
    Did kernel devs found about this exploit "from the news", or maybe they were given a head start into fixing it?

  • @aravindmuthu95
    @aravindmuthu95 7 місяців тому +1

    the moment it is found the repo would have been nuked with pull requests. that's the power of open source

  • @supergamerfr
    @supergamerfr 7 місяців тому

    Thank you for the quality content don't hesitate to go super go level and in depth I love it

  • @johnkallimanis1599
    @johnkallimanis1599 7 місяців тому +1

    I run the CVE testing code from the github account on a very recent (and patched) kernel and it froze and crashed the system. Very interesting

  • @bingusbongus1656
    @bingusbongus1656 7 місяців тому +3

    One of the reasons I love Linux compared to Windows at this point is how bugs and vulnerabilities are discovered and managed. On Windows, things like these are only discovered when Malware is taking advantage of it, take Wannacry as a perfect example. Nobody knew what EternalBlue was until after the damage was done. On Linux however, a bug like that making something like that possible will be discovered by the Kernel devs themselves and nothing malicious will be able to take advantage of it.

  • @VivekYadav-ds8oz
    @VivekYadav-ds8oz 7 місяців тому +31

    Double-free wouldn't have happened if the kernel was written in Rust 😎 *puts on long socks with beautiful rainbow hair and naruto runs away*

    • @honse246
      @honse246 7 місяців тому +8

      ur right because then it would have been abandoned after a few months

    • @rusi6219
      @rusi6219 7 місяців тому +12

      @@honse246 look into trans suicide rate and the rate of abandoned rust projects starts to make sense

    • @pheonixmmkc
      @pheonixmmkc 7 місяців тому +3

      @@rusi6219 lmao

    • @justinliu7788
      @justinliu7788 7 місяців тому

      @@rusi6219they’re not abandoned, they’re done -NoBoilerplate

    • @VivekYadav-ds8oz
      @VivekYadav-ds8oz 7 місяців тому +3

      @@rusi6219HOLY SHIT 💀that was a dark one. Well played 👏

  • @chrissimpson1183
    @chrissimpson1183 7 місяців тому +1

    So could the same thing be done on Mac OS since it is based on UNIX like LINUX is?

  • @Airbag888
    @Airbag888 7 місяців тому

    Sentient AI will have a field day with all the imperfections sprinkled around in our various operating systems and software...

  • @AadidevSooknananNXS
    @AadidevSooknananNXS 7 місяців тому

    Hey @LowLevelLearning, how do you decide what to learn?

  • @Qstate
    @Qstate 7 місяців тому

    I thought the entire reason we pass syscall argument by registers and not the kernel stack is that those kind of things don't happen.

  • @anthonywalker6268
    @anthonywalker6268 7 місяців тому +1

    Daily reminder: there is no such thing as perfection.

  • @deanvangreunen6457
    @deanvangreunen6457 7 місяців тому +3

    Machines run on smoke and magic. All modern computers are just so scientifically advanced you could call it magic, we've taken rock (metal) and sand (silicone) and made it "think" 🎉😂😅

  • @Ilovecruise
    @Ilovecruise 7 місяців тому

    Hmm, self learning cyber security here, so this attack would not work on environments where Structured Exception Handling Overwrite Protection is enabled, because the kernel entry does not match the one as recorded? Or is it not available on Linux? Thanks

  • @brendanlydon5272
    @brendanlydon5272 7 місяців тому +2

    I’d really like to know what percentage of your subscribers can actually follow this. Because technically I am a lower level software engineer. But tbh? W.T.F?!?!? I’d assume I’m not alone, but truly some people are on another level.

  • @tankman1301
    @tankman1301 7 місяців тому +1

    3:38 for a novice it would have been interesting if you would have elaborated on that matter a bit more. why does pulling certain levers result in a exploit?^^

    • @CFSworks
      @CFSworks 7 місяців тому

      I think what he's trying to say is that the "only" userspace->kernel interface is syscalls. "Open this file." "Read me 32 bytes from the file." "Now I want to send those bytes to another process running on the same system." In theory, the syscalls are *individually* tested incredibly thoroughly (thanks to tools like Google's Syzkaller project and the tireless efforts of a few heroes in the Linux community) to the point that I'm 99.9999% sure there are no single-syscall bugs in Linux... But a *collection* of them issued in just the right order can make the kernel take a series of steps that leads it into a pitfall, even if each step it took along the way would, in a vacuum, be considered "fine."

  • @garrettsmith5760
    @garrettsmith5760 7 місяців тому

    Why would a double free imply a use after free in this case? Are you saying that the memory was freed, and then the attacker somehow induced an allocation at that moment? Knowing that the 2nd free would soon occur?

  • @gosnooky
    @gosnooky 7 місяців тому

    Let's all take a moment and appreciate that guy's diagram-making skills.

  • @pixelgameing
    @pixelgameing 7 місяців тому +1

    Is it possible to use this exploit to get root access on a Android device?

  • @disieh
    @disieh 7 місяців тому

    I get freelist is probably the prime example where to use linked lists over other alternatives, but for sake of argument assume freelist would have been a plain array (or vector). Would that have prevented the abuse from double free? (Yes I know fixing the double-free is the first priority)

  • @unguidedone
    @unguidedone 7 місяців тому +1

    with grsecurity kernel hardening you should be fine but ill have to test anyway

  • @TeslaExplorer
    @TeslaExplorer 7 місяців тому

    Appreciate the lecture!

  • @RajarshiKhatua100
    @RajarshiKhatua100 7 місяців тому +22

    windows/macos also have all kinds of bugs but no one knows because the source is not available

    • @edwardmacnab354
      @edwardmacnab354 7 місяців тому +2

      and so is harder to write attacks ?

    • @The_Prizessin_der_Verurteilung
      @The_Prizessin_der_Verurteilung 7 місяців тому

      Mac has less exploits than Linux and Windows combined. I'm a dualbooter for Win11Pro and Linux Mint and can confirm.
      Sounds like you're projecting more than anything. "Bu-but, Windows and Mac also do-" That's cool, but is there a bug to exploit who asked?

    • @Youtubed-jv5oi
      @Youtubed-jv5oi 7 місяців тому +5

      @@The_Prizessin_der_Verurteilung I mean they're not wrong but the point is that Linux is backed by so many companies like Google, Microsoft, Oracle, Intel, AMD, etc so bugs are fixed extremely fast. The mac kernel is also open source. Windows lags behind

    • @robertthomas5906
      @robertthomas5906 7 місяців тому +4

      @@The_Prizessin_der_Verurteilung Mac has more exploits than Linux. It's based off of BSD. Back in 2007 they proved the point by porting all the old Linux exploits over to BSD. Now it's not even maintained as well as it was back then. BSD also isn't a mandatory access control kernel. So it's at least 20 years out of date. Don't be fooled, you're not as secure.

    • @joelimbergamo639
      @joelimbergamo639 7 місяців тому +1

      ​@@The_Prizessin_der_Verurteilungthe fact the nobody tries to find exploits there doesnt mean they dont exist.

  • @TunifyBasic
    @TunifyBasic 7 місяців тому

    netfilter is a good attack surface even in wiki leaks you will find some old exploits on linux that uses the netfilter

  • @davidyanceyjr
    @davidyanceyjr 7 місяців тому

    So how do you double free the kernel without being root? Or another privelaged user?

  • @cprhroaehssneteonr5488
    @cprhroaehssneteonr5488 7 місяців тому

    Does this work on all Unix systems? I’d like to know if this can be done on a Mac in any way.