Lucene search

K
cvelistLinuxCVELIST:CVE-2024-38611
HistoryJun 19, 2024 - 1:56 p.m.

CVE-2024-38611 media: i2c: et8ek8: Don't strip remove function when driver is builtin

2024-06-1913:56:12
Linux
www.cve.org
1
linux kernel
vulnerability
media driver
i2c
et8ek8
remove function
resource leaks

0.0004 Low

EPSS

Percentile

15.7%

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)

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/media/i2c/et8ek8/et8ek8_driver.c"
    ],
    "versions": [
      {
        "version": "c5254e72b8ed",
        "lessThan": "c1a3803e5bb9",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c5254e72b8ed",
        "lessThan": "43fff07e4b19",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c5254e72b8ed",
        "lessThan": "904db2ba44ae",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c5254e72b8ed",
        "lessThan": "545b215736c5",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/media/i2c/et8ek8/et8ek8_driver.c"
    ],
    "versions": [
      {
        "version": "4.11",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.11",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.33",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.12",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.3",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10-rc1",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2024-38611