Security

Writing through a read-only file descriptor and making a read-only shared mapping writable

KSA-2026-0026

Status
Resolved
Severity
Medium
CVE
CVE-2026-128740
Affected versions
0.2.0 to 0.2.4
Fixed in
0.2.5
Published
2026-11-02
Updated
2026-11-18

Summary

A program could write to a file through a descriptor it had opened read-only, and could map a file shared through a read-only descriptor and then make that memory writable, which wrote its changes back to the file. A program allowed only to read a file could change it.

Writes through read-only descriptors are refused, and shared mappings made through them can't become writable.

Workaround

Update to 0.2.5 or later.

Credit

Brent Gordon