media: atmel-isi: release unregistered video device on remove
- CVE-2026-138986
- GHSA-ghmg-wvhj-vwrx
- EUVD-2026-138738
Description
In the Linux kernel, the following vulnerability has been resolved: media: atmel-isi: release unregistered video device on remove atmel_isi_probe() allocates the video device before registering the V4L2 async notifier. The video device is registered later from the notifier complete callback once the remote subdevice has been bound. The remove path relies on the notifier unbind callback to unregister the video device. However, if the remote subdevice is never bound, or the complete callback fails before video_register_device() succeeds, the video device remains unregistered. In that case the unbind path does not release the object allocated by video_device_alloc(), and the remove path leaks it. Only unregister the video device from the unbind callback when it has actually been registered, and clear the driver pointer afterwards. After unregistering and cleaning up the notifier, release the video device directly if the pointer is still present. This covers devices that were allocated but never registered while avoiding a second release of successfully registered devices. This issue was found by manual code inspection.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
Linux
Affected versions Fixed in 4.12 none stated before 4.12: not affected none stated from 5.10.275 up to 5.10.*: not affected none stated from 5.15.226 up to 5.15.*: not affected none stated from 6.1.193 up to 6.1.*: not affected none stated from 6.6.163 up to 6.6.*: not affected none stated from 6.12.117 up to 6.12.*: not affected none stated from 6.18.63 up to 6.18.*: not affected none stated and 2 more
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.