{"id":"CVE-2026-99947","summary":"i2c: acpi: Fix adapter reference leak in i2c_acpi_new_device_by_fwnode()","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.","modified":"2026-11-30T15:02:32.762472498Z","published":"2026-11-30T13:18:32.214Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99947.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"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"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99947.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99947"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"605f8fc2244236f8d6bf15bcc0586644af3a32e7"},{"fixed":"cee2d6bbd15b72bae33a4ef0c6849889eecb6ad3"},{"fixed":"43a4c86faae0f977e734e57ba40fddc5f1d62738"},{"fixed":"c42361efcf0698865921e58fe2dcb89435b7d95a"},{"fixed":"390e4fb6353ad7995ca5b07ff34580b71fb72fc0"},{"fixed":"ef2fbc34566643f3846f9ca77a408e867f9055e3"},{"fixed":"2fec4e4547ee28e5ebe54c34d67b4afcaf3fc0a7"},{"fixed":"14f3be0ba056e696dbd3c21bbd10a144aca15c62"},{"fixed":"a65917d0a22f9b10694853b725f9cd399fc3ef4d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99947.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99947.json"}}],"schema_version":"1.9.2"}