CVE-2026-99466: media: microchip-csi2dc: fix async notifier leak on probe error path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: microchip-csi2dc: fix async notifier leak on probe error path
csi2dc_of_parse() ends up calling csi2dc_prepare_notifier(), which registers the V4L2 async notifier with v4l2_async_nf_register(). The probe error label csi2dc_probe_cleanup_notifier is reached after csi2dc_of_parse() has already succeeded (e.g. when media entity init, csi2dc_power() or v4l2_async_register_subdev() fail), but it calls only v4l2_async_nf_cleanup() and never v4l2_async_nf_unregister().
The notifier therefore stays chained in the global notifier_list while the enclosing struct csi2dc_device is freed, leading to list corruption and a use-after-free when the list is next walked.
Unregister the notifier before cleaning it up on the error path, matching the teardown already done in csi2dc_remove().
The Linux kernel CVE team has assigned CVE-2026-99466 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.18 with commit 2de0b3c0f678422ef2211760079a27c3cb1404b2 and fixed in 6.12.117 with commit c287bcddda615b3c954cb5b1fc7e59292c878eeb Issue introduced in 5.18 with commit 2de0b3c0f678422ef2211760079a27c3cb1404b2 and fixed in 6.18.61 with commit 9fa70d75ab03f5babb072ad872a54879af4be55c Issue introduced in 5.18 with commit 2de0b3c0f678422ef2211760079a27c3cb1404b2 and fixed in 7.3.2 with commit e7dd17ce3190dd6f60e2d0153d8df15562347947 Issue introduced in 5.18 with commit 2de0b3c0f678422ef2211760079a27c3cb1404b2 and fixed in 7.4-rc1 with commit c7528789244ce7329ca883170fb9315d739ae985
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99466
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/media/platform/microchip/microchip-csi2dc.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/c287bcddda615b3c954cb5b1fc7e59292c878eeb https://git.kernel.org/stable/c/9fa70d75ab03f5babb072ad872a54879af4be55c https://git.kernel.org/stable/c/e7dd17ce3190dd6f60e2d0153d8df15562347947 https://git.kernel.org/stable/c/c7528789244ce7329ca883170fb9315d739ae985