CVE-2026-80698: dmaengine: idxd: fix double free of wq, engine, and group structs

Published Aug 28, 2026
·
Updated

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

dmaengine: idxd: fix double free of wq, engine, and group structs

The release callbacks for wq, engine, and group devices (idxdconfwqrelease, idxdconfenginerelease, idxdconfgrouprelease) each call kfree() on the enclosing struct. The setup error paths and cleanup functions also call kfree() explicitly after putdevice(), producing a double free whenever putdevice() drops the reference count to zero and fires the release.

In the setup functions, deviceinitialize() is called before deviceadd(), so the reference count is exactly 1 at the error sites. putdevice() unconditionally fires the release, which frees the struct; the subsequent explicit kfree() then operates on freed memory.

For idxdsetupwqs(), the wq release callback also owns opcapbmap and wqcfg. The error unwind additionally freed those fields explicitly before calling putdevice(), causing further double frees on both.

Remove the redundant explicit kfree() calls from all setup error paths and cleanup functions for wq, engine, and group structs, delegating sole ownership of those allocations to the release callbacks.

Affected Software

1 affected component
Linux Kernel

Event History

Aug 28, 2026
CVE Published
via MITRE·06:53 AM
Data Sourced
via MITRE·06:53 AM
Description

Frequently Asked Questions

1

Under what conditions can the double free occur?

It occurs when idxd work queue, engine, or group setup reaches an error path, or when related cleanup runs, and put_device() drops the device reference count to zero. Because device_initialize() leaves the reference count at 1 before device_add(), the affected setup error paths trigger the release callback immediately.

2

Which allocations are additionally affected for work queues?

For work queues, the release callback owns the work-queue structure as well as opcap_bmap and wqcfg. The affected error unwind freed those fields explicitly before put_device(), so they could be freed again by the release callback.

3

What is the remediation described by the fix?

Remove explicit kfree() calls for work queue, engine, and group structures from setup error paths and cleanup functions. Their release callbacks should be the sole owners responsible for freeing these allocations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203