Hello cpio maintainers, I am writing about two security fixes that have been on GNU cpio master since mid 2026 but have never appeared in a release. These CVEs are already known and the credit belongs to their original reporters and to whoever wrote the fixes. I am not claiming discovery. My contribution is dynamic validation on the exact binaries the distributions are shipping today, which shows the vulnerable code is what users actually run.
The fixes: - CVE-2026-126831, a stack buffer overflow in write_out_tar_header() (unbounded strcpy into the 32 byte ustar uname and gname fields): fixed by commits e8931be and b5c7d6e, with the read-side companion e5bb73f. - CVE-2026-126820, a one byte over-read in from_ascii() in copyin.c: fixed by commit bf16382. The newest release is 2.15, and no tag contains any of these commits. Distributions therefore still ship vulnerable builds: Debian 12 ships 2.13 and Ubuntu 24.04 and 26.04 ship 2.15, all built from sources without the fixes. What I did: I extracted the exact shipped Debian and Ubuntu packages and ran the shipped cpio binaries on crafted archives, with AddressSanitizer builds of the exact shipped sources where a plain binary cannot show the defect, and builds carrying your master fixes as controls. Results: the shipped binaries abort on the fortify check for CVE-2026-126831, and AddressSanitizer confirms a stack-buffer-overflow WRITE at tar.c:219 (2.15 tree) and tar.c:217 (2.13 tree). For CVE-2026-126820, AddressSanitizer confirms the one byte stack over-read in from_ascii on both source trees, and the build with commit bf16382 applied processes the same archive cleanly. Request: please cut a new cpio release containing these fixes. Until one exists, every distribution shipping 2.13 or 2.15 is exposed, and most will not backport commits that have never been in a release. I have also notified the Debian and Ubuntu security teams and pointed them at the master commits for backporting, but a release is the fix that reaches everyone. One related note: CVE-2023-7216 (symlink write-through on extraction) also remains unfixed upstream as far as I can tell; I validated it on the shipped Ubuntu binaries. It would be good to see it addressed in the same release if a fix is feasible. Full evidence (crafted archives, run logs, AddressSanitizer traces, control results) is available on request. Validated and reported by Mark Shaw, contact [email protected].
