Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47425
HistoryMay 21, 2024 - 3:04 p.m.

CVE-2021-47425 i2c: acpi: fix resource leak in reconfiguration device addition

2024-05-2115:04:11
Linux
www.cve.org
linux kernel
vulnerability
resolved
i2c
acpi
resource leak
reconfiguration
device addition
acpi_i2c_find_adapter_by_handle
bus_find_device
reference count
adapter unremovable
client
of

6.5 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.4%

In the Linux kernel, the following vulnerability has been resolved:

i2c: acpi: fix resource leak in reconfiguration device addition

acpi_i2c_find_adapter_by_handle() calls bus_find_device() which takes a
reference on the adapter which is never released which will result in a
reference count leak and render the adapter unremovable. Make sure to
put the adapter after creating the client in the same manner that we do
for OF.

[wsa: fixed title]

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/i2c/i2c-core-acpi.c"
    ],
    "versions": [
      {
        "version": "525e6fabeae2",
        "lessThan": "b8090a84d775",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "525e6fabeae2",
        "lessThan": "3d9d458a8aaa",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "525e6fabeae2",
        "lessThan": "60bacf259e8c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "525e6fabeae2",
        "lessThan": "f86de018fd7a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "525e6fabeae2",
        "lessThan": "90f1077c9184",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "525e6fabeae2",
        "lessThan": "6558b646ce1c",
        "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/i2c/i2c-core-acpi.c"
    ],
    "versions": [
      {
        "version": "4.8",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.8",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.14.251",
        "lessThanOrEqual": "4.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.211",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.153",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.73",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.14.12",
        "lessThanOrEqual": "5.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.5 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.4%