CVE-2026-139077

drm/nouveau: reject zero-size notifier object allocation

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/nouveau: reject zero-size notifier object allocation

nouveau_abi16_ioctl_notifierobj_alloc() passes the userspace-controlled
info->size to nvkm_mm_head() as both size_max and size_min without a lower
bound. A zero size satisfies the allocator's "e - s < size_min" gate
(size_min == 0 makes the unsigned comparison inert) and yields a
zero-length node, after which

args.limit = ntfy->node->offset + ntfy->node->length - 1;

underflows (offset 0, length 0 -> 0xffffffff) into an oversized ~4 GiB DMA
window. The dma object constructor only rejects start > limit, so the
validly ordered [base, base + 0xffffffff] range passes and is programmed
into the GPU DMA context. The ioctl is DRM_RENDER_ALLOW, so any render
node client can trigger this on pre-Fermi hardware.

Reject a zero-size request before allocating anything.

Analysis

AI-generated

Technical impact

The vulnerability arises when the Nouveau driver allocates notifier objects with a size specified by userspace. The kernel fails to enforce a lower size bound, allowing zero‑length allocations. This causes the DMA range calculations to underflow, resulting in a 4 GiB unauthenticated DMA window being programmed into the GPU. An attacker with the ability to issue DRM_RENDER_ALLOW ioctl calls can trigger this flaw, potentially reading or writing kernel memory through the GPU and leading to privilege escalation or denial of service.

Affected Systems

All Linux kernels that ship the Nouveau graphics driver, before the application of the patch that rejects zero‑size notifier allocations. This includes any distribution using the upstream Linux kernel with Nouveau enabled. No specific kernel release numbers are listed, so all affected versions must be considered.

Risk and Exploitability

No EPSS score is supplied and the vulnerability is not listed in CISA’s KEV catalog, indicating it is currently unreported in the wild. However, the CVSS of the underlying issue would likely be high given that the flaw allows manipulation of a 4 GiB DMA window. The attack can be carried out locally by any process that has permission to invoke DRM_RENDER_ALLOW ioctl calls on the Nouveau device. Because the flaw is triggered purely by user‑supplied size values, there are no complex prerequisites. The low or unreported EPSS suggests limited active exploitation, but the severity of the potential impact warrants prompt attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a revision that contains the Nouveau driver fix for zero‑size notifier allocation.
  • If an update is not immediately possible, disable Nouveau usage on the affected machines by setting 'nouveau.modeset=0' at boot or loading the proprietary NVIDIA driver in its place.
  • Apply a kernel patch that rejects zero‑size notifier allocations or modifies the allocation function to enforce a minimum size, as demonstrated in the upstream commit linked in the advisory.

Generated by OpenCVE AI on November 30, 2026 at 19:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-129
CWE-190
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/nouveau: reject zero-size notifier object allocation nouveau_abi16_ioctl_notifierobj_alloc() passes the userspace-controlled info->size to nvkm_mm_head() as both size_max and size_min without a lower bound. A zero size satisfies the allocator's "e - s < size_min" gate (size_min == 0 makes the unsigned comparison inert) and yields a zero-length node, after which args.limit = ntfy->node->offset + ntfy->node->length - 1; underflows (offset 0, length 0 -> 0xffffffff) into an oversized ~4 GiB DMA window. The dma object constructor only rejects start > limit, so the validly ordered [base, base + 0xffffffff] range passes and is programmed into the GPU DMA context. The ioctl is DRM_RENDER_ALLOW, so any render node client can trigger this on pre-Fermi hardware. Reject a zero-size request before allocating anything.
Title drm/nouveau: reject zero-size notifier object allocation
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-129

    Improper Validation of Array Index

  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:27 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM