# CVE-2024-39484: mmc: davinci: Don't strip remove function when driver is builtin

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-07-05T06:55:11.970Z
- Modified: 2026-06-17T07:42:01.027Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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 CONFIG_MMC_DAVINCI=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/davinci_mmc: section mismatch in
reference: davinci_mmcsd_driver+0x10 (section: .data) ->
davinci_mmcsd_remove (section: .exit.text)

(As written by CVE List.)

## Affected

- Linux Linux: from b4cff4549b7a8c5fc8b88e3493b6287555f0512c before 6ff7cfa02baabec907f6f29ea76634e6256d2ec4; from b4cff4549b7a8c5fc8b88e3493b6287555f0512c before aea35157bb9b825faa0432bd0f7fbea37ff39aa1; from b4cff4549b7a8c5fc8b88e3493b6287555f0512c before 5ee241f72edc6dce5051a5f100eab6cc019d873e; from b4cff4549b7a8c5fc8b88e3493b6287555f0512c before 7590da4c04dd4aa9c262da0231e978263861c6eb; from b4cff4549b7a8c5fc8b88e3493b6287555f0512c before 1d5ed0efe51d36b9ae9b64f133bf41cdbf56f584; from b4cff4549b7a8c5fc8b88e3493b6287555f0512c before 55c421b364482b61c4c45313a535e61ed5ae4ea3; 2.6.33 (not affected: before 2.6.33; from 5.10.221 up to 5.10.*; from 5.15.162 up to 5.15.*; from 6.1.95 up to 6.1.*; from 6.6.34 up to 6.6.*; from 6.9.5 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: before 2.6.33; from 5.10 before 5.10.221; from 5.15 before 5.15.162; from 6.1 before 6.1.95; from 6.6 before 6.6.34; from 6.9 before 6.9.5

## References

- <https://git.kernel.org/stable/c/6ff7cfa02baabec907f6f29ea76634e6256d2ec4> (mailing-list, patch)
- <https://git.kernel.org/stable/c/aea35157bb9b825faa0432bd0f7fbea37ff39aa1> (mailing-list, patch)
- <https://git.kernel.org/stable/c/5ee241f72edc6dce5051a5f100eab6cc019d873e> (mailing-list, patch)
- <https://git.kernel.org/stable/c/7590da4c04dd4aa9c262da0231e978263861c6eb> (mailing-list, patch)
- <https://git.kernel.org/stable/c/1d5ed0efe51d36b9ae9b64f133bf41cdbf56f584> (mailing-list, patch)
- <https://git.kernel.org/stable/c/55c421b364482b61c4c45313a535e61ed5ae4ea3> (mailing-list, patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-39484](https://www.cve.org/CVERecord?id=CVE-2024-39484), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-39484](https://nvd.nist.gov/vuln/detail/CVE-2024-39484), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-39484 · Whole record: https://cve.day/CVE-2024-39484.json · Rebuilt by cve.day 2026-11-25T22:58:42.521Z
