GHSA-X2G2-7QJ6-68FW

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

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

i2c: acpi: Fix adapter reference leak in i2c_acpi_new_device_by_fwnode()

i2c_acpi_new_device_by_fwnode() obtains an i2c_adapter through i2c_acpi_find_adapter_by_handle(). That helper uses bus_find_device() internally, so it returns the adapter with a reference held:

    adapter = i2c_verify_adapter(dev);
    if (!adapter)
            put_device(dev);

    return adapter;

The reference is only put on the failure path inside that helper. The caller owns it otherwise. i2c_acpi_new_device_by_fwnode() never drops it, neither on the -EPROBE_DEFER path nor after i2c_new_client_device(), so every call leaks one reference on the adapter and the adapter can never be released.

i2c_new_client_device() does not consume that reference. It registers the new client with the adapter as its parent, and device_add() takes its own reference on the parent, which device_del() releases when the client goes away. The reference obtained by the lookup is a separate one and has to be dropped here.

i2c_acpi_notify() in the same file already does exactly this. It takes the adapter from the same helper, registers the client through i2c_acpi_register_device(), which calls i2c_new_client_device(), and then puts the reference.

i2c_new_client_device() gives the client its own reference on the adapter, so ours can be dropped unconditionally.

Found by code review.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99947"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:20:31Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ni2c: acpi: Fix adapter reference leak in i2c_acpi_new_device_by_fwnode()\n\ni2c_acpi_new_device_by_fwnode() obtains an i2c_adapter through\ni2c_acpi_find_adapter_by_handle(). That helper uses bus_find_device()\ninternally, so it returns the adapter with a reference held:\n\n        adapter = i2c_verify_adapter(dev);\n        if (!adapter)\n                put_device(dev);\n\n        return adapter;\n\nThe reference is only put on the failure path inside that helper. The\ncaller owns it otherwise. i2c_acpi_new_device_by_fwnode() never drops\nit, neither on the -EPROBE_DEFER path nor after\ni2c_new_client_device(), so every call leaks one reference on the\nadapter and the adapter can never be released.\n\ni2c_new_client_device() does not consume that reference. It registers\nthe new client with the adapter as its parent, and device_add() takes\nits own reference on the parent, which device_del() releases when the\nclient goes away.  The reference obtained by the lookup is a separate\none and has to be dropped here.\n\ni2c_acpi_notify() in the same file already does exactly this. It takes\nthe adapter from the same helper, registers the client through\ni2c_acpi_register_device(), which calls i2c_new_client_device(), and\nthen puts the reference.\n\ni2c_new_client_device() gives the client its own reference on the\nadapter, so ours can be dropped unconditionally.\n\nFound by code review.",
  "id": "GHSA-x2g2-7qj6-68fw",
  "modified": "2026-11-30T15:32:50Z",
  "published": "2026-11-30T15:32:50Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99947"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/14f3be0ba056e696dbd3c21bbd10a144aca15c62"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2fec4e4547ee28e5ebe54c34d67b4afcaf3fc0a7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/390e4fb6353ad7995ca5b07ff34580b71fb72fc0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/43a4c86faae0f977e734e57ba40fddc5f1d62738"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a65917d0a22f9b10694853b725f9cd399fc3ef4d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c42361efcf0698865921e58fe2dcb89435b7d95a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cee2d6bbd15b72bae33a4ef0c6849889eecb6ad3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ef2fbc34566643f3846f9ca77a408e867f9055e3"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.