# CVE-2026-97992: vhost-vdpa: protect config\_ctx from being freed under the config callback

> 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-09-25T10:23:24.472Z
- **Modified:** 2026-10-21T13:21:18.687Z

## Who should check

- Anyone running Linux \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< 914c7cc2e3d10dddd3c5529cbe56557c9e01702a; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< bf35c8948ab7a3eaf1f724fa1e870e3f73a1749b; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< 5a075ee2398929d5cc1393666f219c35332becb1; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< f4a93f15ed1c8406ba5c8e5b28cafacb2b3bcd11; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< 62be4e3e5f5f947fbf765b914cebdc478f715d12
- Anyone running Linux 5.8

## Description

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

vhost-vdpa: protect config\_ctx from being freed under the config callback

vhost\_vdpa\_config\_cb() loads v-\>config\_ctx and signals it without taking
a reference and without holding any lock:

	struct eventfd\_ctx \*config\_ctx = v-\>config\_ctx;

	if (config\_ctx)
		eventfd\_signal(config\_ctx);

VHOST\_VDPA\_SET\_CONFIG\_CALL replaces that field and drops what is normally
the last reference to the old context:

	swap(ctx, v-\>config\_ctx);

	if (ctx)
		eventfd\_ctx\_put(ctx);

eventfd\_ctx\_put() drops the last kref and frees the context immediately,
with no RCU grace period, so a callback that has already loaded the
pointer goes on to dereference freed memory.  The two sides share no
lock: the ioctl runs under vhost\_dev.mutex, while the parent invokes the
callback from its own interrupt or workqueue context.

This is not the reopen refcount underflow fixed by commit f6bbf0010ba0
("vhost-vdpa: fix use-after-free of v-\>config\_ctx"), which was about
vhost\_vdpa\_config\_put() leaving a stale pointer behind.  Here the pointer
is maintained correctly and it is the read side that is unprotected.

With VDUSE as the parent this is reachable from userspace with access to
/dev/vduse (root by default).  VDUSE\_DEV\_INJECT\_CONFIG\_IRQ queues
dev-\>inject, and vduse\_dev\_irq\_inject() runs the callback under VDUSE's
own dev-\>irq\_lock, which vhost does not hold.  vduse\_dev\_reset() does
flush\_work(&dev-\>inject), but VHOST\_VDPA\_SET\_CONFIG\_CALL never goes
through reset, so an inject already in flight is not waited for.  A
process that injects config interrupts on the VDUSE fd while another
thread swaps the call fd on the vhost-vdpa fd hits it in seconds:

  BUG: KASAN: slab-use-after-free in native\_queued\_spin\_lock\_slowpath
  Read of size 4 at addr ffff888107d21808 by task kworker/u17:1/2993
  Workqueue: vduse-irq vduse\_dev\_irq\_inject
  Call Trace:
   native\_queued\_spin\_lock\_slowpath+0x97/0x5b0
   \_raw\_spin\_lock\_irqsave+0xd4/0xe0
   eventfd\_signal\_mask+0x69/0x120
   vhost\_vdpa\_config\_cb+0x34/0x50
   vduse\_dev\_irq\_inject+0x46/0x60
   process\_one\_work+0x468/0x950

  Allocated by task 2992:
   do\_eventfd+0x50/0x200
   \_\_x64\_sys\_eventfd2+0x2e/0x40

  Freed by task 2992:
   eventfd\_ctx\_put+0xb9/0xc0
   vhost\_vdpa\_unlocked\_ioctl+0x116c/0x2190

Add a spinlock covering every access to config\_ctx, so the callback
either signals a context that is still alive or observes NULL, and the
put happens only once no callback can reach the old value.

Clearing the parent's callback before the put would not be enough: of the
in-tree set\_config\_cb() implementations only VDUSE takes a lock, the rest
store the pointer unlocked, so that would not order against an in-flight
invocation.

## Affected and fixed versions

- Linux: \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< 914c7cc2e3d10dddd3c5529cbe56557c9e01702a; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< bf35c8948ab7a3eaf1f724fa1e870e3f73a1749b; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< 5a075ee2398929d5cc1393666f219c35332becb1; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< f4a93f15ed1c8406ba5c8e5b28cafacb2b3bcd11; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< 62be4e3e5f5f947fbf765b914cebdc478f715d12 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 62be4e3e5f5f947fbf765b914cebdc478f715d12 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-97992. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97992.md
Affected: Linux >= 776f395004d829bbbf18c159ed9beb517a208c71, < 914c7cc2e3d10dddd3c5529cbe56557c9e01702a; >= 776f395004d829bbbf18c159ed9beb517a208c71, < bf35c8948ab7a3eaf1f724fa1e870e3f73a1749b; >= 776f395004d829bbbf18c159ed9beb517a208c71, < 5a075ee2398929d5cc1393666f219c35332becb1; >= 776f395004d829bbbf18c15…
Fixed in: Linux 914c7cc2e3d10dddd3c5529cbe56557c9e01702a, Linux 5a075ee2398929d5cc1393666f219c35332becb1, Linux 62be4e3e5f5f947fbf765b914cebdc478f715d12

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-97992 being exploited?

There is no confirmed exploitation: CVE-2026-97992 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-97992?

It has no CVSS score yet. Unknown.

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

Linux \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< 914c7cc2e3d10dddd3c5529cbe56557c9e01702a; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< bf35c8948ab7a3eaf1f724fa1e870e3f73a1749b; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< 5a075ee2398929d5cc1393666f219c35332becb1; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< f4a93f15ed1c8406ba5c8e5b28cafacb2b3bcd11; \>= 776f395004d829bbbf18c159ed9beb517a208c71, \< 62be4e3e5f5f947fbf765b914cebdc478f715d12; Linux 5.8.

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

Yes. Fixed in Linux 914c7cc2e3d10dddd3c5529cbe56557c9e01702a, Linux 5a075ee2398929d5cc1393666f219c35332becb1, Linux 62be4e3e5f5f947fbf765b914cebdc478f715d12. Upgrade Linux to 62be4e3e5f5f947fbf765b914cebdc478f715d12 or later.

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

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/914c7cc2e3d10dddd3c5529cbe56557c9e01702a>
- other: <https://git.kernel.org/stable/c/bf35c8948ab7a3eaf1f724fa1e870e3f73a1749b>
- other: <https://git.kernel.org/stable/c/5a075ee2398929d5cc1393666f219c35332becb1>
- other: <https://git.kernel.org/stable/c/f4a93f15ed1c8406ba5c8e5b28cafacb2b3bcd11>
- other: <https://git.kernel.org/stable/c/62be4e3e5f5f947fbf765b914cebdc478f715d12>

## 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-97992>

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