Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-56766

HIGH 7.8EPSS 19%

mtd: rawnand: fix double free in atmel_pmecc_create_user()

Mitigation

  • Upgrade Linux to 6.12.8 or later.

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

Vulnerability facts

Affected
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
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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.34% chance of exploitation in 30 days (percentile 19, 2026-11-26)
CWE
CWE-415
Published
Modified

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

Package / productAffectedFixedSource
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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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-26).

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.

Sponsors