Live data from Hacker News

Copy Fail

copy.fail

261–270 of 545 posts

Re: Copy Fail

#261

Good thing nobody is silly enough to let fully autonomous AI agents run as regular users on these affected operating systems. That could be disastrous given a zero day prompt injection technique.

Good thing we haven't normalized installing things with curl | sh

Yeah, that's great!

Imagine we would download random code from the internet and just execute it, like with NPM, PIP, Maven, Cargo etc.

Re: Copy Fail

#263
post #71

Earlier quoted context omitted.

Now the socket is blocked. Also probably should have realized the socket is defined earlier than its called Traceback (most recent call last): File "/data/data/com.termux/files/home/exploit.py", line 9, in while i 64));v(h,5,None,4);u,_=a.accept();o=t+4;i=d('00');u.sendmsg([b"A" 4+c],[(h,3,i 4),(h,2,b'\x10'+i 19),(h,4,b'\x08'+i*3),],32768);r,w=g.pipe();n=g.splice;n(f,w,o,offset_src=0);n(r,u.fileno(),o) ^^^^^^^^^^^^^^…

PoC is also x86_64 only and not arm.

fixed: https://github.com/tgies/copy-fail-c

Re: Copy Fail

#264
post #16
post #13

So this could be usable in lot of places with Python and Linux running? Not that I have too many Linux devices around. Still, might be handy sometimes on personal devices.

This can likely be shipped as binary code without dependencies like python, as the bug is in the kernel.

[dead]

Re: Copy Fail

#265

LPE = local privilege escalation Too many darn acronyms. This one wasn't too hard to figure out from context but I wish people would define acronyms before using them!

I don't know why, but newer writers have never been taught to expand their acronyms on first use. I blame the US education system.

Re: Copy Fail

#266
It looks like this is legit, but the script is very phishy and I wouldn't run it in unvirtualized or disposable systems.

https://github.com/theori-io/copy-fail-CVE-2026-31431/blob/m...

>zlib.decompress(d("78daab77f57163626464800126063b0610af82c101cc7760c0040e0c160c301d209a154d16999e07e5c1680601086578c0f0ff864c7e568f5e5b7e10f75b9675c44c7e56c3ff593611fcacfa499979fac5190c0c0c0032c310d3"))

This is not source code, this is binary, it's entirely possible that this contains a script that downloads another malicious script (or that simply contains the malicious commands)

That said, I understand why a terser script might have been prioritized.

EDIT: There's a couple of C ports in the comments that contain more details and no compressed payloads.

Re: Copy Fail

#267
As soon as I read this

>Shared dev boxes, shell-as-a-service, jump hosts, build servers — anywhere multiple users share a kernel. any user becomes root

jumped out of bed and went straight into webminal.org servers as local user and ran the python code. It says permission denied on sock() call.

Then I tested with local laptop with it:

```

$ uname -a

Linux debian 6.12.43+deb12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.43-1~bpo12+1 (2025-09-06) x86_64 GNU/Linux

$ python3 copy_fail_exp.py

# cd /root && ls

bluetooth_fix_log.txt dead.letter overcommit_memorx~ overcommit_memory~ overcommit_memorz~ resize.txt snap

```

It does provide the root access!

Re: Copy Fail

#268

Earlier quoted context omitted.

The response from Greg was that Mythos proved that upstream was right all along and that they'll continue to do things the same way. That's my recollection, at least - pretty sure it was something like that, could have been even worse though and I'm misremembering. The stance was never sustainable, hence linux LPEs being constantly available. The solution is to treat your kernel as impossible to secure. Notably, gvis…

How about SELinux, like on Android?

I assume that wouldn't help here but I could easily be wrong. (Assuming if you're asking if SELinux would block this exploit).

Re: Copy Fail

#269

As someone who works on the Linux kernel's cryptography code, the regularly occurring AF_ALG exploits are really frustrating. AF_ALG, which was added to the kernel many years ago without sufficient review, should not exist. It's very complex, and it exposes a massive attack surface to unprivileged userspace programs. And it's almost completely unnecessary, as userspace already has its own cryptography code to use. Th…

any idea what software this will break once I turn this kernel configuration off?

[deleted]

Re: Copy Fail

#270

Earlier quoted context omitted.

Good thing we haven't normalized installing things with curl | sh

Yeah, that's great! Imagine we would download random code from the internet and just execute it, like with NPM, PIP, Maven, Cargo etc.

cargo/uv/go have lock files though
Post reply on HN