Slashdot Mirror


Cryptsetup Vulnerability Grants Root Shell Access On Some Linux Systems (threatpost.com)

msm1267 quotes a report from Threatpost: A vulnerability in cryptsetup, a utility used to set up encrypted filesystems on Linux distributions, could allow an attacker to retrieve a root rescue shell on some systems. From there, an attacker could have the ability to copy, modify, or destroy a hard disk, or use the network to exfiltrate data. Cryptsetup, a utility used to setup disk encryption based on the dm-crypt kernel module, is usually deployed in Debian and Ubuntu. Researchers warned late last week that if anyone uses the tool to encrypt system partitions for the operating systems, they're likely vulnerable. Two researchers, Hector Marco of the University of the West of Scotland and Ismael Ripoll, of the Polytechnic University of Valencia, in Spain, disclosed the vulnerability on Friday at DeepSec, a security conference held at the Imperial Riding School Renaissance Vienna Hotel in Austria. According to a post published to the Full Disclosure mailing list, the vulnerability (CVE-2016-4484) affects packages 2.1 and earlier. Systems that use Dracut, an infrastructure commonly deployed on Fedora in lieu of initramfs -- a simple RAM file system directory, are also vulnerable, according to the researchers. The pair say additional Linux distributions outside of Debian and Ubuntu may be vulnerable, they just haven't tested them yet. The report adds: "The problem stems from the incorrect handling of a password check when a partition is ciphered with LUKS, or Linux Unified Key Setup, a disk encryption specification that's standard for Linux. Assuming an attacker has access to the computer's console, when presented with the LUKS password prompt, they could exploit the vulnerability simply by pressing 'Enter' over and over again until a shell appears. The researchers say the exploit could take as few as 70 seconds. After a user exceeds the maximum number of three password tries, the boot sequence continues normally. Another script in the utility doesn't realize this, and drops a BusyBox shell. After carrying out the exploit, the attacker could obtain a root initramfs, or rescue shell. Since the shell can be executed in the initrd, or initial ram disk, environment, it can lead to a handful of scary outcomes, including elevation of privilege, information disclosure, or denial of service."

