What’s Vulnerable › Vulnerabilities
CVE-2024-56766: mtd: rawnand: fix double free in atmel_pmecc_create_user()
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-01-06 · updated 2026-06-17
- Weakness: CWE-415
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.
Affected products
- Linux kernel: from 4.19.325 before 4.20; from 5.4.287 before 5.5; from 5.10.231 before 5.11; from 5.15.174 before 5.16; from 6.1.120 before 6.1.123; from 6.6.64 before 6.6.69 — fixed in 4.20, 5.11, 5.16, 5.5, 6.1.123, 6.12
How to fix
Upgrade to a fixed version: Linux kernel 4.20, 5.11, 5.16, 5.5. Check the vendor advisory for mitigations.
References
- 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/ca9818554b0f33e87f38e4bfa2dac056692d46cc
- https://git.kernel.org/stable/c/d2f090ea57f8d6587e09d4066f740a8617767b3d
- https://git.kernel.org/stable/c/d8e4771f99c0400a1873235704b28bb803c83d17
- https://git.kernel.org/stable/c/dd45c87782738715d5e7c167f8dabf0814a7394a
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html
Get alerted when CVE-2024-56766 or the next vulnerability affects your stack