roadmap PROPOSED

A driver copies memory a peer can write before it reads it

Raised 2026-11-24 (UTC) by lane lane/audit-2026-11, as finding 7 of the security audit the graphical drivers' parsers. Name: provisional.

Reuse: MappedWindow::read_volatile and MappedWindow::copy_within in user_mode_runtime, which milestone 139 (drive the unsafe count down) built for exactly this.

The problem

MappedWindow::as_slice states its contract: nothing else, no peer process included, reads or writes the range while the slice is alive. Three sites in the graphical stack hold a Rust reference over memory that a peer can write while the reference is alive. Their SAFETY comments argue against a well-behaved peer, not a hostile one.

Nothing misbehaves that a test has seen. The compiler may assume a shared reference's bytes do not change. A hostile writer then turns a tear into a parse that reads different bytes on two loads of the same field, a bug no bounds check can see.

The work

Done when

No reference into a mapping a peer can write is alive in usb_keyboard_driver or compositor, and the compositor's isolation tests still pass.

Index row

A driver copies memory a peer can write before it reads it.