3 ms·
The last time I filed a Linux kernel bug report, it was to report that you could plug in a Firewire cable and directly read or write memory, which is a security
by Animats 2y ago
The last time I filed a Linux kernel bug report, it was to report that you could plug in a Firewire cable and directly read or write memory, which is a security bug.
But only the first 4GB of memory, because the bug that allowed this was from the 32-bit days. There's are registers which set the upper and lower limits of the accessible area, and they were set for a range of 0..0xffffffff.
Loud complaints from someone who had a debugger which used that exploit. Wasn't fixed.
- ykonstant 2y agoThat sounds insane; can you share details or link to a report?
- tjoff 2y agoWindows and OS X had the same/similar problems. On consuner hardware at that time you probably couldn't make firewire secure.
- talldayo 2y agoYep, same problem exists over Thunderbolt connections afaik. By emulating PCIe devices you can basically coerce the host into giving you whatever you want from memory, as long as it's configured to conveniently do-so by default: https://thunderspy.io/ https://thunderspy.io/
- mushufasa 2y agomy understanding is there are so many vulnerabilities when someone has physical device access that the security community essentially suggests you assume any device is compromised if you lost physical access
- KerrAvon 2y agoThat used to be the advice. But it doesn't fly anymore when your OS is running on an easily-stolen device like a phone.
- Seattle3503 2y agoOr a use wants to plug into someone else's charging port. (Don't tell them not to do it, they are going to anyways)
- arp242 2y agoPhones don't have Firewire, and no one is charging their device through Firewire.
- wslh 2y agoMy understanding is that these bugs should not exist in 2024. Less if they are published. Do you lose physical access if someone connects a thunderbolt/usb/whatever to your computer? No, this is not losing physical access.
- saagarjha 2y agoThis has not been true for years for consumer electronics.
- inopinatus 2y agoThis is begging the question, because the cavalier attitude described in the anecdote above illustrates how that advice arises.
- cwillu 2y agoDid this bug have anything to do with firewire providing direct memory access to peripherals, bypassing the cpu?
- KerrAvon 2y agoYes. There was at one point a software hack for Macs where you could plug a FireWire cable between two of them and write directly from one of them to the video output of the other.
- maybeben 2y agoI use this facility on FreeBSD (dcons) to do debugging. Works great. There's a knob to explicitly turn on DMA, though. It looks like Linux has something similar. Is that not sufficient?
- Deebster 2y agoThat user might be the one from that old XKCD: https://xkcd.com/1172/ https://xkcd.com/1172/