CVE-2018-0492: Local privilege escalation in Linux program that plays a beep
holeybeep.ninja
holeybeep.ninja
#!/bin/sh
# TODO: Backdoor this machine?
modprobe pcspkr
beep -l 1000 -r 3 -f 44000"Debian Security Advisory DSA-4163-1 beep -- security update"
I was looking at the patch that Debian shipped and it seems to me that there was some kind of a race condition when opening the console device multiple times, but I can't figure out the exact source of the problem.
As legitimate websites of software have been breached to serve infected packages (like CCleaner[1]) or otherwise fraudulent content (even kernel.org[2]), I always shudder a bit, when I see being asked to pipe something directly from curl to a (root) shell.
1. https://www.extremetech.com/internet/256238-ccleaner-infecti...
"I want to brand my next vulnerability. Can you make a logo for me?
Great idea! Please contact our sales department."
It's definitely not associated with the person who discovered the beep vuln:
"Holey Beep is a community-maintained project for the bug otherwise known as CVE-2018-0492. It is not associated with the Linux Foundation, nor with the original discoverer of this vulnerability. If you would like to contribute go to GitHub."
Strange.