frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Cord didn't win. What now?

https://jg.gg/2025/01/10/cord-didnt-win-what-now/
1•eamag•12s ago•0 comments

Ask HN: Test-Driven Physics?

1•behnamoh•1m ago•0 comments

FEMA Is Not Prepared

https://www.theatlantic.com/newsletters/archive/2025/06/fema-preparation-hurricane-season-richardson/683025/
1•lentoutcry•2m ago•0 comments

My phone number is poisoned

https://mijndertstuij.nl/posts/my-phone-number-is-poisoned/
1•speckx•3m ago•0 comments

Show HN: Repo: Little droplets of Zig code to familiarize with by example

https://github.com/fulgidus/ziglets
1•Fulgidus•4m ago•0 comments

Satellite pictures show damage to Russian warplanes due to 'Spiderweb'

https://www.theguardian.com/world/2025/jun/04/ukraine-war-briefing-satellite-pictures-show-russian-warplanes-prey-to-spiderweb
1•prmph•5m ago•0 comments

Show HN: JSON-RPC Debugger. Pause, inspect, and modify calls in real-time

https://github.com/shanejonas/jsonrpc-debugger
1•superfreek•6m ago•0 comments

Show HN: Invdual.com

https://www.invdual.com/
1•wscld•7m ago•0 comments

Skunkworks in Combat Boots, Or: How I Became a Cowboy Coder for the IDF

https://noamtenne.substack.com/p/skunkworks-in-combat-boots
1•noamy•7m ago•0 comments

Ask HN: Anonymized Distance Between Geolocations

1•supernihil•7m ago•0 comments

Wearable device that mimics CT scans continuously monitors heart and lung

https://medicalxpress.com/news/2025-05-wearable-device-mimics-ct-scans.html
1•PaulHoule•9m ago•0 comments

Show HN: Yet Another LLM

https://www.yetanotherllm.com/
1•ricardbejarano•10m ago•0 comments

Curate Your Reddit Profile Content with New Controls

https://old.reddit.com/r/reddit/comments/1l2hl4l/curate_your_reddit_profile_content_with_new/
2•goda90•12m ago•2 comments

Big Problems from Big in Lists with Ruby on Rails and PostgreSQL

https://andyatkinson.com/big-problems-big-in-clauses-postgresql-ruby-on-rails
1•andatki•15m ago•0 comments

America tried to ban fake photos in 1912

https://www.freethink.com/the-digital-frontier/fake-photo-ban-1912
1•mdp2021•19m ago•0 comments

The West fears AI's threat to jobs. In Japan, it might save them

https://asia.nikkei.com/Opinion/The-West-fears-AI-s-threat-to-jobs.-In-Japan-it-might-save-them
1•e2e4•20m ago•1 comments

Training Dogs to Vibe Code

https://dogomation.com/
1•jimhi•20m ago•0 comments

Displaying Overlays from Scripts in Linux

https://blog.georgovassilis.com/2025/06/04/screen-overlays-in-linux/
1•ggeorgovassilis•21m ago•0 comments

Should Anonymous Accounts Have the Right to Go Viral?

2•Hnizdovskyi•22m ago•0 comments

Looking for a European alternative to GitHub? Look no further than Git itself

http://mikhailian.mova.org/node/305
1•sam_lowry_•22m ago•0 comments

Stop Anthropomorphizing Intermediate Tokens as Reasoning/Thinking Traces

https://arxiv.org/abs/2504.09762
1•felineflock•23m ago•0 comments

HPE Superdome

https://en.wikipedia.org/wiki/HPE_Superdome
1•fidotron•23m ago•0 comments

First AI model with Multi Stage thinking

https://drive.google.com/drive/folders/1o8z_EwHKd3yxSQ4HcUqBm6_B7AMvg36F?usp=sharing
1•VarunGuptaHAI•24m ago•0 comments

What's Next for AI and Math

https://www.technologyreview.com/2025/06/04/1117753/whats-next-for-ai-and-math/
1•mdp2021•26m ago•0 comments

Large Processor Chip Model

https://arxiv.org/abs/2506.02929
1•anticensor•26m ago•0 comments

Industry welcomes first wave of pensioner gamers

https://www.bbc.com/news/articles/c861egvqlzjo
1•Sikara•26m ago•0 comments

Falsehoods programmers believe about authorization

https://www.osohq.com/post/falsehoods-about-authorization
1•RobSpectre•27m ago•0 comments

Globalization explained through the Nintendo Switch 2

https://english.elpais.com/economy-and-business/2025-06-03/from-mario-to-the-barrio-globalization-explained-through-the-nintendo-switch-2.html
1•geox•27m ago•0 comments

Why I'm excited about Go for agents

https://docs.hatchet.run/blog/go-agents
1•abelanger•28m ago•0 comments

Log Your Entire ZSH History

https://spin.atomicobject.com/log-your-zsh-history/
1•ingve•28m ago•0 comments
Open in hackernews

CVE 2025 31200

https://blog.noahhw.dev/posts/cve-2025-31200/
124•todsacerdoti•1d ago

