CVE-2024-56766: Linux kernel · mtd: rawnand: fix double free in atmel_pmecc_create_user()
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 30 Oct 2026, 00:56 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 6 Jan 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
Since the vulnerability involves kernel memory management, updating the Linux kernel to a fixed version when available is recommended. Until a patch is confirmed, avoid running untrusted code with local privileges that could trigger this flaw.
Description
CVE-2024-56766 is a high-severity vulnerability in the Linux kernel's mtd rawnand driver. It involves a double free error in the atmel_pmecc_create_user() function caused by improper memory management of the 'user' pointer. The pointer was originally allocated with kzalloc() but changed to devm_kzalloc(), making an explicit kfree(user) call result in a double free.
References
- nvd.nist.gov/vuln/detail/CVE-2024-56766 (opens in a new tab)
- git.kernel.org/stable/c/1562871ef613fa9492aa0310933eff785166a90e (opens in a new tab)
- git.kernel.org/stable/c/3d825a241e65f7e3072978729e79d735ec40b80e (opens in a new tab)
- git.kernel.org/stable/c/6ea15205d7e2b811fbbdf79783f686f58abfb4b7 (opens in a new tab)
- git.kernel.org/stable/c/ca9818554b0f33e87f38e4bfa2dac056692d46cc (opens in a new tab)
- git.kernel.org/stable/c/d2f090ea57f8d6587e09d4066f740a8617767b3d (opens in a new tab)
- git.kernel.org/stable/c/d8e4771f99c0400a1873235704b28bb803c83d17 (opens in a new tab)
- git.kernel.org/stable/c/dd45c87782738715d5e7c167f8dabf0814a7394a (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00001.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/03/msg00002.html (opens in a new tab)