this post was submitted on 06 Dec 2023
330 points (96.1% liked)

Linux

48378 readers
1008 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] _edge@discuss.tchncs.de 153 points 11 months ago (4 children)

There are several ways to exploit LogoFAIL. Remote attacks work by first exploiting an unpatched vulnerability in a browser, media player, or other app and using the administrative control gained to replace the legitimate logo image processed early in the boot process with an identical-looking one that exploits a parser flaw. The other way is to gain brief access to a vulnerable device while it’s unlocked and replace the legitimate image file with a malicious one.

In short, the adversary requires elevated access to replace a file on the EFI partition. In this case, you should consider the machine compromised with or without this flaw.

You weren't hoping that Secure Boot saves your ass, were you?

[–] deadcade@lemmy.deadca.de 45 points 11 months ago (1 children)

Since the EFI partition is unencrypted, physical access would do the trick here too, even with every firmware/software security measure.

[–] _edge@discuss.tchncs.de 23 points 11 months ago (1 children)

True, but this was the case without this finding, wasn't it? With write access to the EFI you could replace the boot loader and do whatever you please.

load more comments (1 replies)
[–] blindsight@beehaw.org 18 points 11 months ago* (last edited 11 months ago) (1 children)

The idea is also that a compromised system will remains compromised after all storage drives are removed.

load more comments (1 replies)
[–] InnerScientist@lemmy.world 15 points 11 months ago (6 children)

replace a file on the EFI partition.

Doesn't this mean that secure boot would save your ass? If you verify that the boot files are signed (secure boot) then you can't boot these modified files or am I missing something?

[–] _edge@discuss.tchncs.de 14 points 11 months ago

Well, not an expert. We learned now that logos are not signed. I'm not sure the boot menu config file is not either. So on a typical linux setup you can inject a command there.

load more comments (5 replies)
[–] peopleproblems@lemmy.world 7 points 11 months ago

See, I knew there were other reasons I wouldn't touch secure boot lol

[–] JakenVeina@lemm.ee 63 points 11 months ago* (last edited 11 months ago) (4 children)

Did anyone really think that making UEFI systems the equivalent of a mini OS was a good idea? Or having them be accessible to the proper OS? Was there really no pushback, when UEFI was being standardized, to say "images that an OS can write to are not critical to initializing hardware functionality, don't include that"? Was that question not asked for every single piece of functionality in the standard?

[–] gerdesj@lemmy.ml 49 points 11 months ago (1 children)

Did anyone really think that making UEFI systems the equivalent of a mini OS was a good idea

UEFI and Secure Boot were pushed forcibly by MS. That's why FAT32 is the ESP filesystem.

If I had to guess, a brief was drafted at MS to improve on BIOS, which is pretty shit, it has to be said. It was probably engineering led and not an embrace, extinguish thing. A budget and dev team and a crack team of lawyers would have been whistled up and given a couple of years to deliver. The other usual suspects (Intel and co) would be strong armed in to take whatever was produced and off we trot. No doubt the best and brightest would have been employed but they only had a couple of years and they were only a few people.

UEFI and its flaws are testament to the sheer arrogance of a huge company that thinks it can put a man on the moon with a Clapham omnibus style budget and approach. Management identify a snag and say "fiat" (let it be). Well it was and is and it has a few problems.

The fundamental problem with UEFI is it was largely designed by one team. The wikipedia page: https://en.wikipedia.org/wiki/UEFI is hilarious in describing it as open. Yes it is open ... per se ... provided you decide that FAT32 (patent encumbered) is a suitable file system for the foundations of an open standard.

I love open, me.

[–] evranch@lemmy.ca 25 points 11 months ago (1 children)

UEFI is flawed for sure, but there's no way that any remaining patents on FAT32 haven't expired by now.

[–] OmnipotentEntity@beehaw.org 13 points 11 months ago* (last edited 11 months ago) (1 children)

You may be surprised to learn that they didn't all run out until 2013. UEFI had been around for 7 years by this time, and Microsoft was doing patent enforcement actions against Tom Tom during this time period.

Sure, they're expired now, but not at the time. It was supposed to be an open standard at the time.

[–] HiddenLayer5@lemmy.ml 9 points 11 months ago* (last edited 11 months ago)

Why software patents are a leech on software development: exhibit number 4,294,967,295.

[–] interceder270@lemmy.world 14 points 11 months ago (1 children)

Less is more. I feel we've forgotten that so worthless designers can justify their useless existences.

load more comments (1 replies)
[–] HiddenLayer5@lemmy.ml 10 points 11 months ago* (last edited 11 months ago)

It breaks the cardinal rule of executing privileged code: Only code that absolutely needs to be privilaged should be privileged.

If they really wanted to have their logo in the boot screen, why can't they just provide the image to the OS and request through some API that they display it? The UEFI and OS do a ton of back and fourth communication at boot so why can't this be apart of that? (It's not because then the OS and by extension the user can much more easily refuse to display what is essentially an ad for the hardware vendor right? They'd never put "features" in privileged code just to stop the user from doing anything about it... right?)

