News for hackers. Stuff that matters.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by Unroll0201 on Tuesday March 26, 2024 @10:35AM (#39828425)
Today I published a proof-of-concept exploit for CVE-2024-1086, working on Debian and Ubuntu among others.

The affected exploit versions are from Linux kernel v5.14 up to v6.6. The support for v6.4 to v6.6 is depending on the `CONFIG_INIT_ON_ALLOC_DEFAULT_ON` kernel config variable, but please check README.md for this info.

The bug was patched in February 2024, and has been labelled CVE-2024-1086.

Make sure to update your Linux devices!

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by cedws on Tuesday March 26, 2024 @12:41PM (#39829924)
Can I ask why you decided to disclose this exploit rather than sell it to a company like Zerodium? Is it a matter of ethics, or is the money not worth it for you?
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by Unroll0201 on Tuesday March 26, 2024 @02:03PM (#39830879)
For me it is about the ethics among other things. I do not know to which goverments Zerodium is selling, much like any other zeroday broker. Additionally, I wouldn't be surprised if selling to Zerodium is illegal to begin with.

By taking the KernelCTF approach I get my bounty, I don't get into legal trouble, and I get to contribute to the Linux kernel VR community which means a lot to me

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by ok_dad on Tuesday March 26, 2024 @07:25PM (#39834008)
Thank you for having morals and giving this away to the community. Governments already have enough power that they don’t need more. I respect this very much, it’s hard to find people on hacker news who aren’t dyed in the wool capitalists.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by Shocka1 on Friday March 29, 2024 @09:22AM (#39863796)
There is a diverse mix here and always has been - it's one of the best things about this place.

Rolling up a statement to apply to a whole group of people is defined as stereotyping and not the highest version of critical thought. To state all Capitalists on HN would sell a CVE to the highest bidder is just as ridiculous as saying a Communist/Libertarian/Socialist would.

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by buggeryorkshire on Wednesday March 27, 2024 @07:10AM (#39837609)
Thank you, appreciated.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by junaru on Tuesday March 26, 2024 @01:02PM (#39830185)
> Zerodium customers are government institutions (mainly from Europe and North America) in need of advanced zero-day exploits and cybersecurity capabilities.

How does this even openly exist in post Stuxnet world? If this is not clear evidence of government working with criminals i don't know what is.

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by londons_explore on Tuesday March 26, 2024 @03:56PM (#39832154)
Governments only say they don't work with criminals.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by redundantly on Tuesday March 26, 2024 @05:36PM (#39833147)
Government officials are often criminals themselves.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by okasaki on Wednesday March 27, 2024 @01:25AM (#39835926)
Or the company is lying. It's not like anyone can check.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by streb-lo on Tuesday March 26, 2024 @01:05PM (#39830221)
>clear evidence

evidence is not what someone writes on their landing page

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by caskstrength on Tuesday March 26, 2024 @03:15PM (#39831705)
You are being downvoted, but as an outside observer I have also always been interested in ethics of security research.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by dev_snd on Tuesday March 26, 2024 @11:21AM (#39829046)
Great work and great write-up! I especially love the MAINFRAME BREACH PROTOCOL that comes with it.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by greggsy on Tuesday March 26, 2024 @11:21AM (#39829042)
What are some potential attack vectors and impacts for this one?
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by Unroll0201 on Tuesday March 26, 2024 @11:34AM (#39829188)
The attack vectors are pretty much the same for other Linux kernel LPE exploits. The impact is also much alike: privilege escalation from unprivileged user to root user. Should be noted that the exploit can read/write any physical memory on the device, but uses it to become root user.

An important note is that the exploit requires nf_tables to be present, and unprivileged user namespaces. This can be checked with commands specified in the README.md file in the repo.

Notice however that the exploit contains a namespace escape, allowing it to break out of namespaces on vulnerable kernels. As said in the other comment, this possibly includes LXC containers and privileged Docker containers, but this is not tested and is purely an educated guess).

The namespace escape is included because it is a requirement for the KernelCTF program.

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by MrStonedOne on Tuesday March 26, 2024 @11:39AM (#39829238)
Attack vector requires local execution access and allows for escaping limited privileges like non-root user accounts and breaking out of (some?) namespace jails used by containers and sandboxing systems.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by junon on Tuesday March 26, 2024 @11:12AM (#39828930)
Haha. Nice sources. And nice work, curious what the larger response to this will be.

https://github.com/Notselwyn/CVE-2024-1086/blob/main/src/mai...

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by yjftsjthsd-h on Tuesday March 26, 2024 @11:55AM (#39829353)
> The affected exploit versions are from Linux kernel v5.14 up to v6.4.

Linked page says

> The exploit affects versions from (including) v5.14 to (including) v6.6, excluding patched branches v5.15.149>, v6.1.76>, v6.6.15>.

?

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by Unroll0201 on Tuesday March 26, 2024 @12:01PM (#39829416)
The exploit support from v6.4 - v6.6 is depending on a Linux kernel kconfig value. If `CONFIG_INIT_ON_ALLOC_DEFAULT_ON` is set to `y`, the exploit is not working. If it is set to `n`, it does work. I have updated my comment.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by derelicta on Tuesday March 26, 2024 @11:11AM (#39828917)
Congrats! Impressive work!
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by pelagicAustral on Tuesday March 26, 2024 @11:11AM (#39828916)
Awwww Fuck me! that's my lazy afternoon gone now
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by eikenberry on Tuesday March 26, 2024 @12:23PM (#39829660)
Fixed kernel was released to Debian stable well over a month ago (my logs have it installed on 2/12). So unless you ignore kernel security updates you should already be covered.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by blincoln on Tuesday March 26, 2024 @11:46PM (#39835525)
Unfortunately, this was almost the same time that the Debian devs also pushed the ill-conceived Nvidia-driver-breaking kernel patch, so I wouldn't be surprised if a lot of people had disabled kernel updates.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by richardwhiuk on Tuesday March 26, 2024 @11:24AM (#39829089)
This is local privilege escalation only right?
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by Unroll0201 on Tuesday March 26, 2024 @11:31AM (#39829154)
Correct, but it is definitively worth updating for on high-profile systems.

I have not tested it, but because I have included the namespace escape in the exploit for KernelCTF, it may be able to break out of LXC containers and privileged Docker containers running on vulnerable Linux kernels.

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by dathinab on Tuesday March 26, 2024 @12:25PM (#39829691)
if it works for LXC containers shouldn't it also work for unprivileged (but non VM) docker containers?
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by Unroll0201 on Tuesday March 26, 2024 @02:00PM (#39830843)
This is an educated guess, but I believe unprivileged Docker containers cannot create (user) namespaces. Hence, the vulnerability cannot be triggered, since the exploit requires interaction with nf_tables, which requires (namespace) root.

LXC containers and privileged Docker containers allow these namespaces to be made inside of them, whilst unprivileged Docker containers do not.

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by rfoo on Tuesday March 26, 2024 @02:53PM (#39831442)
Good job writing this up!

Quick question: for "post"-exploitation, once you had a KSMA-like primitive why would you choose to still do the modprobe_path dance, and introduce a pid bruteforce for fileless :(, instead of e.g. patching kernel .text with a short shellcode to become root & break out of namespaces?

Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by Unroll0201 on Monday April 01, 2024 @02:03PM (#39897088)
I'm a bit late, but it's because I wanted my exploit to be universal. When patching kernel .text I'd need know: - know the offset to the patched instructions (memory scanning will not work) - know the architecture-compatible instructions to replace it with
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by nineteen20 on Friday March 29, 2024 @09:05AM (#39863612)
Congratulations! How did you spot the bug? As official Syzkaller has missed these lines of nf_tables.
Re:Debian/Ubuntu privilege escalation PoC exploit for CVE-20... by Unroll0201 on Monday April 01, 2024 @02:04PM (#39897115)
Manual auditing ;-) I have specified it in https://pwning.tech/nftables#31-finding-the-bug