{"id":"CVE-2026-97900","revision":"d20eddb8d4cf4713a1be3dfa3c66176e","records":[{"revision":"d20eddb8d4cf4713a1be3dfa3c66176e","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-97900","aliases":[],"title":"drm/drm_exec: fix up contended obj when num_objects is 0","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/drm_exec: fix up contended obj when num_objects is 0\n\ndrm_exec_prepare_array() silently returns success without calling\ndrm_exec_lock_contended() when num_objects is zero. This breaks the\ninvariant upheld by drm_exec_lock_obj(), where every entry point into\nthe locking sequence must first attempt to lock any previously\ncontended object before proceeding.\n\nDrivers that chain multiple drm_exec_prepare_array() calls per\ndrm_exec_until_all_locked() iteration (e.g. amdgpu's userq signal/wait\nioctls, which prepare separate read and write BO arrays) can pass an\nempty array for one of the two calls. If contention is hit while\npreparing the non-empty array, exec->contended is set and the loop\nretries; on retry, the empty-array call preceding it is a no-op that\nnever clears exec->contended, so drm_exec_retry_on_contention()\nimmediately jumps back to the top of the loop without ever reaching\nthe call that would resolve the contention. This spins forever.\n\nFix it by having drm_exec_prepare_array() call drm_exec_lock_contended()\ndirectly when num_objects is zero, so a pending contended object dont\nloop infinitely.","state":0,"publishedAt":"2026-09-25T10:22:28.057+00:00","modifiedAt":"2026-10-19T09:10:26.649+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpu/drm/drm_exec.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"09593216bff15866f95c8ad406cb7fdcec1ee40a\",\n                            \"lessThan\": \"506cfed91e50cc8055799480a2fde5a18f63a21c\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"09593216bff15866f95c8ad406cb7fdcec1ee40a\",\n                            \"lessThan\": \"831cd124ce99c3e61266bed30519d52f7c26abed\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"09593216bff15866f95c8ad406cb7fdcec1ee40a\",\n                            \"lessThan\": \"f3e74866018dab793ebee1fdf0ef34f7271d1f8c\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"09593216bff15866f95c8ad406cb7fdcec1ee40a\",\n                            \"lessThan\": \"a565022c02f218ec9789c2baf4690792e7a48cbb\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"09593216bff15866f95c8ad406cb7fdcec1ee40a\",\n                            \"lessThan\": \"159720704d9d652b64390c11fb971e15b0a78d23\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpu/drm/drm_exec.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.6\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.6\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.158\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.111\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.53\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.7\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/506cfed91e50cc8055799480a2fde5a18f63a21c","https://git.kernel.org/stable/c/831cd124ce99c3e61266bed30519d52f7c26abed","https://git.kernel.org/stable/c/f3e74866018dab793ebee1fdf0ef34f7271d1f8c","https://git.kernel.org/stable/c/a565022c02f218ec9789c2baf4690792e7a48cbb","https://git.kernel.org/stable/c/159720704d9d652b64390c11fb971e15b0a78d23"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-97900","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-97900","identifiers":["CVE-2026-97900"]},"retained":false,"historicalAffected":[]}],"coverage":[]}