CVE-2026-89793: ublk: clear VM_MAYWRITE on read-only ublk char device mmap

Published Sep 16, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ublk: clear VMMAYWRITE on read-only ublk char device mmap

ublkchmmap() rejects mmap requests with VMWRITE set, but never clears VMMAYWRITE on the resulting read-only mapping. This allows a userspace daemon to mmap the per-queue command buffer PROTREAD, then upgrade it to PROTWRITE via mprotect(), since VMMAYWRITE was never cleared.

The command buffer holds struct ublksrviodesc entries that are kernel-written ABI; a writable mapping lets an unprivileged daemon process corrupt fields such as addr, opflags, nrsectors, and startsector.

Same bug class as the drm/panthor and drm/vc4 VMMAYWRITE fixes, and the 2026-08-13 ptp/vmclock fix (a5edadbae57e).

Verified via mprotect() PoC: before the fix, a PROTREAD mapping can be upgraded to PROTREAD|PROTWRITE and a write into the command buffer corrupts iodesc fields (confirmed under KASAN). After the fix, mprotect() returns -EACCES.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 2026-08-13 ptp/vmclock fix (a5edadbae57e).

Event History

Sep 16, 2026
CVE Published
via MITRE·09:54 AM
Data Sourced
via MITRE·09:54 AM
Description

Frequently Asked Questions

1

Who can exploit this issue?

An unprivileged userspace daemon that can mmap a ublk per-queue command buffer is the relevant attacker. The daemon can alter kernel-written ublk I/O descriptor fields after changing a read-only mapping to writable.

2

What is required to trigger the vulnerability?

The attacker must create a PROT_READ mapping of the ublk character-device command buffer, then use mprotect() to request PROT_READ|PROT_WRITE. Before the fix, this succeeds because VM_MAYWRITE remains set on the mapping.

3

How can I determine whether the fix is present?

Attempting to upgrade the read-only command-buffer mapping with mprotect() should fail with -EACCES after the fix. Before the fix, the protection change can succeed and writes can corrupt ublksrv_io_desc fields.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203