CVE-2024-39484: mmc: davinci: Don't strip remove function when driver is builtin
In the Linux kernel, the following vulnerability has been resolved:
mmc: davinci: Don't strip remove function when driver is builtin
Using exit for the remove function results in the remove callback being discarded with CONFIGMMCDAVINCI=y. When such a device gets unbound (e.g. using sysfs or hotplug), the driver is just removed without the cleanup being performed. This results in resource leaks. Fix it by compiling in the remove callback unconditionally.
This also fixes a W=1 modpost warning:
WARNING: modpost: drivers/mmc/host/davincimmc: section mismatch in reference: davincimmcsddriver+0x10 (section: .data) -> davincimmcsdremove (section: .exit.text)
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Configuration
Compile the davinci_mmcsd_remove callback unconditionally; do not discard it when CONFIG_MMC_DAVINCI=y.
Linux kernel mmc davinci driver remove callback compilation = unconditionally compiled in
Event History
Frequently Asked Questions
What is the severity of CVE-2024-39484?
CVE-2024-39484 is considered a medium severity vulnerability affecting the Linux kernel.
How do I fix CVE-2024-39484?
To fix CVE-2024-39484, update your Linux kernel to version 5.10.223-1 or later, or to recommended versions from your distribution.
What are the affected software versions for CVE-2024-39484?
CVE-2024-39484 affects Linux kernel versions up to 2.6.33, and from 5.10 to 5.10.221, 5.15 to 5.15.162, 6.1 to 6.1.95, 6.6 to 6.6.34, and 6.9 to 6.9.5.
What type of systems are impacted by CVE-2024-39484?
CVE-2024-39484 impacts systems running affected versions of the Linux kernel, particularly those using the davinci MMC driver.
Is CVE-2024-39484 a remote exploit?
CVE-2024-39484 is not specifically a remote exploit, as it primarily affects local operations involving device removal in the kernel.