CVE-2026-98142·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/cirrus-qemu: Validate BAR0 size during probe The `cirrus-qemu` driver relies on `CIRRUS_VRAM_SIZE` (4 MB) to validate framebuffer sizes. However, during PCI probe, the driver mapped BAR0 without verifying that its size matches `CIRRUS_VRAM_SIZE`. If a PCI device with a BAR0 smaller than 4 MB is bound to the driver, the mapped VRAM will be smaller than expected. Because validation checks assume 4 MB VRAM, framebuffers larger than the mapped memory can be created. When the display plane is updated (e.g. during release), `cirrus_primary_plane_helper_atomic_update()` copies the framebuffer to VRAM using `drm_fb_memcpy()`. Writing past the end of the mapped I/O memory causes a supervisor write page fault: BUG: unable to handle page fault for address: ffffc9000389c000 ... RIP: 0010:memcpy_toio+0x7c/0xe0 arch/x86/lib/iomem.c:110 ... Call Trace: <TASK> iosys_map_memcpy_to include/linux/iosys-map.h:285 [inline] drm_fb_memcpy+0x325/0x5d0 drivers/gpu/drm/drm_format_helper.c:442 cirrus_primary_plane_helper_atomic_update+0x98a/0xb00 drivers/gpu/drm/tiny/cirrus-qemu.c:358 drm_atomic_helper_commit_planes+0x626/0xea0 drivers/gpu/drm/drm_atomic_helper.c:3038 drm_atomic_helper_commit_tail+0x60/0x510 drivers/gpu/drm/drm_atomic_helper.c:1989 commit_tail+0x2b1/0x3c0 drivers/gpu/drm/drm_atomic_helper.c:2074 drm_atomic_helper_commit+0xa77/0xb10 drivers/gpu/drm/drm_atomic_helper.c:2312 Fix this by validating in `cirrus_pci_probe()` that the PCI BAR0 resource is not less than `CIRRUS_VRAM_SIZE`, returning `-ENODEV` if it is less.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.2.7
- 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.11% — higher than 1% 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: 7.2.7
Fixed in: 7.2.7
How to fix this CVE
Update your Linux kernel to version 7.2.7 or later to resolve a memory access validation flaw in the cirrus-qemu DRM driver. This vulnerability allows framebuffers to be created larger than mapped VRAM, leading to kernel page faults during display updates. Affected systems running kernel versions 6.19 through 7.2.6 should prioritize this update, particularly if using QEMU cirrus graphics devices.
sudo dnf check-update kernel && sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to display the currently running kernel version and verify it is 7.2.7 or later
- Check if cirrus-qemu driver is loaded: `lsmod | grep cirrus` — if output appears, the vulnerable component is present
- Search kernel logs for BAR0 mapping errors: `sudo dmesg | grep -i 'cirrus\|bar0\|vram'` to identify potential initialization failures
- Verify kernel module version matches installed package: `modinfo cirrus | grep version` and compare against `apt-cache show linux-image-generic | grep Version` (Ubuntu) or equivalent for your distribution
FAQ
What is CVE-2026-98142?
This vulnerability affects the cirrus-qemu DRM display driver in the Linux kernel, where the driver fails to validate that the PCI BAR0 resource is at least 4 MB in size during probe. Undersized BAR0 mappings allow framebuffer allocations larger than actual VRAM, causing kernel page faults when display updates write beyond mapped memory.
Is CVE-2026-98142 being actively exploited?
No, there are currently no reports of active exploitation or public exploits available for this vulnerability. It requires local system access and specific hardware/VM configuration to trigger.
What versions of Kernel are affected by CVE-2026-98142?
Linux kernel versions 6.19 through 7.2.6 are affected. The fix was released in kernel 7.2.7 and later stable releases.
How do I check if my server is vulnerable to CVE-2026-98142?
Run `uname -r` to check your kernel version — if it reports 6.19 to 7.2.6, you are vulnerable. Additionally, run `lsmod | grep cirrus` to confirm the cirrus-qemu driver is loaded on your system.
Does Defensia detect CVE-2026-98142?
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-2026-98142 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0b5084a1f070ad1fc34e11945644ae034bbc774c
- https://git.kernel.org/stable/c/144f51cd0ccc3ad47a6099917b7bb535611fb18f
- https://git.kernel.org/stable/c/26bd90c886218f36c9adeab206b0e27b4384e2f6
- https://git.kernel.org/stable/c/2a0e7bcff3fa63e7309d2b39e18af59eb8ef2b6e
- https://git.kernel.org/stable/c/92312d333bf700798f92f30406c721bce87506f3
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98142. Free for 1 server.
Get started free