CVE-2026-139576: RDMA/mlx4: Do not allow the user to write to the clock page
In the Linux kernel, the following vulnerability has been resolved:
RDMA/mlx4: Do not allow the user to write to the clock page
mlx4ibmmap() maps the internal clock page to userspace through rdmausermmapio(), which does not restrict write access. Userspace can request PROTWRITE directly, or upgrade a read-only mapping later with mprotect() because VMMAYWRITE remains set.
Reject VMWRITE, VMEXEC and clear VMMAYWRITE, applying the same read-only policy as commit c660133c339f ("RDMA/mlx5: Do not allow the user to write to the clock page"). The rdma-core mlx4 provider requests this mapping with PROTREAD, so its existing behavior is unchanged.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In mlx4_ib_mmap(), reject mappings with VM_WRITE or VM_EXEC and clear VM_MAYWRITE for the clock-page mapping, preserving read-only access.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux mlx4 RDMA driver are exposed when userspace can map the mlx4 internal clock page. The affected path is mlx4_ib_mmap() through rdma_user_mmap_io().
What does an attacker need to do to exploit the issue?
A userspace process must obtain the clock-page mapping and request it with PROT_WRITE, or first create a read-only mapping and then use mprotect() to add write access. Executable mappings are also rejected by the fix.
Will this disrupt the existing rdma-core mlx4 provider?
No. The rdma-core mlx4 provider requests the clock-page mapping with PROT_READ, so its existing behavior is unchanged by the read-only restriction.
How can I tell whether the fix is present?
With the fix, writable and executable clock-page mappings are rejected, and VM_MAYWRITE is cleared so a read-only mapping cannot later be upgraded to writable with mprotect().