CVE-2026-99466: media: microchip-csi2dc: fix async notifier leak on probe error path
In the Linux kernel, the following vulnerability has been resolved:
media: microchip-csi2dc: fix async notifier leak on probe error path
csi2dcofparse() ends up calling csi2dcpreparenotifier(), which registers the V4L2 async notifier with v4l2asyncnfregister(). The probe error label csi2dcprobecleanupnotifier is reached after csi2dcofparse() has already succeeded (e.g. when media entity init, csi2dcpower() or v4l2asyncregistersubdev() fail), but it calls only v4l2asyncnfcleanup() and never v4l2asyncnfunregister().
The notifier therefore stays chained in the global notifierlist while the enclosing struct csi2dcdevice 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 csi2dcremove().
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
On the probe error path, call v4l2_async_nf_unregister() before v4l2_async_nf_cleanup() to unregister the notifier before cleanup, matching the teardown in csi2dc_remove().