load more comments (1 replies)
[–] HiddenLayer5@lemmy.ml 40 points 11 months ago* (last edited 11 months ago) (1 children)

I've never been a fan of the UEFI logo inserting itself into the boot screen. It's basically just an advertisement for the hardware vendor because they're jealous of the OS having the spotlight. And it's an ad that, like so many other ads before it, screws over the security and privacy of the advertisee because fuck you that's why.

[–] ddkman@lemm.ee 15 points 11 months ago (2 children)

I don't know. It looks more aesthetically consistent. Your computer has to display something. Average users would be scared if it dumped logs on the display. so the vendor logo makes sense. It COULD just say loading, but this is a bit pedantic I think.

[–] nik282000@lemmy.ca 10 points 11 months ago (2 children)

When it comes to security, particularly at boot time, fuck the user. Users don't interact with devices at boot time so it doesn't matter if it shows a blank screen, a mile of logs or a screaming clown penis. If it was up to users no device or service would have a password or security of any kind, and every byte of information about your life would be owned by 'The Cloud." Let the marketing wanks insert their logo into the Windows boot process,

[–] jabib@beehaw.org 6 points 11 months ago (1 children)

Tell me more about this screaming clown penis option...

load more comments (1 replies)
load more comments (1 replies)
[–] azertyfun@sh.itjust.works 6 points 11 months ago

??

With BIOS, it goes "Motherboard Logo -> OS Logo"

With UEFI, it goes "Motherboard Logo -> Motherboard Logo"

Sure, it's more consistent, but the alternative is not user unfriendly, the only people it's unfriendly to is the marketing wankers at Dell, Lenovo, Acer, etc.

[–] ShittyBeatlesFCPres@lemmy.world 36 points 11 months ago

I can’t believe stupid, pointless marketing crap didn’t have the best of the best working to ensure security.

[–] charonn0@startrek.website 31 points 11 months ago (2 children)

As its name suggests, LogoFAIL involves logos, specifically those of the hardware seller that are displayed on the device screen early in the boot process, while the UEFI is still running. Image parsers in UEFIs from all three major IBVs are riddled with roughly a dozen critical vulnerabilities that have gone unnoticed until now. By replacing the legitimate logo images with identical-looking ones that have been specially crafted to exploit these bugs, LogoFAIL makes it possible to execute malicious code at the most sensitive stage of the boot process, which is known as DXE, short for Driver Execution Environment.

So, does disabling the boot logo prevent the attack, or would it only make the attack obvious?

[–] lazylion_ca@lemmy.ca 15 points 11 months ago (1 children)

If you have access to replace the logo file, you probably have access to enable it as well.

load more comments (1 replies)
[–] redcalcium@lemmy.institute 30 points 11 months ago (1 children)

As its name suggests, LogoFAIL involves logos, specifically those of the hardware seller that are displayed on the device screen early in the boot process, while the UEFI is still running.

Me using an old PC with BIOS instead of UEFI: 😏

[–] ryannathans@aussie.zone 44 points 11 months ago (1 children)

Also known as using a pc with unpatched cpu vulnerabilities

[–] kugmo@sh.itjust.works 13 points 11 months ago (1 children)

gigachads use mitigations=off anyways

[–] ryannathans@aussie.zone 7 points 11 months ago

Makes it go fast

[–] planish@sh.itjust.works 20 points 11 months ago

Hello I am writing the firmware for MotherBoard 2021, a definitely completely different product than MotherBoard 2020, I am going to ship in in 2 weeks for Christmas, and I am going to write an image decoder on top of bare metal, and it is "not" going to let you hack the pants off the computer.

Said no one ever.

[–] HiddenLayer5@lemmy.ml 19 points 11 months ago* (last edited 11 months ago) (1 children)

The article didn't mention this, but would disabling the UEFI logo in the boot screen mitigate the vulnerability until proper patches get rolled out? (Or honestly at this point, I'd keep it disabled even after it's patched in case they didn't patch it right. UEFI's are all proprietary so it's not like you can check.) Since the vulnerability is in the image parser, would bypassing that be enough?

Do they even let you disable it?

load more comments (1 replies)
[–] kugmo@sh.itjust.works 16 points 11 months ago (1 children)

So this is only for the background of the motherboard boot up logo like from Asus, Acer, Gigabyte ect? Not your grub or rEFInd background correct?

[–] elscallr@lemmy.world 10 points 11 months ago
[–] const_void@lemmy.ml 15 points 11 months ago (2 children)

We need more machines that support coreboot. These proprietary firmware vendors have been getting rich off making our machines worse for too long.

load more comments (2 replies)
[–] LainOfTheWired@lemy.lol 12 points 11 months ago

