This is really pretty old. There is a 25 year old BSD bug.
it’s filed as rdar://problem/5923005 for the special Apple crowd with access to Radar reports.
The technical description of this bug is here.
There is also a 33 year old UNIX bug. It’s a buffer overflow bug. It’s technical description is here. As far as I know, there is no Radar report. But I wouldn’t know.