CVE-2025-71298 drm/tests: shmem: Hold reservation lock around madvise

Medium 5.5 Published Updated

Missing reservation lock in DRM shmem tests causes kernel warnings and potential instability, requiring a patch to Linux kernel developers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-71298?

CVE-2025-71298 is a medium-severity vulnerability in Linux kernel, published on 8 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2025-71298?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-71298?

Apply the vendor's patch.

Is CVE-2025-71298 being exploited?

There is no known exploitation of CVE-2025-71298 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-71298, DEBIAN-CVE-2025-71298, GHSA-j7c4-w5pq-7cg7, UBUNTU-CVE-2025-71298.

Is CVE-2025-71298 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free