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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 19, 2026-11-28)
- **CWE:** CWE-415
- **Published:** 2025-01-06T16:20:44.676Z
- **Modified:** 2026-06-17T08:12:56.480Z

## Who should check

- Anyone running Linux \>= 22fbbc37edb840fd420fadf670366be9bf028426, \< ca9818554b0f33e87f38e4bfa2dac056692d46cc; \>= 54cb5fa850f9306d84e49a3db44b7a7eb5536cd1, \< 1562871ef613fa9492aa0310933eff785166a90e; \>= 5fe7709251e334cc27618473299c48340cecd3c8, \< 3d825a241e65f7e3072978729e79d735ec40b80e; \>= 24cbc37e837fd9e31e5024480b779207d1d99f1d, \< 6ea15205d7e2b811fbbdf79783f686f58abfb4b7; \>= f1290871c8aaeb13029390a2b6e5c05733a1be6f, \< dd45c87782738715d5e7c167f8dabf0814a7394a; \>= 8ac19ec818c548c5788da5926dcc8af96fad4bb1, \< d2f090ea57f8d6587e09d4066f740a8617767b3d; \>= 6d734f1bfc336aaea91313a5632f2f197608fadd, \< d8e4771f99c0400a1873235704b28bb803c83d17; 2014fcea19ec27df033359a0f42db0e8ed4290a8; bdd11a04d102f8310812aa7cec39545fdd6662d1; \>= 4.19.325, \< 4.20; …
- Anyone running Linux \>= 5.4.287, \< 5.4.289; \>= 5.10.231, \< 5.10.233; \>= 5.15.174, \< 5.15.176; \>= 6.1.120, \< 6.1.123; \>= 6.6.64, \< 6.6.69; \>= 6.12.2, \< 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.

## Affected and fixed versions

- Linux: \>= 22fbbc37edb840fd420fadf670366be9bf028426, \< ca9818554b0f33e87f38e4bfa2dac056692d46cc; \>= 54cb5fa850f9306d84e49a3db44b7a7eb5536cd1, \< 1562871ef613fa9492aa0310933eff785166a90e; \>= 5fe7709251e334cc27618473299c48340cecd3c8, \< 3d825a241e65f7e3072978729e79d735ec40b80e; \>= 24cbc37e837fd9e31e5024480b779207d1d99f1d, \< 6ea15205d7e2b811fbbdf79783f686f58abfb4b7; \>= f1290871c8aaeb13029390a2b6e5c05733a1be6f, \< dd45c87782738715d5e7c167f8dabf0814a7394a; \>= 8ac19ec818c548c5788da5926dcc8af96fad4bb1, \< d2f090ea57f8d6587e09d4066f740a8617767b3d; \>= 6d734f1bfc336aaea91313a5632f2f197608fadd, \< d8e4771f99c0400a1873235704b28bb803c83d17; 2014fcea19ec27df033359a0f42db0e8ed4290a8; bdd11a04d102f8310812aa7cec39545fdd6662d1; \>= 4.19.325, \< 4.20; … (cvelist)
- Linux: \>= 5.4.287, \< 5.4.289; \>= 5.10.231, \< 5.10.233; \>= 5.15.174, \< 5.15.176; \>= 6.1.120, \< 6.1.123; \>= 6.6.64, \< 6.6.69; \>= 6.12.2, \< 6.12.8 (cvelist)

## Mitigation

- Upgrade Linux to 6.12.8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56766. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56766.md
Affected: Linux >= 22fbbc37edb840fd420fadf670366be9bf028426, < ca9818554b0f33e87f38e4bfa2dac056692d46cc; >= 54cb5fa850f9306d84e49a3db44b7a7eb5536cd1, < 1562871ef613fa9492aa0310933eff785166a90e; >= 5fe7709251e334cc27618473299c48340cecd3c8, < 3d825a241e65f7e3072978729e79d735ec40b80e; >= 24cbc37e837fd9e31e50244…
Fixed in: Linux 1562871ef613fa9492aa0310933eff785166a90e, Linux 3d825a241e65f7e3072978729e79d735ec40b80e, Linux 6ea15205d7e2b811fbbdf79783f686f58abfb4b7, Linux 4.20, Linux 5.4.289, Linux 5.10.233, Linux 5.15.176, Linux 6.1.123, Linux 6.6.69, Linux 6.12.8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56766 being exploited?

There is no confirmed exploitation: CVE-2024-56766 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-56766?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56766?

Linux \>= 22fbbc37edb840fd420fadf670366be9bf028426, \< ca9818554b0f33e87f38e4bfa2dac056692d46cc; \>= 54cb5fa850f9306d84e49a3db44b7a7eb5536cd1, \< 1562871ef613fa9492aa0310933eff785166a90e; \>= 5fe7709251e334cc27618473299c48340cecd3c8, \< 3d825a241e65f7e3072978729e79d735ec40b80e; \>= 24cbc37e837fd9e31e5024480b779207d1d99f1d, \< 6ea15205d7e2b811fbbdf79783f686f58abfb4b7; \>= f1290871c8aaeb13029390a2b6e5c05733a1be6f, \< dd45c87782738715d5e7c167f8dabf0814a7394a; \>= 8ac19ec818c548c5788da5926dcc8af96fad4bb1, \< d2f090ea57f8d6587e09d4066f740a8617767b3d; \>= 6d734f1bfc336aaea91313a5632f2f197608fadd, \< d8e4771f99c0400a1873235704b28bb803c83d17; 2014fcea19ec27df033359a0f42db0e8ed4290a8; bdd11a04d102f8310812aa7cec39545fdd6662d1; \>= 4.19.325, \< 4.20; …; Linux \>= 5.4.287, \< 5.4.289; \>= 5.10.231, \< 5.10.233; \>= 5.15.174, \< 5.15.176; \>= 6.1.120, \< 6.1.123; \>= 6.6.64, \< 6.6.69; \>= 6.12.2, \< 6.12.8.

### Is there a fix for CVE-2024-56766?

Yes. Fixed in Linux 1562871ef613fa9492aa0310933eff785166a90e, Linux 3d825a241e65f7e3072978729e79d735ec40b80e, Linux 6ea15205d7e2b811fbbdf79783f686f58abfb4b7, Linux 4.20, Linux 5.4.289, Linux 5.10.233, Linux 5.15.176, Linux 6.1.123, Linux 6.6.69, Linux 6.12.8. Upgrade Linux to 6.12.8 or later.

### How do I check if I'm affected by CVE-2024-56766?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://git.kernel.org/stable/c/ca9818554b0f33e87f38e4bfa2dac056692d46cc>
- other: <https://git.kernel.org/stable/c/1562871ef613fa9492aa0310933eff785166a90e>
- other: <https://git.kernel.org/stable/c/3d825a241e65f7e3072978729e79d735ec40b80e>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56766>

HTML: <https://flawdb.com/CVE-2024-56766> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56766>