89 comments

  1. Linexit! by Tablizer · · Score: 3, Funny

    That does it, I'm moving to Windows 10!

    -32768 Troll

    1. Re:Linexit! by Anonymous Coward · · Score: 0

      "That does it, I'm moving to Windows 10!"

      Sure you are, M$ sockpuppet #12437289347938!

      "-32768 Troll"

      Reverse psychology always works here. But usually it's "mod me down" and so on. Hope you picked up a nice paycheck this week!

    2. Re:Linexit! by Anonymous Coward · · Score: 0

      Your autism is showing.

    3. Re:Linexit! by Anonymous Coward · · Score: 0

      Good riddance. I'm going to build a wall and make the Windowze plebs pay for it. Make Debian great again, vote AC 2016.

    4. Re:Linexit! by Anonymous Coward · · Score: 0
  2. Now Trump has access to my system by Anonymous Coward · · Score: 0

    What will he do???

    1. Re:Now Trump has access to my system by Motherfucking+Shit · · Score: 1

      You might want to monitor for outbound connections to alfabank.ru.

      --
      "BSD: Free as in speech. Linux: Free as in beer. Windows 10: Free as in herpes." --Man On Pink Corner in #52607549.
  3. Luckily I don't use a root password by Anonymous Coward · · Score: 0

    Thank God I don't use a root password, or encrypt anything. Just hit enter and get a root prompt. Nothing to exploit, so I'm safe!

    1. Re:Luckily I don't use a root password by Anonymous Coward · · Score: 0

      Well, we know you're not RMS, because he pipes netcat through some scripts to lp and reads the printouts. So who are you?

  4. Linux sUKS by Anonymous Coward · · Score: 0

    yes.

  5. This is the year by Anonymous Coward · · Score: 0

    Remember this is the year of linux.

    TBH I am an avid linux fan for random projects or for scripting things that I would have to do by hand in windows (OMG I run Windows I must already by PWNED!)

    I don't know if Bitlocker is totally secure, but I doubt anything is actually secure if you have physical access to the machine. But to be clear I don't think my Windows install will drop me to the desktop if I press enter on the password prompt for 70 seconds! LOL. Not to Linux bash, and it's great that you're able to debug these issues since they are open source but let's not pretend that open-source = perfect OS for everything which seems to be the standard here.

    As a side note I am sure the NSA is very sad right now but I am sure they are busy looking for another backdoor. Though I think this attack should probably just be considered crawling through the doggy door.

    1. Re:This is the year by unrtst · · Score: 4, Insightful

      While this news isn't great, the encrypted image remains encrypted. If you allow your computer to boot to anything other than your main secure and encrypted setup, then someone with physical access at boot that has made it to that point in the boot process could simply boot to a rescue disk (usb/cd/network/etc), and then do even more damage. Also, since they have physical access, they could just pop out the drive and mirror it via any other system, or reset the bios (to clear bios password) and allow boot by other media. And if you had a bios password, how did they get past that to get to the exploit step?

      This isn't good, but it doesn't seem to be a big deal either.

    2. Re:This is the year by Anonymous Coward · · Score: 1

      "TBH I am an avid linux fan for random projects or for scripting things that I would have to do by hand in windows (OMG I run Windows I must already by PWNED!)"

      The M$ sockpuppets are strong today.

    3. Re:This is the year by Archangel+Michael · · Score: 1

      Assuming an attacker has access to the computer's console

      If the attacker has access to the system they have too much access.

      --
      Agent K: A *person* is smart. People are dumb, stupid, panicky animals, and you know it.
    4. Re:This is the year by olsmeister · · Score: 1

      If we learned anything from Terminator Genisys, it was that.

    5. Re:This is the year by Lesrahpem · · Score: 1

      This isn't good, but it doesn't seem to be a big deal either.

      This isn't a big deal for the vast majority of Linux use-cases. Where something like this becomes a problem is kisok-like machines and certain "secure" environments.

      For example, a certain US state's lottery machines, which run Linux. The machine has a list of USB device ID's it will accept, it's on a VPN, locked case, locked BIOS. All-in-all, pretty secure against tampering. However, the USB protection only goes so far because it's possible to craft a USB device which sends a fake ID.

      That said, even if someone could plug a keyboard into such a machine very little can be done because of the BIOS and bootloader password protection. However, a bug like this would suddenly be a potentially huge problem.

      I'm tired of people making bugs like this sound like earth shattering problems. At the same time there are a minority of situations where this type of thing is potentially a big issue. That said, we can't ignore stuff like this.

  6. Physical Access Required... by Anonymous Coward · · Score: 0

    In other words... Not a problem from the internet.

    1. Re:Physical Access Required... by Anonymous Coward · · Score: 0

      Because no one cares about local exploits. I agree that helps but seriously. Linux users always making excuses.

      I remember a recent article about activision sandboxing multiplayer games that were purchased in the Windows 10 store vs through other channels. Oh the Windows outrage, not directed at the game designer who clearly coded this, but at Microsoft, and that's a video game. This is console access to a machine. But hey it doesn't run windows so that's a start right there.

    2. Re:Physical Access Required... by Anonymous Coward · · Score: 0

      Which is not to say, not a problem.

    3. Re:Physical Access Required... by Anonymous Coward · · Score: 0

      I'm sure the Iranians thought their centrifuge lab was safe because their system was not connected to any outgoing network. And then someone infiltrated one of their most secure facilities and plugged a USB in to kick off Stuxnet. If someone is determined to gain physical access to a system in order to exploit a vulnerability it can be done.

  7. What vulnerability? by Anonymous Coward · · Score: 0

    The attacker has physical access to a full-disk encrypted system but doesn't know the password. They press ENTER a few hundred times and the init system drops them to a recovery shell that has the same level of access that they'd have if they just removed the disk and inserted it in a machine they do control. They're only going to get encrypted data, or the same data they could have obtained by removing the disk.

    The only part that might be remotely concerning is the attacker now has root on a booted machine and can maybe bypass BIOS boot security by forcing the kernel to run untrusted exploit code instead of booting it. That's not something you can accomplish easily by removing the disk and replacing the kernel if secure boot is enabled.

    I can see this being an issue if the user has remote console access (ILO, etc), but that's almost as good as physical access anyway.

    1. Re:What vulnerability? by flyingfsck · · Score: 2

      Exactly. The thing is encrypted. You can boot it various ways, but without the password, it remains encrypted.

      --
      Excuse me, but please get off my Pennisetum Clandestinum, eh!
  8. This doesn't seem like much of a risk. by Anonymous Coward · · Score: 0

    This doesn't seem like much of a risk.

    Full disk encryption only protects your data.

    Full disk encryption doesn't and can't protect the machine from someone who has physical access to your machine. Nothing really can.

    If someone has physical access to your machine they could: Install a hardware keylogger like this https://www.amazon.com/dp/B004TUBOKW

    Install malicious firmware (replace/extended the system EFI)

    Install a malicious bootload (e.g. a hacked GRUB (since grub isn't and can't be protected by the full disk encryption)).

    Full disk encryption is good, and should be used, but its users should understand, it only protects your data from theft, if your machine is powered off at the time of theft. If you machine is powered on and the decryption password has already been entered... then, well see this: http://www.businessinsider.com/ross-ulbricht-will-be-sentenced-soon--heres-how-he-was-arrested-2015-5

    You machine can only be trusted if no one else has tampered with it.

    1. Re:This doesn't seem like much of a risk. by infolation · · Score: 1

      Which means that if an attacker can secretly gain physical access to a (non-libreboot) machine and modify the BIOS, then someone else later running tails on that machine could be compromised by this exploit? Is this correct?

  9. If you can touch it, you can own it by C3ntaur · · Score: 4, Informative
    "Assuming an attacker has access to the computer's console"

    I was always taught that this pretty much means game over. It might be an interesting way to get a root shell, but if I am sitting in front of the machine with console access, I can think of a number of other ways to get a root shell.

    --
    Loading...
    1. Re:If you can touch it, you can own it by Anonymous Coward · · Score: 0

      "If you can touch it, you can own it"

      There. Now that's going on MY tombstone!

    2. Re:If you can touch it, you can own it by sexconker · · Score: 4, Funny

      "If you can touch it, you can own it"

      That's known as Trump's Postulate.

    3. Re:If you can touch it, you can own it by spongman · · Score: 1

      > I can think of a number of other ways to get a root shell

      ok, i'll bite. how?

    4. Re:If you can touch it, you can own it by Anonymous Coward · · Score: 0

      like sticking a dvd/usb disk into the machine and booting from that?

    5. Re:If you can touch it, you can own it by Wrath0fb0b · · Score: 1

      "If you can touch it, you can own it"

      Which is of course not true if "own it" means "access data encrypted with a strong key and a non-trivial-to-brute-force password".

      And of course this vulnerability gives you root access in the initramfs, but no access to any of the LUKS protected drives. At best, it's an easier way to perform an Evil Maid Attack, but we already knew that about whole disk encryption.

      So really this is just about making it much more convenient to perform an attack that we already knew was feasible (feasible here means not something that can be protected against cryptographically). In the final analysis, only a fully trusted boot path (in some flavor or another) will actually solve that problem.

    6. Re:If you can touch it, you can own it by Anonymous Coward · · Score: 0

      From top of my head:

      If GRUB is not password protected, edit the kernel boot line and add init=/bin/sh.

      If BIOS is not password protected, boot to Live distro using USB stick and edit the GRUB config on the disk.

      Take hard disk out and connect it to another computer. Edit GRUB config on the disk.

      Instead of editing GRUB config, edit the initrd image and customize init script there (e.g. replace with exec /bin/sh).

    7. Re:If you can touch it, you can own it by Anonymous Coward · · Score: 0

      Remote console.....

    8. Re:If you can touch it, you can own it by ArsenneLupin · · Score: 1

      Which is of course not true if "own it" means "access data encrypted with a strong key and a non-trivial-to-brute-force password".

      Not true. The kernel and initramfs itself need to be stored in cleartext (or else, how would the machine boot?). So, the exploiter would proceed as follows:
      1. Use the vulnerability to get a root shell
      2. Doctor a couple of scripts to log encryption password, or to inject a script into the root once encryption password has been entered.
      3. Use cpio and bzip to build a new initramfs from the image in memory
      4. Write that image to the appropriate part of the (cleartext) boot partition.
      5. Log off, go away, and wait for a legitimate admin to log in, triggering the booby trap.

    9. Re:If you can touch it, you can own it by Anonymous Coward · · Score: 0

      > > "If you can touch it, you can own it"

      > That's known as Trump's Postulate.

      Grab it by the busy!

    10. Re:If you can touch it, you can own it by Wrath0fb0b · · Score: 1

      Congratulations, you've just described the Evil Maid Attack that I linked from Schneier's blog post on Oct 23, 2009.

    11. Re:If you can touch it, you can own it by Anonymous Coward · · Score: 0

      I initially misread that as Trump's Prostate and just about spit out my beer.

  10. What is the Enter key supposed to do? by daniel23 · · Score: 2

    but seriously: the problem does not seem that serious at all: encrypted media are still encrypted and what you get is like a rescue shell. You can damage the encrypted media, but this is the case as soon as there is physical access to the machine. TFA says you can install a keylogger but if you have physical access you can plug in the logger between keyboard and usb even faster.

    --
    605413? Yes, it's a prime.
    1. Re:What is the Enter key supposed to do? by Anonymous Coward · · Score: 1

      It may be a weird threat model, but it's always good to have the specifics on bugs that potentially affect security, even in corner cases.

    2. Re:What is the Enter key supposed to do? by complete+loony · · Score: 2

      You could probably build a new initramfs and install a key logger there to capture the encryption password. But if you have console access to the machine while it's booting you could probably do that anyway by removing and reinstalling the boot disk.

      --
      09F91102 no, 455FE104 nope, F190A1E8 uh-uh, 7A5F8A09 that's not it, C87294CE no. Ah! 452F6E403CDF10714E41DFAA257D313F.
    3. Re:What is the Enter key supposed to do? by Anonymous Coward · · Score: 0

      but seriously: the problem does not seem that serious at all: encrypted media are still encrypted and what you get is like a rescue shell. You can damage the encrypted media, but this is the case as soon as there is physical access to the machine. TFA says you can install a keylogger but if you have physical access you can plug in the logger between keyboard and usb even faster.

      It's not even a rescue shell, the system just continues booting as normal. If this was a system partition, there sure will be issues during booting (which is the main reason I don't want booting to continue...), but if this is an encrypted /home, or some storage partitions, then there is no difference at all. Encrypted data will simply not be available. There's no reason to link booting with unlocking encrypted partitions by default. CryptSetup passwords are not system passwords.

    4. Re:What is the Enter key supposed to do? by Anonymous Coward · · Score: 1

      I agree, it's not ZOMG CRITICAL but it's worth thinking about. The main issue is that sometimes that rescue shell is really, really useful. Just a few months ago I upgraded a Debian server to systemd and spent the better part of an hour trying to diagnose systemd failing to boot, switching back and forth between sysv (which booted just fine but I couldn't see the errors with journalctl) and systemd (which would spin forever on mounting /tmp and refused to give me any kind of rescue shell or way to cancel mounting /tmp). With a rescue shell I could have manually tried mounting it, seeing the error that it was not formatted on the screen, looked up the systemd-crypttab docs on how systemd wants tmp partitions designated for formatting, and fixed it in minutes. I finally figured out that the problem was that I was using an old parameter understood by the init scripts (tmp=mkfs.ext2) to format the randomly encrypted partition with ext2 before mounting it, but systemd only accepted "tmp" which assumed to format it with ext2. But I digress...

    5. Re:What is the Enter key supposed to do? by Anonymous Coward · · Score: 0

      It's not even a rescue shell, the system just continues booting as normal. If this was a system partition, there sure will be issues during booting (which is the main reason I don't want booting to continue...)

      And this is what I don't get. When I hear "system partition", I think "root". And If it is root, how can it continue booting? You never entered the password, so it never got decrypted. So no problem, right?

    6. Re:What is the Enter key supposed to do? by Anonymous Coward · · Score: 0

      On my distribution, entering the wrong password gets you to a rescue shell, by design.

  11. interesting but... by Anonymous Coward · · Score: 0

    why bother physical access gives all kinds of posibilities. this is copy delete etc not access persay. how about take the drives how about clone the disks sure but there encrypted thats the purpose to protect the data on them. being able to delete and copy would suck(unless you have backups though inconvienent) its still protected the data from others. physical access could give a chance for keylogger even physical or perhaps firmware like bios level.
    didnt hear anything about cracked.

    1. Re:interesting but... by Anonymous Coward · · Score: 0

      "this is copy delete etc not access persay."

      Other than your utter lack of knowledge about punctuation or grammar, you illiterate loon, your Latin is abominable.
      "Per se"- "By itself"
      Let's try it this way:
      "This concerns copy, delete, etc, not access, per se.

      (Cue up Bullshit about being on a cell phone, or grammar is not important if the point is gotten across, or that punctuation is overrated, as is capitalization, or that I am a Gramer Natzi, or that we should feel sorry for him and give him a break because he is missing three thumbs...)

  12. The problem with leading Linux distributions by OneHundredAndTen · · Score: 0, Troll

    Leading Linux distributions (Ubuntu, Red Hat, even Debian) and their derivatives is that they look more and more like Windows with each new release. Even their defects are more and more reminiscent of those in Windows.

    1. Re:The problem with leading Linux distributions by Anonymous Coward · · Score: 1

      Distributions used to be put together by people scratching their own itches. Now, there are a bunch people paid to scratch around even when there are no itches; this results in oozing sores.

  13. More quality RedHat code by Gravis+Zero · · Score: 1

    RedHat took a turn for the worse about a decade ago and now we're reaping the rewards. I can't help but think there was a fundamental change in management that spurred mountains of code to come pouring out of RedHat.

    --
    Anons need not reply. Questions end with a question mark.
    1. Re:More quality RedHat code by wbr1 · · Score: 0
      Put your skills where your mouth is and fix it or write new. This is open source after all.

      Oh right.. crypto is hard. Bitching in a comment is not.

      --
      Silence is a state of mime.
  14. So what? Tested this on Fedora 25 by passionplay · · Score: 5, Interesting

    How is dropping to initrd "root" access?

    1. If you already have physical access to the console, all bets are off anyway. Security 101.

    2. If you have WDE enabled, dropping to root gets you initrd only - no passwords, no privileges, nada - all it lets you do is try to mount the file system which can't be because it's encrypted. Only /boot should be unencrypted.

    3. The only possible attack vector is to swap out the kernel image. But there are simpler ways to do that than run an exploit.

    Did these guys watch too many episodes of the new MacGyver and consider themselves hackers instead of script kiddies?

    Did they report the problem as only present if you encrypt specific volumes (which is stupid anyway because your passwords are visible now).

    It takes a lot of effort to avoid WDE when installing linux these days. Only an idiot would misconfigure and render his system vulnerable like this. And only an idiot would give his keys to the castle to people he didn't trust.

    Social Engineering wins every time and there is nothing you can do about it.

    1. Re:So what? Tested this on Fedora 25 by gweihir · · Score: 4, Insightful

      Indeed. You basically get the same as booting a rescue-system or removing the disk and accessing it directly gets you. In all, but a few very special set-ups, this means this is not actually a vulnerability or a bug that needs fixing. However, in these few very special set-ups, the standard distro-mechanisms are not enough to protect you anyways and if you rely on them, you have bigger problems than a root-shell with an unlocked encrypted root partition.

      This is not worthy of a CVE. My guess is some big egos with rather small skills are at work here.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    2. Re: So what? Tested this on Fedora 25 by Anonymous Coward · · Score: 0

      /boot should not be unencrypted either. Grub can decrypt the disk.

  15. Reboot and access recovery by Anonymous Coward · · Score: 0

    I use LUKS on my Debian laptop. I can get an initramfs shell in many different ways, one of them by simply rebooting the laptop and choosing the appropiate boot option.

    Another way that works on my server which has the boot partition in a USB inside the case is by simply unplugging one of the hard drives.

    I agree that is better to close this hole but it is not alarming bug. The heading is a little bit scary.

  16. It will if you have a flash drive, same as ctrl-al by raymorris · · Score: 3, Insightful

    > if you have physical access to the machine. But to be clear I don't think my Windows install will drop me to the desktop if I press enter on the password prompt for 70 seconds! LOL. Not to Linux bash

    It'll give you a desktop if you put in a bootable flash drive first.

    Btw the "issue" discussed here isn't a Linux bash shell either. It's an initrd nash. You're not logged into the OS, which is still securely encrypted.

    Sure you could damage the data by reformatting the drive, but given you need physical access you could just as easily damage the drive with a hammer.

  17. Re:Linux sUKS -not! by ls671 · · Score: 1

    hmm... qemu VMs make the console available through the network. I am sure there is other possibilities...

    --
    Everything I write is lies, read between the lines.
  18. APK's postulate (it's fact)... apk by Anonymous Coward · · Score: 0

    If you can't touch it, it can't fuck you via APK Hosts File Engine 9.0++ SR-4 32/64-bit https://www.google.com/search?...

    Ads rob speed, security (malvertising) & privacy (tracking).

    Hosts add speed (hardcodes/adblocks), security (bad sites/poisoned dns), reliability (dns down), & anonymity (dns requestlogs/trackers) natively.

    Works vs. caps & PUSH ads.

    Avg. page = big as Doom http://www.theregister.co.uk/2... & ads = 40% of it.

    Hosts != ClarityRay blockable (vs. souled-out to admen inferior wasteful redundant slow usermode addons)

    Less power/cpu/ram + IO use vs. DNS/routers/addons/antivirus (slows you) + less security issues/complexity.

    Compliments firewalls (blocking less used IP addys vs. hosts blocking more used domains) & DNS (lightens dns load).

    Gets data via 10 security sites.

    APK

    P.S. - Safe https://www.virustotal.com/en/... (Verified by Malwarebytes' S. Burn "seen the code & it's safe" http://forum.hosts-file.net/vi... )

  19. Re:It will if you have a flash drive, same as ctrl by fisted · · Score: 1

    Or you could mount the filesystem that contains the program to unlock the disk and replace it with one that leaks the typed passphrase somewhere.
    But yes, the same can be had using a bootable usb drive. Then again, there are network-accessible consoles...

  20. Re:Linux sUKS -not! by Cramer · · Score: 1

    If you're encrypting the rootfs, it's very likely to be a laptop or other system where access is normally from the local console. It's encrypted to secure it in the event it "grows legs".

    My desktop workstation is fairly safe, sitting in an office I can lock, in an office suite that's always locked, in a building with limited access, etc. etc. The "engineering" laptop, however, is often outside that pseudo-secure environment. On more than one occasion, we've had laptops stolen out of hotel rooms, parked rental cars, and once out of the office. (they hit every office in the building, btw. That laptop did find its way back to us, eventually.) Of course, we don't rely on hokey userland protections; we enable the laptop's own "TPM" (hardware) security measures and the hard drive's native full disk encryption.

  21. Geez Linux. by Anonymous Coward · · Score: 0

    Only seemed secure because no one was trying to get into it.

    1. Re:Geez Linux. by passionplay · · Score: 1

      It is secure - everything you can do anything in initrd using this exploit was already available as a feature w/o the exploit. Initrd has no passwords and no content. Until you enter the password for cryptsetup, you get access to nothign. And sure you have root access to INITRD but not the actual filesystem other than boot - but that was unfettered to start with.

  22. Re:It will if you have a flash drive, same as ctrl by Anonymous Coward · · Score: 0

    there are network-accessible consoles...

    • How many give you access to the initrd prior to decrypting the rootfs during boot (i.e. before your drive/s are decrypted and mounted)?
    • If this exploit works over a network boot (I can't reproduce it) - how does the default shell it (claims to) gain mount the encrypted files system?

    Hector Marco & Ismael Ripoll claim this exploit will work in cloud environments - but it seems to rely on an encrypted initramfs and an unencrypted /

    In other news GRUB gives me a command line, LUKS can be loosely configured with various encryption options.

    All that speculation aside - I'm still waiting for the exploit authors to respond to the request that they explain what version they base the exploit (claim) on.

    On Mon, Nov 14, 2016 at 08:45:51PM +0000, Hector Marco wrote:
      Hello All,

      Affected package Cryptsetup = 2:1

    Hi,

    Can you clarify which versions are affected?
    The latest upstream version is 1.7.3:
    https://gitlab.com/cryptsetup/cryptsetup/commits/master

    What is the 2:1 version?

    (Re: [FD] [oss-security] CVE-2016-4484: - Cryptsetup Initrd root Shell fulldisclosure@seclists.org 15/11/16 14:27)

  23. Use loop-aes... by twistedcubic · · Score: 1

    ...and breath easy at night. Design of encryption systems should be done by experts.

    1. Re:Use loop-aes... by passionplay · · Score: 1

      Yup - the same security experts that gave the backdoor to the spy agencies. Yup!

    2. Re:Use loop-aes... by gweihir · · Score: 1

      And fail. This is not a LUKS vulnerability. This is a vulnerability of the boot-script added by the distribution. Loop-AES will have exactly the same (mostly non-issue) with this script.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    3. Re:Use loop-aes... by Anonymous Coward · · Score: 0

      Please someone mod this up a billion times. cryptsetup won't automagically say "oh you don't know the password, oh okay, lemme unlock the containers for you anyway.... here."

      It's a vuln in initramfs' init script (literally that filename) that allows this to happen. And since there's no single initramfs, it could be dracut's, genkernel's, own-rolled, etc... My initramfs scripts, that I wrote personally for my own use case and is like less than a 100 lines of code, are not vulnerable to this.

    4. Re:Use loop-aes... by gweihir · · Score: 1

      Indeed. And if you roll your own initramfs, which is not difficult with some grasp of UNIX shell-scripting, you can have exactly the failure-behavior you want. 100 lines of code is already a long one. Of course, there are now a lot of Windows refugees and they often cannot do any shell-scripting at all and are dependent on the distro-scripts being secure. But such people have no business administrating a security-critical Linux system anyways.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  24. Re:Linux sUKS -not! by Sun · · Score: 3, Insightful
    What we know about the system:
    1. The system's hard disk is encrypted
    2. The attacker doesn't have the password (or else this isn't an attack)
    3. The attacker has physical access to the system during boot

    What's the difference between this "attack" and inserting a live CD?

  25. Re:Linux sUKS -not! by mathew7 · · Score: 1

    The fact that BIOSes/UEFIs could be password protected and not allow other devices to boot.
    This allows you to boot into a liveCD and do anything (like they said: spy on the network, brute force the key).

    I would say this is not a major issue:
      - for the servers, they are(should be) monitored and a few minutes of downtime will be noticed. But if somebody has physical access, security has other problems.
      - for laptops or other PCs removed from secure environment, the issue is almost not a problem, as an attacker could already remove the HDD/SSD and clone it. Accessing network is not a problem.
    The only vulnerable point would be if TPM-backed FDE is layered beneath LUKS OS encryption. But I doubt those who use LUKS trust TPM.

    So again, a small vulerability is blown-out of proportions because it's hard to find GNU/Linux bugs/exploits.

  26. Re:It will if you have a flash drive, same as ctrl by fisted · · Score: 1

    Have you even read the comment you're replying to? If not:

    you could mount the filesystem that contains the program to unlock the disk and replace it with one that leaks the typed passphrase somewhere.

    If you think you could get around that issue by simply having the unlocking-program on the encrypted disk, then I might have a bridge to sell to you.

  27. Basically... minor. by Anonymous Coward · · Score: 0

    Yeah, fix it. Annoying.

    That said, the primary threat model LUKS is protecting me from is someone stealing my laptop and getting at potentially sensitive data.

    Those already own everything, can wipe the disk and *can replace the boot loader and the initramfs, since those are unencrypted* (that's basically the stupidly called "evil chambermaid attack": install a boot kit that lets me think I'm entering my LUKS passphrase while it posts it to twitter or what).

    IOW: this bug doesn't make things worse than they are know to be[1]. Still it's a bug and merits fixing.

    [1] Unless you're into "Secured Boot" and "Trusted Foo". But then you gotta convince me that you kinda understand what all that is about.

  28. Re:Linux sUKS -not! by Anonymous Coward · · Score: 0

    CD's are easy to stop (e.g. remove the drive).

    A much bigger problem is hardware keyloggers (just insert between keyboard and USB slot), Firewire DMA access, etc.

    That's assuming you have an up to date backup, of course, which in most cases means being part of an enterprise environment where saving data on the local drive is a firing offense anyway. Otherwise, no encryption is going to stop the bad guy for erasing all your important stuff with a hammer or cattle prod.

  29. Re:It will if you have a flash drive, same as ctrl by Anonymous Coward · · Score: 0

    Or you could mount the filesystem that contains the program to unlock the disk and replace it with one that leaks the typed passphrase somewhere.

    Using a $5 hardware keylogger would be easier.

  30. It's not vulnerability in cryptsetup! by Cronq · · Score: 1

    How to mark article as _TOTAL LIE_ ? It's not vulnerability in cryptsetup! Only in some Linux distribution stupid shell scripts that execute cryptsetup.

    1. Re: It's not vulnerability in cryptsetup! by Anonymous Coward · · Score: 0

      That was my first thought, but it's nuttier than that. What they're talking about is not even a bug, it's a feature: if the initramfs script can't mount the requested root filesystem, by default, it launches a shell. That is a good and useful feature to have sometimes.

      If you don't want this feature, that's what the 'panic' option is for. In fact, TFA mentions the panic option, but incorrectly describes it as a "workaround". It's not a workaround, it is precisely what you are looking for if you are so foolish as to think you can keep out somebody who has physical access.

      (It goes without saying, of course, that if you're feeling the need to do this, you will already have password-protected GRUB, disabled alternative boot devices, password-protected the BIOS, and physically locked the case. In theory a distro could try to address the first issue, but there's no way they could address the others even if they wanted to.)

  31. Natzi? by Anonymous Coward · · Score: 0

    What's one of those?
    When calling someone out, better make sure your post is 100%.

    1. Re:Natzi? by Anonymous Coward · · Score: 0

      "What's one of those?"
      "Gramer Natzi"- It's a joke Son, it's a joke. A commentary on those who fling phrases around like "persay" without knowing the origins or even the proper spelling. A quip that is followed by another one, the bit about missing three thumbs.
      So I shall amend by parenthetical observation thus, and it is all thanks to you:
      (Cue up Bullshit about being on a cell phone, or grammar is not important if the point is gotten across, or that punctuation is overrated, as is capitalization, or that I am a Gramer Natzi, or that we should feel sorry for him and give him a break because he is missing three thumbs, or that their sense of outrage greatly exceeds their sense of common... Dammit, I wish I wasn't always so right about Bullshit on Slashdot...)

  32. Gramer Natzi? by Anonymous Coward · · Score: 0

    I'd say you were more of a Grammar Nazi wannabe.

    1. Re:Gramer Natzi? by Anonymous Coward · · Score: 0

      "I'd say you were more of a Grammar Nazi wannabe."

      You are quite right. Normally I just correct things as I go in my head, and proceed. A Walter Mitty Grammar Nazi wannabe. (BTW, I have no problem with "wannabe", unlike "persay". The last is pure brazen ignorance, while the former has a rich cultural context, especially on the Internet. It is documented in dictionaries, and has an official Scrabble Score of 12.)

      So I am Walter Mitty, Schütze, Wort Soldat, seconded to Slashdot. I dream about taking on manishs/msmash in fair combat, and after I win, he can treat me to some good local curry.
      And note this silly conversation has utterly avoided any discussion about the content of the OP, just the form. As far as I can tell, the content is rubbish as well:
      "didnt hear anything about cracked."
      This is open to any number of interpretations; there seems to be a few words missing. Clearly, the only thing that seems to be "cracked" is the original Poster, and the mush that passes for his brains are dripping out onto Slashdot.
      And if his English is this bad, can you imagine what his Linux Code is like?

      (For those who are only vaguely aware about who Walter Mitty is, he is a delusional character created by James Thurber for his New Yorker story "The Secret Life Of Walter Mitty". This was later published in book form in "My World And Welcome To It", and yes, I have a First Edition. That recent Stiller wretchedness only took the Title of the story, and threw out everything else, including the very important ending. One of the many reasons why Stiller...: ""To hell with the handkerchief," said Ben Stiller scornfully. He took one last drag on his cigarette and snapped it away. Then, with that faint, fleeting smile playing about his lips, he faced the firing squad; erect and motionless, proud and disdainful, Ben Stiller the Undefeated, inscrutable to the last.")

  33. Re:Linux sUKS -not! by Anonymous Coward · · Score: 0

    Yeah. Exploiter is now 'root' on a machine with fs only resides on RAM.
    What's his next destination? Probably no where...

  34. Re:It will if you have a flash drive, same as ctrl by fisted · · Score: 1

    No, that's actually more difficult, since you'll have to pull the server out of the rack, open it, potentially power it down. More visible, too. If you can't program yourself out of a wet paper bag, maybe.
    That said, I'd like to see you pulling that off over the network, too.

  35. Re:It will if you have a flash drive, same as ctrl by erapert · · Score: 1

    But this attack doesn't work over the network in the first place....

  36. Re:It will if you have a flash drive, same as ctrl by fisted · · Score: 1

    Does too, if the console is accessible over the network....

  37. cryptsetup v2.1 ?! really? by Anonymous Coward · · Score: 0

    As of today, latest version of cryptsetup is 1.7.3
    https://gitlab.com/cryptsetup/cryptsetup

    And yet the article says the issue affects versions 2.1 and earlier .. ?! does the author of the article has the ability to read the future?

  38. Re:Linux sUKS -not! by Anonymous Coward · · Score: 0

    Have you heard of USB DVD drives? They are all the rage with the kids.

  39. Re:It will if you have a flash drive, same as ctrl by Anonymous Coward · · Score: 0

    That still counts as local access.

  40. initramfs, not cryptsetup by pepa65 · · Score: 1

    It has been said, but the vulnerability is not in cryptsetup, but in initramfs.

  41. Total encryption by pepa65 · · Score: 2

    I tried this on one of my systems, and indeed, it dropped me to a root busybox shell in initrd. Since my grub is not password protected, this kind of access (and worse) was already trivial on that system. But, LUKS is still encrypted.

    Nowadays grub supports what I call total encryption. (It has support for a LUKS encrypted partition, no need for a separate unencrypted /boot directory.) Now a similar vulnerability was present on one of my total-encrypted systems, but in this case it dropped me to a grub rescue environment.

    I would be interested to hear what the possibilities are for evil maid attacts in the grub rescue shell scenario, but I don't believe it's possible, because the kernel and the initrd are still encrypted.

  42. Re:It will if you have a flash drive, same as ctrl by fisted · · Score: 1

    It counts as console access, but that does not mean physical access. If you don't understand this, think about how you would install a $5 hardware keylogger over a network-accessible system console. If you do understand this, then WTF is your point?