All reports
Medium

kernel: drm/tests: shmem: Hold reservation lock around madvise

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-71298

Probability of exploitation in the next 30 days: 0.12%

FIRST EPSS · 2026-11-17

Description

In the Linux kernel, the following vulnerability has been resolved: drm/tests: shmem: Hold reservation lock around madvise Acquire and release the GEM object's reservation lock around calls to the object's madvide operation. The tests use drm_gem_shmem_madvise_locked(), which led to errors such as show below. [ 58.339389] WARNING: CPU: 1 PID: 1352 at drivers/gpu/drm/drm_gem_shmem_helper.c:499 drm_gem_shmem_madvise_locked+0xde/0x140 Only export the new helper drm_gem_shmem_madvise() for Kunit tests. This is not an interface for regular drivers.

A flaw was found in the Linux kernel's Direct Rendering Manager (DRM) shared memory test suite. A local user capable of running kernel unit tests can trigger a locking issue when memory advisory operations are invoked without acquiring the necessary reservation lock. This flaw may lead to unexpected kernel warnings or cause a Denial of Service (DoS) condition.