CVE-2024-38611
JSON

7.3high

media: i2c: et8ek8: Don't strip remove function when driver is builtin

Severity
7.3high CVSS:3.1 by Linux
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: media: i2c: et8ek8: Don't strip remove function when driver is builtin Using __exit for the remove function results in the remove callback being discarded with CONFIG_VIDEO_ET8EK8=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/media/i2c/et8ek8/et8ek8: section mismatch in reference: et8ek8_i2c_driver+0x10 (section: .data) -> et8ek8_remove (section: .exit.text)

Affected

Product or packageVersionsReported by
Linux Linuxfrom c5254e72b8edc2ca0a98703e92e8c34959343d2c before 963523600d9f1e36bc35ba774c2493d6baa4dd8f, from c5254e72b8edc2ca0a98703e92e8c34959343d2c before ece3fc1c10197052044048bea4f13cfdcf25b416, from c5254e72b8edc2ca0a98703e92e8c34959343d2c before 04d1086a62ac492ebb6bb0c94c1c8cb55f5d1f36, from c5254e72b8edc2ca0a98703e92e8c34959343d2c before c1a3803e5bb91c13e9ad582003e4288f67f06cd9, from c5254e72b8edc2ca0a98703e92e8c34959343d2c before 43fff07e4b1956d0e5cf23717507e438278ea3d9, from c5254e72b8edc2ca0a98703e92e8c34959343d2c before 904db2ba44ae60641b6378c5013254d09acf5e80, from c5254e72b8edc2ca0a98703e92e8c34959343d2c before 545b215736c5c4b354e182d99c578a472ac9bfce, 4.11
Not affected: before 4.11, from 5.10.236 up to 5.10.*, from 5.15.180 up to 5.15.*, from 6.1.133 up to 6.1.*, from 6.6.33 up to 6.6.*, from 6.8.12 up to 6.8.*
CVE List
linux linux_kernelfrom 4.11 before 5.10.236, from 5.11 before 5.15.180, from 5.16 before 6.1.133, from 6.2 before 6.6.33, from 6.7 before 6.8.12, from 6.9 before 6.9.3NVD

All scores

Linux7.3high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: media: i2c: et8ek8: Don't strip remove function when driver is builtin Using __exit for the remove function results in the remove callback being discarded with CONFIG_VIDEO_ET8EK8=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/media/i2c/et8ek8/et8ek8: section mismatch in reference: et8ek8_i2c_driver+0x10 (section: .data) -> et8ek8_remove (section: .exit.text)

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: medios: i2c: et8ek8: No eliminar la función de eliminación cuando el controlador está integrado. El uso de __exit para la función de eliminación hace que la devolución de llamada de eliminación se descarte con CONFIG_VIDEO_ET8EK8=y. Cuando un dispositivo de este tipo se desvincula (por ejemplo, usando sysfs o hotplug), el controlador simplemente se elimina sin que se realice la limpieza. Esto da como resultado fugas de recursos. Solucionarlo compilando la devolución de llamada de eliminación incondicionalmente. Esto también corrige una advertencia de modpost W=1: ADVERTENCIA: modpost: drivers/media/i2c/et8ek8/et8ek8: sección no coincide en referencia: et8ek8_i2c_driver+0x10 (sección: .data) -> et8ek8_remove (sección: .exit.text)

References

Sources

SourceRecordLicence
CVE ListCVE-2024-38611 changed 2026-08-05CVE Terms of Use
NVDCVE-2024-38611 changed 2026-08-04Public domain