CVE-2025-71298·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.6
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.12% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.6
Fixed in: 6.19.6
How to fix this CVE
Update your Linux kernel to version 6.19.6 or later to resolve this GEM shmem reservation lock handling issue. This patch ensures proper synchronization when the DRM subsystem performs memory advice operations on shared memory objects, preventing kernel warnings and potential stability issues. Reboot the system after applying the kernel update.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed kernel version with `uname -r` and compare against 6.19.6 (vulnerable if running 6.19.0 through 6.19.5)
- Step 2: Verify DRM shmem components are loaded with `lsmod | grep drm_shmem`
- Step 3: Search kernel logs for the specific warning with `sudo dmesg | grep -i 'drm_gem_shmem_madvise_locked'` or `sudo journalctl -u kernel | grep -i 'drm_gem_shmem'`
- Step 4: After patching, reboot and confirm new kernel version with `uname -r`, then re-run dmesg search to confirm absence of madvise warnings
FAQ
What is CVE-2025-71298?
This vulnerability exists in the Linux kernel's DRM (Direct Rendering Manager) GEM shmem helper subsystem, where memory advice operations were not properly protected by the GEM object's reservation lock, causing kernel warnings and potential synchronization issues in graphics memory management.
Is CVE-2025-71298 being actively exploited?
No. This vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. It is primarily a kernel stability and correctness issue rather than a direct security threat.
What versions of Kernel are affected by CVE-2025-71298?
Linux kernel versions 6.19.0 through 6.19.5 are vulnerable. The issue was resolved in kernel version 6.19.6 and later.
How do I check if my server is vulnerable to CVE-2025-71298?
Run `uname -r` to display your kernel version. If the output shows 6.19.0, 6.19.1, 6.19.2, 6.19.3, 6.19.4, or 6.19.5, your system is vulnerable and requires a kernel update.
Does Defensia detect CVE-2025-71298?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2025-71298 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-71298. Free for 1 server.
Get started free