CVE-2024-56766 json
mtd: rawnand: fix double free in atmel_pmecc_create_user()
published last yr. modified 4mo ago also EUVD-2024-53409
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 12%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 4.20, 5.4.289, 5.10.233, 5.15.176, 6.1.123, 6.6.69, 6.12, 6.12.8
- linux Debian 12 6.1.123-1
- linux Debian 14, Debian 13 6.12.8-1
debian advisories DEBIAN-CVE-2024-56766
- linux-hwe-6.11 Ubuntu 24.04 LTS 6.11.0-21.21~24.04.1
- linux-oem-6.11 Ubuntu 24.04 LTS 6.11.0-1017.17
ubuntu advisories UBUNTU-CVE-2024-56766
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-25.1
- kernel-source-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-25.1
- kernel-livepatch-MICRO-6-0-RT_Update_5 Linux Micro 6.1, Linux Micro 6.0 1-1.1
- kernel-source Linux Micro 6.1, Linux Micro 6.0 6.4.0-25.1
- kernel-default Linux Micro 6.1, Linux Micro 6.0 6.4.0-25.1
- kernel-kvmsmall Linux Micro 6.1, Linux Micro 6.0 6.4.0-25.1
- kernel-default-base Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1.21.4
- kernel-livepatch-MICRO-6-0_Update_5 Linux Micro 6.1, Linux Micro 6.0 1-1.2
suse advisories SUSE-SU-2025:20166-1SUSE-SU-2025:20249-1SUSE-SU-2025:20165-1SUSE-SU-2025:20248-1SUSE-SU-2025:0557-1SUSE-SU-2025:0499-1
- kernel Azure Linux 3.0 6.6.76.1-1
- kernel CBL-Mariner 2.0 5.15.176.3-1
azure linux advisories AZL-55303AZL-56544
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- git.kernel.org/stable/c/ca9818554b0f33e87f38e4bfa2dac056692d46cc commit
- git.kernel.org/stable/c/1562871ef613fa9492aa0310933eff785166a90e commit
- git.kernel.org/stable/c/3d825a241e65f7e3072978729e79d735ec40b80e commit
- git.kernel.org/stable/c/6ea15205d7e2b811fbbdf79783f686f58abfb4b7 commit
- git.kernel.org/stable/c/dd45c87782738715d5e7c167f8dabf0814a7394a commit
- git.kernel.org/stable/c/d2f090ea57f8d6587e09d4066f740a8617767b3d commit
- git.kernel.org/stable/c/d8e4771f99c0400a1873235704b28bb803c83d17 commit
Is CVE-2024-56766 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-56766 updated cvss 7.8
kernel: mtd: rawnand: fix double free in atmel_pmecc_create_user()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 12% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-415 Double Free
- Technology feeds
References
- git.kernel.org /stable/c/ca9818554b0f33e87f38e4bfa2dac056692d46cc
- git.kernel.org /stable/c/1562871ef613fa9492aa0310933eff785166a90e
- git.kernel.org /stable/c/3d825a241e65f7e3072978729e79d735ec40b80e
-
git.kernel.org
/stable/c/6ea15205d7e2b811fbbdf79783f686f58abfb4b7
patch
-
git.kernel.org
/stable/c/dd45c87782738715d5e7c167f8dabf0814a7394a
patch
-
git.kernel.org
/stable/c/d2f090ea57f8d6587e09d4066f740a8617767b3d
patch
-
git.kernel.org
/stable/c/d8e4771f99c0400a1873235704b28bb803c83d17
patch
- lists.debian.org /debian-lts-announce/2025/03/msg00001.html
- lists.debian.org /debian-lts-announce/2025/03/msg00002.html
Sources
- CVE List CVE-2024-56766
- NVD CVE-2024-56766
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.