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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-08-28T06:53:02.829Z
- Modified: 2026-10-30T13:20:10.477Z
- Assigned by: Linux

## Description

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
(idxd_conf_wq_release, idxd_conf_engine_release,
idxd_conf_group_release) each call kfree() on the enclosing struct.
The setup error paths and cleanup functions also call kfree()
explicitly after put_device(), producing a double free whenever
put_device() drops the reference count to zero and fires the release.

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

For idxd_setup_wqs(), the wq release callback also owns opcap_bmap
and wqcfg. The error unwind additionally freed those fields explicitly
before calling put_device(), 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7c5dd23e57c14cf7177b8a5e0fd08916e0c60005 before 899aa2424a75b1812a1f4766e41e82315a521e7e; from 7c5dd23e57c14cf7177b8a5e0fd08916e0c60005 before 84cf00b1376c717e55d704dc259483e822ae1b34; from 7c5dd23e57c14cf7177b8a5e0fd08916e0c60005 before 38208445c41a6164e26748c600f954296991364d; from 7c5dd23e57c14cf7177b8a5e0fd08916e0c60005 before 63844dc03960b09b36746eda636c08f1479407ce; from 7c5dd23e57c14cf7177b8a5e0fd08916e0c60005 before c93a9f652b7373ac8ee5bfcc18a9af76959b6c6c; from 7c5dd23e57c14cf7177b8a5e0fd08916e0c60005 before ec2d428b2e32dd157de8f86a86dd85c5b2c8f45c; 394e179f51fce06d6bb8ca5af8fa53f33c718cf4; b09ad63775f58a8de3e228f59fb9543bfd964c9c; 26c219e7522c494f7865a928c81ced84cc7db3ae; 35ea8721d9e6e74c6847cf4d6c27e883b00b0331; e6f86fe368cdc14764833a6e8bb59f7a85a40e06; 1c28fd5f94d8996f7dd3805bd6a16ed46a5d0886; and 3 more (not affected: before 5.13; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.1.8 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/899aa2424a75b1812a1f4766e41e82315a521e7e>
- <https://git.kernel.org/stable/c/84cf00b1376c717e55d704dc259483e822ae1b34>
- <https://git.kernel.org/stable/c/38208445c41a6164e26748c600f954296991364d>
- <https://git.kernel.org/stable/c/63844dc03960b09b36746eda636c08f1479407ce>
- <https://git.kernel.org/stable/c/c93a9f652b7373ac8ee5bfcc18a9af76959b6c6c>
- <https://git.kernel.org/stable/c/ec2d428b2e32dd157de8f86a86dd85c5b2c8f45c>

## Sources

- CVE List: [CVE-2026-80698](https://www.cve.org/CVERecord?id=CVE-2026-80698), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-80698](https://nvd.nist.gov/vuln/detail/CVE-2026-80698), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-80698 · Whole record: https://cve.day/CVE-2026-80698.json · Rebuilt by cve.day 2026-11-25T22:59:35.618Z
