CVE-2026-139575: RDMA/cxgb4: Do not allow userspace to write the status page
In the Linux kernel, the following vulnerability has been resolved:
RDMA/cxgb4: Do not allow userspace to write the status page
The device status page is shared by all userspace contexts and contains dboff, which the driver updates to control doorbell flow. The rdma-core provider maps it with PROTREAD, but c4iwmmap() passes the requested page protection through when handling CXGB4MMAPCONTIG.
A process can therefore request PROTWRITE directly or later upgrade a read-only mapping with mprotect() because VMMAYWRITE remains set. This lets userspace alter device-wide flow-control state seen by the kernel and other contexts.
Reject initially writable mappings and clear VMMAYWRITE before mapping the page. This preserves the existing read-only userspace ABI.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the cxgb4 driver, reject initially writable mappings and clear VM_MAYWRITE before mapping the status page.
Event History
Frequently Asked Questions
Who can exploit this issue?
A local userspace process that can interact with the cxgb4 RDMA driver and obtain the shared device status-page mapping is the relevant attacker. The issue affects systems using the cxgb4 RDMA stack; it is not described as remotely exploitable.
What does an attacker need to do to modify the shared status page?
The process must request a writable mapping of the status page directly, or upgrade an existing read-only mapping with mprotect(). Before the fix, the mapping path accepted requested protections and retained VM_MAYWRITE.
What is the impact of successful exploitation?
An attacker can alter db_off in a device status page shared across userspace contexts. This can change device-wide doorbell flow-control state used by the kernel and other contexts.
How does the fix prevent exploitation?
The fix rejects initially writable mappings of the page and clears VM_MAYWRITE before mapping it. The status page remains available through the existing read-only userspace ABI.