CVE-2026-68271

Source
https://cve.org/CVERecord?id=CVE-2026-68271
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68271.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-68271
Downstream
Published
2026-08-10T12:01:46.534Z
Modified
2026-08-12T04:19:22.256809982Z
Summary
drm/nouveau: fix reversed error cleanup order in ucopy functions
Details

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

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

nouveauuvmmvmbinducopy() and nouveauexecucopy() place their error cleanup labels in allocation order rather than reverse allocation order. On a umemcpya() failure for insync.s, the goto to errfreeops (or errfreepushs) frees the first allocation and then falls through to errfreeins, which calls ufree() on args->insync.s.

Since args->insync.s still holds the ERRPTR returned by the failed umemcpya(), and ERRPTR values are not caught by ZEROORNULLPTR(), kvfree() proceeds to dereference it, which can result in a kernel oops. A failure for outsync.s instead jumps to errfreeins 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68271.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b88baab828713ce0b49b185444b2ee83bed373a8
Fixed
2473ac314387a5def7244eb6d6a345934ed140bf
Fixed
e15c25c7972d38a9f6bf8c3f7f29179a67263eba
Fixed
4e109faa9ea2b6c04cc5a99e76db3126575a59d1
Fixed
ebbaf64d2635d1e78196c067fa8fa582a7dc17f7
Fixed
ab99ead646b1b833ecd57fe577a2816f2e848167

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68271.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.148
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.101
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.42
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68271.json"