{"id":"CVE-2026-89900","state":"PUBLISHED","title":"media: cec: core: Fix kmemleak due to missed rc_free_device() call","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: cec: core: Fix kmemleak due to missed rc_free_device() call\n\nThe commit dccc0c3ddf8f (\"media: rc: fix race between unregister and\nurb/irq callbacks\") removed the implicit call to rc_free_device() from\nrc_unregister_device(). However, the commit missed to remove the NULL\nassignment of adap->rc that is now causing rc_free_device() to never be\ncalled on an allocated rc device.\n\nkmemleak reports following after e.g. dw-hdmi unbind:\n\nunreferenced object 0xffff00010ac10000 (size 4096):\n  comm \"kworker/u16:1\", pid 39, jiffies 4294897739\n  hex dump (first 32 bytes):\n    20 23 4b 0a 01 00 ff ff 08 00 c1 0a 01 00 ff ff   #K.............\n    08 00 c1 0a 01 00 ff ff 00 00 00 00 00 00 00 00  ................\n  backtrace (crc e11baccc):\n    kmemleak_alloc+0x38/0x44\n    __kmalloc_cache_noprof+0x4a8/0x5e0\n    rc_allocate_device+0x48/0x2a0\n    cec_allocate_adapter+0x3ac/0x800\n    dw_hdmi_cec_probe+0x264/0x634\n    platform_probe+0xc0/0x188\n    really_probe+0x4a4/0x8e0\n    __driver_probe_device+0x2f8/0x440\n    driver_probe_device+0x60/0x160\n    __device_attach_driver+0x1a0/0x2a0\n    bus_for_each_drv+0x100/0x1a0\n    __device_attach+0x174/0x350\n    device_initial_probe+0x90/0xb0\n    bus_probe_device+0x4c/0x120\n    device_add+0xdec/0x116c\n    platform_device_add+0x354/0x598\n\nRemove the assignment of adap->rc to NULL to let cec_delete_adapter()\nfree the allocated rc device after last user of the cec device exits to\nfix the kmemleak.","publishedAt":"2026-09-16T10:32:00.289Z","updatedAt":"2026-10-19T08:54:33.144Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a7becb58f6b8a3a3efe5d3acfd52e2c107de6772","status":"affected","lessThan":"954ee95a03b4d31d4505591bfaba02c24b75776b","versionType":"git"},{"version":"75977f5f5c4974c72bbedefbf09ad33ebbaa36f1","status":"affected","lessThan":"f28a8e1ba4d67a18e4662e5acefd5a4389322366","versionType":"git"},{"version":"e250b672d40a9e0d97a8895cbb301248bea0fce6","status":"affected","lessThan":"695063fc57574dd117b1bc750ca189cf03a2caad","versionType":"git"},{"version":"dccc0c3ddf8f16071736f98a7d6dd46a2d43e037","status":"affected","lessThan":"cca2407794795cecff7f8e5f5a79f4ef6b1d6f6c","versionType":"git"},{"version":"dccc0c3ddf8f16071736f98a7d6dd46a2d43e037","status":"affected","lessThan":"a24ba0653f7154e671dc8d2bf64682ab2d042792","versionType":"git"},{"version":"6.6.143","status":"affected","lessThan":"6.6.157","versionType":"semver"},{"version":"6.12.93","status":"affected","lessThan":"6.12.110","versionType":"semver"},{"version":"6.18.35","status":"affected","lessThan":"6.18.51","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/cec/core/cec-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/cec/core/cec-core.c"]}],"references":["https://git.kernel.org/stable/c/954ee95a03b4d31d4505591bfaba02c24b75776b","https://git.kernel.org/stable/c/f28a8e1ba4d67a18e4662e5acefd5a4389322366","https://git.kernel.org/stable/c/695063fc57574dd117b1bc750ca189cf03a2caad","https://git.kernel.org/stable/c/cca2407794795cecff7f8e5f5a79f4ef6b1d6f6c","https://git.kernel.org/stable/c/a24ba0653f7154e671dc8d2bf64682ab2d042792"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89900.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89900","state":"PUBLISHED","datePublished":"2026-09-16T10:32:00.289Z","dateUpdated":"2026-10-19T08:54:33.144Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.774Z"},"containers":{"cna":{"title":"media: cec: core: Fix kmemleak due to missed rc_free_device() call","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: cec: core: Fix kmemleak due to missed rc_free_device() call\n\nThe commit dccc0c3ddf8f (\"media: rc: fix race between unregister and\nurb/irq callbacks\") removed the implicit call to rc_free_device() from\nrc_unregister_device(). However, the commit missed to remove the NULL\nassignment of adap->rc that is now causing rc_free_device() to never be\ncalled on an allocated rc device.\n\nkmemleak reports following after e.g. dw-hdmi unbind:\n\nunreferenced object 0xffff00010ac10000 (size 4096):\n  comm \"kworker/u16:1\", pid 39, jiffies 4294897739\n  hex dump (first 32 bytes):\n    20 23 4b 0a 01 00 ff ff 08 00 c1 0a 01 00 ff ff   #K.............\n    08 00 c1 0a 01 00 ff ff 00 00 00 00 00 00 00 00  ................\n  backtrace (crc e11baccc):\n    kmemleak_alloc+0x38/0x44\n    __kmalloc_cache_noprof+0x4a8/0x5e0\n    rc_allocate_device+0x48/0x2a0\n    cec_allocate_adapter+0x3ac/0x800\n    dw_hdmi_cec_probe+0x264/0x634\n    platform_probe+0xc0/0x188\n    really_probe+0x4a4/0x8e0\n    __driver_probe_device+0x2f8/0x440\n    driver_probe_device+0x60/0x160\n    __device_attach_driver+0x1a0/0x2a0\n    bus_for_each_drv+0x100/0x1a0\n    __device_attach+0x174/0x350\n    device_initial_probe+0x90/0xb0\n    bus_probe_device+0x4c/0x120\n    device_add+0xdec/0x116c\n    platform_device_add+0x354/0x598\n\nRemove the assignment of adap->rc to NULL to let cec_delete_adapter()\nfree the allocated rc device after last user of the cec device exits to\nfix the kmemleak."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a7becb58f6b8a3a3efe5d3acfd52e2c107de6772","status":"affected","lessThan":"954ee95a03b4d31d4505591bfaba02c24b75776b","versionType":"git"},{"version":"75977f5f5c4974c72bbedefbf09ad33ebbaa36f1","status":"affected","lessThan":"f28a8e1ba4d67a18e4662e5acefd5a4389322366","versionType":"git"},{"version":"e250b672d40a9e0d97a8895cbb301248bea0fce6","status":"affected","lessThan":"695063fc57574dd117b1bc750ca189cf03a2caad","versionType":"git"},{"version":"dccc0c3ddf8f16071736f98a7d6dd46a2d43e037","status":"affected","lessThan":"cca2407794795cecff7f8e5f5a79f4ef6b1d6f6c","versionType":"git"},{"version":"dccc0c3ddf8f16071736f98a7d6dd46a2d43e037","status":"affected","lessThan":"a24ba0653f7154e671dc8d2bf64682ab2d042792","versionType":"git"},{"version":"6.6.143","status":"affected","lessThan":"6.6.157","versionType":"semver"},{"version":"6.12.93","status":"affected","lessThan":"6.12.110","versionType":"semver"},{"version":"6.18.35","status":"affected","lessThan":"6.18.51","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/cec/core/cec-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/cec/core/cec-core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/954ee95a03b4d31d4505591bfaba02c24b75776b"},{"url":"https://git.kernel.org/stable/c/f28a8e1ba4d67a18e4662e5acefd5a4389322366"},{"url":"https://git.kernel.org/stable/c/695063fc57574dd117b1bc750ca189cf03a2caad"},{"url":"https://git.kernel.org/stable/c/cca2407794795cecff7f8e5f5a79f4ef6b1d6f6c"},{"url":"https://git.kernel.org/stable/c/a24ba0653f7154e671dc8d2bf64682ab2d042792"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:54:33.144Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.143","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.93","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.35","versionEndExcluding":"6.18.51"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.2.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}