# CVE-2024-56766: mtd: rawnand: fix double free in atmel_pmecc_create_user()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-01-06T16:20:44.676Z
- Modified: 2026-06-17T08:12:56.480Z
- Weaknesses: CWE-415
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 22fbbc37edb840fd420fadf670366be9bf028426 before ca9818554b0f33e87f38e4bfa2dac056692d46cc; from 54cb5fa850f9306d84e49a3db44b7a7eb5536cd1 before 1562871ef613fa9492aa0310933eff785166a90e; from 5fe7709251e334cc27618473299c48340cecd3c8 before 3d825a241e65f7e3072978729e79d735ec40b80e; from 24cbc37e837fd9e31e5024480b779207d1d99f1d before 6ea15205d7e2b811fbbdf79783f686f58abfb4b7; from f1290871c8aaeb13029390a2b6e5c05733a1be6f before dd45c87782738715d5e7c167f8dabf0814a7394a; from 8ac19ec818c548c5788da5926dcc8af96fad4bb1 before d2f090ea57f8d6587e09d4066f740a8617767b3d; from 6d734f1bfc336aaea91313a5632f2f197608fadd before d8e4771f99c0400a1873235704b28bb803c83d17; 2014fcea19ec27df033359a0f42db0e8ed4290a8; bdd11a04d102f8310812aa7cec39545fdd6662d1; from 4.19.325 before 4.20; from 6.11.11 before 6.12; from 5.4.287 before 5.4.289; and 5 more
- linux 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; from 6.11.11 before 6.12; from 6.12.2 before 6.12.8; 6.13

## 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> (patch)
- <https://git.kernel.org/stable/c/dd45c87782738715d5e7c167f8dabf0814a7394a> (patch)
- <https://git.kernel.org/stable/c/d2f090ea57f8d6587e09d4066f740a8617767b3d> (patch)
- <https://git.kernel.org/stable/c/d8e4771f99c0400a1873235704b28bb803c83d17> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Sources

- CVE List: [CVE-2024-56766](https://www.cve.org/CVERecord?id=CVE-2024-56766), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-56766](https://nvd.nist.gov/vuln/detail/CVE-2024-56766), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56766 · Whole record: https://cve.day/CVE-2024-56766.json · Rebuilt by cve.day 2026-11-25T22:58:50.726Z
