CVE-2026-64421: media: nxp: imx8-isi: Fix use-after-free on remove

Published Jul 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

media: nxp: imx8-isi: Fix use-after-free on remove

KASAN reports a slab-use-after-free in mediaentityremovelink() during rmmod of imx8isi:

BUG: KASAN: slab-use-after-free in mediaentityremovelink+0x608/0x650 Read of size 2 at addr ffff0000d47cb02a by task rmmod/724

Call trace: mediaentityremovelink+0x608/0x650 mediaentityremovelinks+0x78/0x144 mediadeviceunregisterentity+0x150/0x280 mediadeviceunregisterentity+0x48/0x68 v4l2deviceunregistersubdev+0x158/0x300 v4l2asyncunbindsubdevone+0x22c/0x358 v4l2asyncnfunbindallsubdevs+0xfc/0x1c0 v4l2asyncnfunregister+0x5c/0x14c mxcisiremove+0x124/0x2a0 [imx8isi]

Allocated by task 249: kmallocnoprof+0x27c/0x690 mxcisicrossbarinit+0x22c/0x560 [imx8isi]

Freed by task 724: kfree+0x1e4/0x5b0 mxcisicrossbarcleanup+0x34/0x80 [imx8isi] mxcisiremove+0x11c/0x2a0 [imx8isi]

The problem is that mxcisiremove() calls mxcisicrossbarcleanup() before mxcisiv4l2cleanup(). The crossbar cleanup frees the media entity pads, but the subsequent v4l2 cleanup still tries to remove media links that reference those pads.

Fix this by calling mxcisiv4l2cleanup() before mxcisicrossbarcleanup() to ensure all media entities are properly unregistered while the pads are still valid.

Affected Software

5 affected components
Linux Linux kernel
Linux Linux kernel>=6.4<6.6.145
Linux Linux kernel>=6.7<6.12.97
Linux Linux kernel>=6.13<6.18.40
Linux Linux kernel>=6.19<7.1.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Fix the slab-use-after-free on removal by changing imx8_isi cleanup/remove logic so that mxc_isi_v4l2_cleanup() is called before mxc_isi_crossbar_cleanup() during mxc_isi_remove().

    Linux kernel module imx8_isi (media: nxp: imx8-isi) remove order = Call mxc_isi_v4l2_cleanup() before media link removal/Crossbar cleanup

Event History

Jul 25, 2026
CVE Published
via MITRE·08:50 AM
Data Sourced
via MITRE·08:50 AM
Description
Data Sourced
via NVD·10:17 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Systems using the Linux kernel imx8_isi media driver are implicated. The reported failure occurs while removing the imx8_isi module.

2

What access does an attacker need to exploit it?

The CVSS vector indicates local access with low privileges and no user interaction. The vulnerability has high confidentiality, integrity, and availability impact in that vector.

3

How can I tell whether the system is affected?

A KASAN-enabled kernel may report a slab-use-after-free in __media_entity_remove_link() during rmmod of imx8_isi. The trace includes mxc_isi_remove(), mxc_isi_crossbar_cleanup(), and media/V4L2 entity or link cleanup functions.

4

What does the fix change?

The fix corrects the removal cleanup ordering so V4L2 cleanup removes media links before crossbar cleanup frees the media-entity pads those links reference.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203