Comments

duped•1d ago
> Essentially, if you have a vector, say [A,B,C] that you actually want to be [B,A,C], then you might do that with a ‘permutation map’: another vector that says where each element should go. In this case that would be [1,0,2], which means that the element at index 1 should go to index 0, and the element at index 0 should go to index 1 and the element at index 2 should stay where it is. The simplest working way to do this is to just allocate another vector, and essentially use the permutation map as a kind of dictionary (index→element) for populating that third vector. However, if you would rather be clever and don’t feel like allocating a whole other vector, then you can use the algorithm above.

This isn't being clever, it's actually incorrect to allocate a whole other vector. Realtime code requires O(1) memory complexity for correctness. Although the smart thing would be to preallocate a buffer for the pointers, but in general that may not be possible (I'm not an expert in CoreAudio but if the channels are interleaved and the next chunk of code expects to process in place you really do have to it this way).

It sounds like the CVE is super simple, reduced to:

- CoreAudio determines the number of channels before playback to create a resource, standard practice in audio processing

- It then trusts the number of channels of an incoming stream when using that resource

- A maliciously crafted audio file can bypass checks for this and trigger a buffer overflow

Never trust your inputs, folks.

The reason this comes up with HOA to me is not surprising: almost no one uses HOA, and a variety of other optimizations like assuming the "H" in HOA only refers to up to 128 channels (since afaik, no one even tries past that point).

> Imagine if the primitive is that you can write n 8 byte sequences out of bounds, but they must be valid 32 bit floats in the range x-y

I imagine the only thing you need to guarantee is you don't use subnormals, since audio code usually enables FTZ mode on both ARM and x86.

saagarjha•4h ago
> This isn't being clever, it's actually incorrect to allocate a whole other vector. Realtime code requires O(1) memory complexity for correctness.

You can just allocate the scratch buffer beforehand.

saghm•1d ago
Is there a typo in the code block for the `Process` function near the end of the post? Lines 13-15 have the following loop:

        while (remapVec[remapStartIndex] >= index) { // Follow the 'cycle'
            index = remapVec[remapStartIndex];
        }
I'm not sure what that loop is supposed to be doing, but as its written it looks like it would either be skipped entirely or never terminate; after single iteration, the the two values would be equal and never change again.
johnfn•1d ago
The authors probably intended to write:

                index = remapVec[index];
which would do a better job at following a cycle.
ec109685•1d ago
I’d be really frustrated if my device was compromised by an esoteric audio format that I had no intention of ever listening to.

If these parsers can’t run inside an isolated process, perhaps they shouldn’t be enabled at all?

Hilift•1d ago
This is totally on-brand for Apple.

"Apple is aware of a report that this issue may have been exploited in an extremely sophisticated attack against specific targeted individuals on iOS."

That's an RCE, but nowhere near as bad as other recent exploits (CVE-2023-41064 and CVE-2023-41061) that include device and account takeover from an iMessage that you don't have to read. Also these typically don't rate highest severity (7.5/High) probably due to the limited scope of the targets.

https://www.tenable.com/cve/CVE-2025-31200

mike_d•1d ago
> I’d be really frustrated if my device was compromised by an esoteric audio format that I had no intention of ever listening to.

Users get even more frustrated when they want to play something and it does not work. Security is always a usability trade-off.

There is also an argument to be made that it is better for Apple to introduce a few bugs adding support for viewing/playing/etc random things than end users googling "how to play X" and downloading whatever app appears first in the results.

Remember the good 'ol days when everyone had Adobe Acrobat installed so they could open PDFs and it had a new 0day every month? Then one day Chrome added PDF.js and exploitation in the wild dropped off as people stopped downloading shitware to fill out rental applications.

captn3m0•1d ago
pdf.js was a Mozilla experiment.
kccqzy•1d ago
It's not really esoteric given it's part of Apple's push into Spatial Audio as early as 2020 (movies in 2020, Apple Music in 2021). Sure you might have no intention of listening to this, but it's wrong to say it's esoteric given the amount of marketing material Apple has put out.
tialaramex•1d ago
We know how to provably do Wrangling Untrusted File Formats Safely, that's what WUFFS is. So it's not about an "isolated process" it's about a choice to do shoddy engineering and a society which has decided that shoddy engineering is fine in this particular domain.
ChocolateGod•1d ago
> attack against specific targeted individuals on iOS

I'm sure Pegasus will come up with another exploit to replace this one.

jdefr89•1d ago
I remember when I was doing iOS/macOS security research back in 2015 and I though to myself "I bet core audio has bugs.." but never really looked into them because my thinking was they wouldn't have been too too useful unless you can get someone to open an audio file... But great work.
hbn•16h ago
When I click this link my work's firewall blocks me, asking if I want to proceed to:

    http://gambling.com ?url=https://blog.noahhw.dev/posts/cve-2025-31200/
Which is weird cause that redirect url is to exactly what's linked in the post. It only happens on this link.
saagarjha•4h ago
Do you have an extensions installed that might be doing this?