# CVE-2026-98841: virt: vmgenid: set driver\_data before registering notification handlers

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:50:15.224Z
- **Modified:** 2026-10-19T10:19:48.197Z

## Who should check

- Anyone running Linux \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 538fe5efaa9704ad820ba34b4f9df135ca873d79; \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 7a1e8daeaa466c6aaffa223e1afe9cfeece0dd47; \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 8f42954ad8bf9bdbf574f2c437ad30cb2601f401; \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 9f8139c6145cf17d690d6c414d43b4c0bef632fb
- Anyone running Linux 6.10

## Description

In the Linux kernel, the following vulnerability has been resolved:

virt: vmgenid: set driver\_data before registering notification handlers

Both probe paths register their notification handler before assigning
driver\_data, which the handler dereferences.

In the devicetree path, the notification IRQ can fire as soon as
devm\_request\_irq() registers the handler: the interrupt may already be
pending at probe time, for example when a VMM injects the
generation-changed notification while restoring a guest from a snapshot
that was taken before the driver had probed (Firecracker does exactly
this on snapshot restore). The IRQ is also requested with IRQF\_SHARED,
so another device sharing the line can trigger the handler just as
early. The handler then calls vmgenid\_notify(), which dereferences the
still-NULL driver\_data and panics:

  Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010
  CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.18.38+ \#1 PREEMPT(none)
  Hardware name: linux,dummy-virt (DT)
  pc : vmgenid\_notify.isra.0+0x24/0x8c
  lr : vmgenid\_of\_irq\_handler+0x14/0x34
  Call trace:
   vmgenid\_notify.isra.0+0x24/0x8c (P)
   vmgenid\_of\_irq\_handler+0x14/0x34
   \_\_handle\_irq\_event\_percpu+0x44/0x1bc
   handle\_irq\_event+0x4c/0xb4
   handle\_fasteoi\_irq+0xf8/0x1f8

The ACPI path has the same ordering problem: the handler is installed
with acpi\_install\_notify\_handler() before driver\_data is assigned.
ACPI notifications are dispatched asynchronously from a workqueue, so
the window is narrow, but a notification arriving between the two calls
hits the same NULL dereference.

Assign driver\_data before registering the handlers. The state is fully
initialized at that point, so the handlers are safe to run. Should
registration fail, the probe error path leaves no dangling pointer
behind: the driver core clears driver\_data in device\_unbind\_cleanup().

## Affected and fixed versions

- Linux: \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 538fe5efaa9704ad820ba34b4f9df135ca873d79; \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 7a1e8daeaa466c6aaffa223e1afe9cfeece0dd47; \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 8f42954ad8bf9bdbf574f2c437ad30cb2601f401; \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 9f8139c6145cf17d690d6c414d43b4c0bef632fb (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 9f8139c6145cf17d690d6c414d43b4c0bef632fb or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98841. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98841.md
Affected: Linux >= e07606713a908eee8099883c8c830ebe33aaf748, < 538fe5efaa9704ad820ba34b4f9df135ca873d79; >= e07606713a908eee8099883c8c830ebe33aaf748, < 7a1e8daeaa466c6aaffa223e1afe9cfeece0dd47; >= e07606713a908eee8099883c8c830ebe33aaf748, < 8f42954ad8bf9bdbf574f2c437ad30cb2601f401; >= e07606713a908eee8099883…
Fixed in: Linux 538fe5efaa9704ad820ba34b4f9df135ca873d79, Linux 7a1e8daeaa466c6aaffa223e1afe9cfeece0dd47, Linux 8f42954ad8bf9bdbf574f2c437ad30cb2601f401, Linux 9f8139c6145cf17d690d6c414d43b4c0bef632fb

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98841 being exploited?

There is no confirmed exploitation: CVE-2026-98841 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98841?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98841?

Linux \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 538fe5efaa9704ad820ba34b4f9df135ca873d79; \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 7a1e8daeaa466c6aaffa223e1afe9cfeece0dd47; \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 8f42954ad8bf9bdbf574f2c437ad30cb2601f401; \>= e07606713a908eee8099883c8c830ebe33aaf748, \< 9f8139c6145cf17d690d6c414d43b4c0bef632fb; Linux 6.10.

### Is there a fix for CVE-2026-98841?

Yes. Fixed in Linux 538fe5efaa9704ad820ba34b4f9df135ca873d79, Linux 7a1e8daeaa466c6aaffa223e1afe9cfeece0dd47, Linux 8f42954ad8bf9bdbf574f2c437ad30cb2601f401, Linux 9f8139c6145cf17d690d6c414d43b4c0bef632fb. Upgrade Linux to 9f8139c6145cf17d690d6c414d43b4c0bef632fb or later.

### How do I check if I'm affected by CVE-2026-98841?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/538fe5efaa9704ad820ba34b4f9df135ca873d79>
- other: <https://git.kernel.org/stable/c/7a1e8daeaa466c6aaffa223e1afe9cfeece0dd47>
- other: <https://git.kernel.org/stable/c/8f42954ad8bf9bdbf574f2c437ad30cb2601f401>
- other: <https://git.kernel.org/stable/c/9f8139c6145cf17d690d6c414d43b4c0bef632fb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98841>

HTML: <https://flawdb.com/CVE-2026-98841> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98841>
