CVE-2026-68271

drm/nouveau: fix reversed error cleanup order in ucopy functions

N/A
Published: August 10, 2026 at 12:01 PM UTC
Updated: August 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: drm/nouveau: fix reversed error cleanup order in ucopy functions nouveau_uvmm_vm_bind_ucopy() and nouveau_exec_ucopy() place their error cleanup labels in allocation order rather than reverse allocation order. On a u_memcpya() failure for in_sync.s, the goto to err_free_ops (or err_free_pushs) frees the first allocation and then falls through to err_free_ins, which calls u_free() on args->in_sync.s. Since args->in_sync.s still holds the ERR_PTR returned by the failed u_memcpya(), and ERR_PTR values are not caught by ZERO_OR_NULL_PTR(), kvfree() proceeds to dereference it, which can result in a kernel oops. A failure for out_sync.s instead jumps to err_free_ins and skips freeing the first allocation, leading to a memory leak. Fix by swapping the cleanup label order so resources are freed in the correct reverse allocation sequence.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.6 ≤ v < 6.12.1016.6 ≤ v < 6.18.426.6 ≤ v < 6.6.1486.6 ≤ v < 7.1.66.6 ≤ v < 7.26.6b88baab828713ce0b49b185444b2ee83bed373a8
Vendor states this is fixed in 2473ac314387a5def7244eb6d6a345934ed140bf (fixed)
Vendor states this is fixed in 4e109faa9ea2b6c04cc5a99e76db3126575a59d1 (fixed)
Vendor states this is fixed in ab99ead646b1b833ecd57fe577a2816f2e848167 (fixed)
Vendor states this is fixed in e15c25c7972d38a9f6bf8c3f7f29179a67263eba (fixed)
Vendor states this is fixed in ebbaf64d2635d1e78196c067fa8fa582a7dc17f7 (fixed)
Vendor states this is fixed in 6.12.101 (unaffected)
Vendor states this is fixed in 6.18.42 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)
Vendor states this is fixed in 6.6.148 (unaffected)
Vendor states this is fixed in 7.1.6 (unaffected)
Vendor states this is fixed in 7.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusRECEIVED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card