CVE-2024-48990: Linux Local Privilege Escalation (LPE) via needrestart
- Patched: Nov 19, 2024
- More Information: Qualys Advisory
-
Run the script
./start.sh
.- This will compile a malicious
importlib
library. - It will then start a Python script (
e.py
) that sets up a listener and waits forneedrestart
to be executed by theroot
user.
- This will compile a malicious
-
When
needrestart
is triggered (typically by an update likeapt upgrade
), it will load the fake library and execute the payload. -
Upon successful execution, a shell will be opened.