I wonder if this effects coreboot builds like heads as they allow you to use external devices like a nitrokey for verification when you boot

[–] milicent_bystandr@lemm.ee 9 points 11 months ago (3 children)

So, does this affect dual boot systems, if e.g. Windows is compromised, now that malware in the efi partition can compromise the Linux system next time it boots? Yikes!

I suppose in principle malware from one OS can attack the other anyway, even if the other is fully encrypted and/or the first OS doesn't have drivers for the second's filesystems: because malware can install said drivers and attack at least the bootloader - though that night have been protected by secure boot if it weren't for this new exploit?

[–] elscallr@lemmy.world 11 points 11 months ago (1 children)

It would effect any UEFI based system regardless of OS from one of the affected manufacturers (which is basically all of them).

load more comments (1 replies)
load more comments (2 replies)
[–] olafurp@lemmy.world 8 points 11 months ago (2 children)

On Linux/Mac you have no use sudo. For sudo you need a password.

This thing will make it very easy to make a rubber ducky though.

[–] HiddenLayer5@lemmy.ml 10 points 11 months ago* (last edited 11 months ago)

Would be pretty easy to pull off if you had hardware access. Just boot from a flash drive and drop the exploit from there.

Even if their OS is full disk encrypted, this can easily inject a backdoor or just keylog the bootup password prompt.

load more comments (1 replies)
[–] Hagarashi8@sh.itjust.works 8 points 11 months ago (1 children)

I may be wrong, but does it mean that if someone is able to modify my uefi - they would be able to inject virus in booting image?

load more comments (1 replies)
[–] 0x0@programming.dev 8 points 11 months ago (1 children)

I wonder if old BIOS are vulnerable...

[–] admin@lemmy.my-box.dev 20 points 11 months ago

Nope, they aren't as universal as EFI. I think the closest comparable attack vector for "old tech" is a bootsector virus.

[–] autotldr@lemmings.world 7 points 11 months ago (2 children)

This is the best summary I could come up with:


Hundreds of Windows and Linux computer models from virtually all hardware makers are vulnerable to a new attack that executes malicious firmware early in the boot-up sequence, a feat that allows infections that are nearly impossible to detect or remove using current defense mechanisms.

The attack—dubbed LogoFAIL by the researchers who devised it—is notable for the relative ease in carrying it out, the breadth of both consumer- and enterprise-grade models that are susceptible, and the high level of control it gains over them.

LogoFAIL is a constellation of two dozen newly discovered vulnerabilities that have lurked for years, if not decades, in Unified Extensible Firmware Interfaces responsible for booting modern devices that run Windows or Linux.

The participating companies comprise nearly the entirety of the x64 and ARM CPU ecosystem, starting with UEFI suppliers AMI, Insyde, and Phoenix (sometimes still called IBVs or independent BIOS vendors); device manufacturers such as Lenovo, Dell, and HP; and the makers of the CPUs that go inside the devices, usually Intel, AMD or designers of ARM CPUs.

As its name suggests, LogoFAIL involves logos, specifically those of the hardware seller that are displayed on the device screen early in the boot process, while the UEFI is still running.

LogoFAIL is a newly discovered set of high-impact security vulnerabilities affecting different image parsing libraries used in the system firmware by various vendors during the device boot process.


The original article contains 663 words, the summary contains 232 words. Saved 65%. I'm a bot and I'm open source!

[–] _edge@discuss.tchncs.de 11 points 11 months ago (1 children)

Summary does not contain the actual vulnerability or exploit.

[–] amju_wolf@pawb.social 22 points 11 months ago (2 children)

Because there really isn't one, lol.

By the time an attacker has a write access to your boot permission everything else is kinda fucked already.

[–] Bitrot@lemmy.sdf.org 19 points 11 months ago* (last edited 11 months ago) (2 children)

This is worse than many, since it persists across reinstalls and even potentially drive swaps, and fools systems such as secure boot.

load more comments (2 replies)
load more comments (1 replies)
load more comments (1 replies)
[–] buwho@lemmy.ml 7 points 11 months ago (1 children)

is it common practice to have a web browser or media player running with elevated permissions? seems like a strange thing to do...

load more comments (1 replies)
[–] kelvie@lemmy.ca 7 points 11 months ago (1 children)

So I don't get it, I have my entire boot image in a signed EFI binary, the logo is in there as well. I don't think I'm susceptible to this, right? I don't think systemd-boot or the kernel reads an unsigned logo file anywhere. (Using secure boot)

[–] clmbmb@lemmy.dbzer0.com 13 points 11 months ago (3 children)

This is way before reaching your bootloader. It's about the manufacturer logo that's displayed by UEFI while doing the whole hardware initialization.

load more comments (3 replies)
[–] westyvw@lemm.ee 6 points 11 months ago

Is this potentially useful to me? Since it is persistent, can I use it on this motherboard I have over here that insists on using UEFI even if I do not want to?

load more comments
view more: next ›