{"id":"CVE-2025-71298","summary":"drm/tests: shmem: Hold reservation lock around madvise","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/tests: shmem: Hold reservation lock around madvise\n\nAcquire and release the GEM object's reservation lock around calls\nto the object's madvide operation. The tests use\ndrm_gem_shmem_madvise_locked(), which led to errors such as show below.\n\n[   58.339389] WARNING: CPU: 1 PID: 1352 at drivers/gpu/drm/drm_gem_shmem_helper.c:499 drm_gem_shmem_madvise_locked+0xde/0x140\n\nOnly export the new helper drm_gem_shmem_madvise() for Kunit tests.\nThis is not an interface for regular drivers.","modified":"2026-07-15T01:49:12.348659437Z","published":"2026-05-08T13:11:09.797Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71298.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/07cfcab370da06f26c273306571cbb0bfa3b9c52"},{"type":"WEB","url":"https://git.kernel.org/stable/c/607d07d8cc0b835a8701259f08a03dc149b79b4f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9cc77691b5fd615625955cedf726da57543088f1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71298.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71298"},{"type":"PACKAGE","url":"https://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":"954907f7147dc43e0d1cd4d430c21d143d5fdf55"},{"fixed":"9cc77691b5fd615625955cedf726da57543088f1"},{"fixed":"07cfcab370da06f26c273306571cbb0bfa3b9c52"},{"fixed":"607d07d8cc0b835a8701259f08a03dc149b79b4f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71298.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.16.0"},{"fixed":"6.18.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71298.json"}}],"schema_version":"1.7.5"}