CVE-2025-71130

Source
https://cve.org/CVERecord?id=CVE-2025-71130
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-71130.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-71130
Downstream
Related
Published
2026-01-14T15:07:46.508Z
Modified
2026-03-31T17:29:24.765478919Z
Summary
drm/i915/gem: Zero-initialize the eb.vma array in i915_gem_do_execbuffer
Details

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

drm/i915/gem: Zero-initialize the eb.vma array in i915gemdo_execbuffer

Initialize the eb.vma array with values of 0 when the eb structure is first set up. In particular, this sets the eb->vma[i].vma pointers to NULL, simplifying cleanup and getting rid of the bug described below.

During the execution of eblookupvmas(), the eb->vma array is successively filled up with struct ebvma objects. This process includes calling ebadd_vma(), which might fail; however, even in the event of failure, eb->vma[i].vma is set for the currently processed buffer.

If ebaddvma() fails, eblookupvmas() returns with an error, which prompts a call to ebreleasevmas() to clean up the mess. Since eblookupvmas() might fail during processing any (possibly not first) buffer, ebreleasevmas() checks whether a buffer's vma is NULL to know at what point did the lookup function fail.

In eblookupvmas(), eb->vma[i].vma is set to NULL if either the helper function eblookupvma() or ebvalidatevma() fails. eb->vma[i+1].vma is set to NULL in case i915gemobjectuserptrsubmitinit() fails; the current one needs to be cleaned up by ebreleasevmas() at this point, so the next one is set. If ebadd_vma() fails, neither the current nor the next vma is set to NULL, which is a source of a NULL deref bug described in the issue linked in the Closes tag.

When entering eblookupvmas(), the vma pointers are set to the slab poison value, instead of NULL. This doesn't matter for the actual lookup, since it gets overwritten anyway, however the ebreleasevmas() function only recognizes NULL as the stopping value, hence the pointers are being set to NULL as they go in case of intermediate failure. This patch changes the approach to filling them all with NULL at the start instead, rather than handling that manually during failure.

(cherry picked from commit 08889b706d4f0b8d2352b7ca29c2d8df4d0787cd)

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71130.json"
}
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
544460c33821b44c2f0c643121303c3dc3f66ef1
Fixed
25d69e07770745992387c016613fd7ac8eaf9893
Fixed
0336188cc85d0eab8463bd1bbd4ded4e9602de8b
Fixed
24d55ac8e31d2f8197bfad71ffcb3bae21ed7117
Fixed
63f23aa2fbb823c8b15a29269fde220d227ce5b3
Fixed
4fe2bd195435e71c117983d87f278112c5ab364c

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-71130.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.160
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.120
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.64
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-71130.json"