{"id":"CVE-2026-99947","aliases":["CVE-2026-99947"],"related":[],"kind":"vulnerability","state":"published","title":"i2c: acpi: Fix adapter reference leak in i2c_acpi_new_device_by_fwnode()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:18:32.214Z","modified":"2026-11-30T14:20:31.870Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"605f8fc2244236f8d6bf15bcc0586644af3a32e7","fixed":"cee2d6bbd15b72bae33a4ef0c6849889eecb6ad3","status":"affected"},{"type":"git","introduced":"605f8fc2244236f8d6bf15bcc0586644af3a32e7","fixed":"43a4c86faae0f977e734e57ba40fddc5f1d62738","status":"affected"},{"type":"git","introduced":"605f8fc2244236f8d6bf15bcc0586644af3a32e7","fixed":"c42361efcf0698865921e58fe2dcb89435b7d95a","status":"affected"},{"type":"git","introduced":"605f8fc2244236f8d6bf15bcc0586644af3a32e7","fixed":"390e4fb6353ad7995ca5b07ff34580b71fb72fc0","status":"affected"},{"type":"git","introduced":"605f8fc2244236f8d6bf15bcc0586644af3a32e7","fixed":"ef2fbc34566643f3846f9ca77a408e867f9055e3","status":"affected"},{"type":"git","introduced":"605f8fc2244236f8d6bf15bcc0586644af3a32e7","fixed":"2fec4e4547ee28e5ebe54c34d67b4afcaf3fc0a7","status":"affected"},{"type":"git","introduced":"605f8fc2244236f8d6bf15bcc0586644af3a32e7","fixed":"14f3be0ba056e696dbd3c21bbd10a144aca15c62","status":"affected"},{"type":"git","introduced":"605f8fc2244236f8d6bf15bcc0586644af3a32e7","fixed":"a65917d0a22f9b10694853b725f9cd399fc3ef4d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/cee2d6bbd15b72bae33a4ef0c6849889eecb6ad3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/43a4c86faae0f977e734e57ba40fddc5f1d62738","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c42361efcf0698865921e58fe2dcb89435b7d95a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/390e4fb6353ad7995ca5b07ff34580b71fb72fc0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ef2fbc34566643f3846f9ca77a408e867f9055e3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2fec4e4547ee28e5ebe54c34d67b4afcaf3fc0a7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/14f3be0ba056e696dbd3c21bbd10a144aca15c62","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a65917d0a22f9b10694853b725f9cd399fc3ef4d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99947","url":"https://www.cve.org/CVERecord?id=CVE-2026-99947","licence":"CVE Terms of Use","modified":"2026-11-30T13:18:32.214Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99947","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99947","licence":"Public domain","modified":"2026-11-30T14:20:31.870Z"}],"updatedAt":"2026-11-30T14:33:45.395Z","epss":{"score":0.00388,"percentile":0.35014,"date":"2026-12-01T12:00:22.000Z"}}