CWE
770
Advisory Published
CVE Published
Updated

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

First published: Fri Jul 05 2024(Updated: )

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)

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Linux kernel<2.6.33
Linux Linux kernel>=5.10<5.10.221
Linux Linux kernel>=5.15<5.15.162
Linux Linux kernel>=6.1<6.1.95
Linux Linux kernel>=6.6<6.6.34
Linux Linux kernel>=6.9<6.9.5
debian/linux
5.10.223-1
6.1.106-3
6.1.99-1
6.10.6-1
6.10.7-1
ubuntu/linux<4.15.0-228.240
4.15.0-228.240
ubuntu/linux<5.4.0-193.213
5.4.0-193.213
ubuntu/linux<5.15.0-119.129
5.15.0-119.129
ubuntu/linux<6.8.0-41.41
6.8.0-41.41
ubuntu/linux<6.10~<6.8.
6.10~
6.8.
ubuntu/linux<4.4.0-258.292
4.4.0-258.292
ubuntu/linux-aws<4.15.0-1172.185
4.15.0-1172.185
ubuntu/linux-aws<5.4.0-1131.141
5.4.0-1131.141
ubuntu/linux-aws<5.15.0-1068.74
5.15.0-1068.74
ubuntu/linux-aws<6.8.0-1014.15
6.8.0-1014.15
ubuntu/linux-aws<4.4.0-1135.141
4.4.0-1135.141
ubuntu/linux-aws<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-aws<4.4.0-1173.188
4.4.0-1173.188
ubuntu/linux-aws-5.15<5.15.0-1068.74~20.04.1
5.15.0-1068.74~20.04.1
ubuntu/linux-aws-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-aws-5.4<5.4.0-1131.141~18.04.1
5.4.0-1131.141~18.04.1
ubuntu/linux-aws-5.4<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-aws-6.5<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-aws-fips<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-aws-hwe<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-aws-hwe<4.15.0-1172.185~16.04.1
4.15.0-1172.185~16.04.1
ubuntu/linux-azure<5.4.0-1136.143
5.4.0-1136.143
ubuntu/linux-azure<5.15.0-1071.80
5.15.0-1071.80
ubuntu/linux-azure<6.8.0-1013.15
6.8.0-1013.15
ubuntu/linux-azure<4.15.0-1180.195~14.04.1
4.15.0-1180.195~14.04.1
ubuntu/linux-azure<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-azure<4.15.0-1180.195~16.04.1
4.15.0-1180.195~16.04.1
ubuntu/linux-azure-4.15<4.15.0-1180.195
4.15.0-1180.195
ubuntu/linux-azure-4.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-azure-5.15<5.15.0-1071.80~20.04.1
5.15.0-1071.80~20.04.1
ubuntu/linux-azure-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-azure-5.4<5.4.0-1136.143~18.04.1
5.4.0-1136.143~18.04.1
ubuntu/linux-azure-5.4<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-azure-6.5<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-azure-fde<5.15.0-1071.80.1
5.15.0-1071.80.1
ubuntu/linux-azure-fde<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-azure-fde-5.15<5.15.0-1071.80~20.04.1.1
5.15.0-1071.80~20.04.1.1
ubuntu/linux-azure-fde-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-azure-fips<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-bluefield<5.4.0-1091.98
5.4.0-1091.98
ubuntu/linux-bluefield<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-fips<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-gcp<5.4.0-1135.144
5.4.0-1135.144
ubuntu/linux-gcp<5.15.0-1067.75
5.15.0-1067.75
ubuntu/linux-gcp<6.8.0-1013.14
6.8.0-1013.14
ubuntu/linux-gcp<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-gcp<4.15.0-1165.182~16.04.1
4.15.0-1165.182~16.04.1
ubuntu/linux-gcp-4.15<4.15.0-1165.182
4.15.0-1165.182
ubuntu/linux-gcp-4.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-gcp-5.15<5.15.0-1067.75~20.04.1
5.15.0-1067.75~20.04.1
ubuntu/linux-gcp-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-gcp-5.4<5.4.0-1135.144~18.04.1
5.4.0-1135.144~18.04.1
ubuntu/linux-gcp-5.4<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-gcp-6.5<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-gcp-fips<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-gke<5.15.0-1065.71
5.15.0-1065.71
ubuntu/linux-gke<6.8.0-1009.12
6.8.0-1009.12
ubuntu/linux-gke<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-gkeop<5.4.0-1098.102
5.4.0-1098.102
ubuntu/linux-gkeop<5.15.0-1051.58
5.15.0-1051.58
ubuntu/linux-gkeop<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-gkeop-5.15<5.15.0-1051.58~20.04.1
5.15.0-1051.58~20.04.1
ubuntu/linux-gkeop-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-hwe<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-hwe<4.15.0-228.240~16.04.1
4.15.0-228.240~16.04.1
ubuntu/linux-hwe-5.15<5.15.0-119.129~20.04.1
5.15.0-119.129~20.04.1
ubuntu/linux-hwe-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-hwe-5.4<5.4.0-193.213~18.04.1
5.4.0-193.213~18.04.1
ubuntu/linux-hwe-5.4<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-hwe-6.5<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-ibm<5.4.0-1078.83
5.4.0-1078.83
ubuntu/linux-ibm<5.15.0-1061.64
5.15.0-1061.64
ubuntu/linux-ibm<6.8.0-1011.11
6.8.0-1011.11
ubuntu/linux-ibm<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-ibm-5.15<5.15.0-1061.64~20.04.1
5.15.0-1061.64~20.04.1
ubuntu/linux-ibm-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-ibm-5.4<5.4.0-1078.83~18.04.1
5.4.0-1078.83~18.04.1
ubuntu/linux-ibm-5.4<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-intel<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-intel-iot-realtime<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-intel-iotg<5.15.0-1063.69
5.15.0-1063.69
ubuntu/linux-intel-iotg<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-intel-iotg-5.15<5.15.0-1063.69~20.04.1
5.15.0-1063.69~20.04.1
ubuntu/linux-intel-iotg-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-iot<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-kvm<4.15.0-1155.160
4.15.0-1155.160
ubuntu/linux-kvm<5.4.0-1119.127
5.4.0-1119.127
ubuntu/linux-kvm<5.15.0-1065.70
5.15.0-1065.70
ubuntu/linux-kvm<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-kvm<4.4.0-1136.146
4.4.0-1136.146
ubuntu/linux-laptop<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-lowlatency<5.15.0-119.129
5.15.0-119.129
ubuntu/linux-lowlatency<6.8.0-41.41.1
6.8.0-41.41.1
ubuntu/linux-lowlatency<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-lowlatency-hwe-5.15<5.15.0-119.129~20.04.1
5.15.0-119.129~20.04.1
ubuntu/linux-lowlatency-hwe-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-lowlatency-hwe-6.5<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-lowlatency-hwe-6.8<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-lts-xenial<4.4.0-258.292~14.04.2
4.4.0-258.292~14.04.2
ubuntu/linux-lts-xenial<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-nvidia<5.15.0-1063.64
5.15.0-1063.64
ubuntu/linux-nvidia<6.8.0-1012.12
6.8.0-1012.12
ubuntu/linux-nvidia<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-nvidia-6.5<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-nvidia-6.8<6.8.0-1012.12~22.04.1
6.8.0-1012.12~22.04.1
ubuntu/linux-nvidia-6.8<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-nvidia-lowlatency<6.8.0-1012.12.1
6.8.0-1012.12.1
ubuntu/linux-nvidia-lowlatency<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-oem-6.5<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-oem-6.8<6.8.0-1011.11
6.8.0-1011.11
ubuntu/linux-oem-6.8<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-oracle<4.15.0-1134.145
4.15.0-1134.145
ubuntu/linux-oracle<5.4.0-1130.139
5.4.0-1130.139
ubuntu/linux-oracle<5.15.0-1066.72
5.15.0-1066.72
ubuntu/linux-oracle<6.8.0-1011.11
6.8.0-1011.11
ubuntu/linux-oracle<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-oracle<4.15.0-1134.145~16.04.1
4.15.0-1134.145~16.04.1
ubuntu/linux-oracle-5.15<5.15.0-1066.72~20.04.1
5.15.0-1066.72~20.04.1
ubuntu/linux-oracle-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-oracle-5.4<5.4.0-1130.139~18.04.1
5.4.0-1130.139~18.04.1
ubuntu/linux-oracle-5.4<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-oracle-6.5<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-raspi<5.4.0-1115.127
5.4.0-1115.127
ubuntu/linux-raspi<5.15.0-1061.64
5.15.0-1061.64
ubuntu/linux-raspi<6.8.0-1010.11
6.8.0-1010.11
ubuntu/linux-raspi<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-raspi-5.4<5.4.0-1115.127~18.04.1
5.4.0-1115.127~18.04.1
ubuntu/linux-raspi-5.4<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-raspi-realtime<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-realtime<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-riscv<6.8.0-41.41.1
6.8.0-41.41.1
ubuntu/linux-riscv<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-riscv-5.15<5.15.0-1064.68~20.04.1
5.15.0-1064.68~20.04.1
ubuntu/linux-riscv-5.15<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-riscv-6.5<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-riscv-6.8<6.8.0-41.41.1~22.04.1
6.8.0-41.41.1~22.04.1
ubuntu/linux-riscv-6.8<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-starfive<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-starfive-6.5<6.10~<6.8.
6.10~
6.8.
ubuntu/linux-xilinx-zynqmp<5.4.0-1050.54
5.4.0-1050.54
ubuntu/linux-xilinx-zynqmp<6.10~<6.8.
6.10~
6.8.

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203