CVE-2024-56766
mtd: rawnand: fix double free in atmel_pmecc_create_user()
Check your servers for CVE-2024-56766
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-56766 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.5% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 22fbbc37edb840fd420fadf670366be9bf028426, before ca9818554b0f33e87f38e4bfa2dac056692d46cc affected from 54cb5fa850f9306d84e49a3db44b7a7eb5536cd1, before 1562871ef613fa9492aa0310933eff785166a90e affected from 5fe7709251e334cc27618473299c48340cecd3c8, before 3d825a241e65f7e3072978729e79d735ec40b80e affected from 24cbc37e837fd9e31e5024480b779207d1d99f1d, before 6ea15205d7e2b811fbbdf79783f686f58abfb4b7 affected from f1290871c8aaeb13029390a2b6e5c05733a1be6f, before dd45c87782738715d5e7c167f8dabf0814a7394a affected from 8ac19ec818c548c5788da5926dcc8af96fad4bb1, before d2f090ea57f8d6587e09d4066f740a8617767b3d affected from 6d734f1bfc336aaea91313a5632f2f197608fadd, before d8e4771f99c0400a1873235704b28bb803c83d17 affected 2014fcea19ec27df033359a0f42db0e8ed4290a8 affected bdd11a04d102f8310812aa7cec39545fdd6662d1 affected from 4.19.325, before 4.20 affected from 6.11.11, before 6.12
Other versions: unaffected
|
| Linux |
affected from 5.4.287, before 5.4.289 affected from 5.10.231, before 5.10.233 affected from 5.15.174, before 5.15.176 affected from 6.1.120, before 6.1.123 affected from 6.6.64, before 6.6.69 affected from 6.12.2, before 6.12.8
Other versions: unaffected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-56766 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-56766
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-56766
trivy image --scanners vuln IMAGE | grep CVE-2024-56766
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/ca9818554b0f33e87f38e4bfa2dac056692d46cc git.kernel.org
- https://git.kernel.org/stable/c/1562871ef613fa9492aa0310933eff785166a90e git.kernel.org
- https://git.kernel.org/stable/c/3d825a241e65f7e3072978729e79d735ec40b80e git.kernel.org
- https://git.kernel.org/stable/c/6ea15205d7e2b811fbbdf79783f686f58abfb4b7 git.kernel.org
- https://git.kernel.org/stable/c/dd45c87782738715d5e7c167f8dabf0814a7394a git.kernel.org
- https://git.kernel.org/stable/c/d2f090ea57f8d6587e09d4066f740a8617767b3d git.kernel.org
- https://git.kernel.org/stable/c/d8e4771f99c0400a1873235704b28bb803c83d17 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html lists.debian.org
Source: the record CVE-2024-56766 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse