# CVE-2026-46210: media: iris: fix use-after-free of fmt_src during MBPF check

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-05-28T09:40:27.884Z
- Modified: 2026-10-15T11:17:32.110Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

media: iris: fix use-after-free of fmt_src during MBPF check

During concurrency testing, multiple instances can run in parallel, and
each instance uses its own inst->lock while the core->lock protects the
list of active instances. The race happens because these locks cover
different scopes, inst->lock protects only the internals of a single
instance, while the Macro Blocks Per Frame (MBPF) checker walks the
core list under core->lock and reads fields like fmt_src->width and
fmt_src->height. At the same time, iris_close() may free fmt_src and
fmt_dst under inst->lock while the instance is still present in the core
list. This allows a situation where the MBPF checker, still iterating
through the core list, reaches an instance whose fmt_src was already
freed by another thread and ends up dereferencing a dangling pointer,
resulting in a use-after-free. This happens because the MBPF checker
assumes that any instance in the core list is fully valid, but the
freeing of fmt_src and fmt_dst without removing the instance from the
core list is not correct.

The correct ordering is to defer freeing fmt_src and fmt_dst until after
the instance has been removed from the core list and all teardown under
the core lock has completed, ensuring that no dangling pointers are ever
exposed during MBPF checks.

(As written by CVE List.)

## Affected

- Linux Linux: from 5ad964ad5656668399f00c76707f0d063b64a4b1 before 96889fcdb0988108a19a29b0467717a503651a73; from 5ad964ad5656668399f00c76707f0d063b64a4b1 before 494ffd1712a588e590e6b1e9f876a8c8b24a9180; from 5ad964ad5656668399f00c76707f0d063b64a4b1 before 3d9593ad1a58c5acc3e5fa2a48222bb7632e6812; 6.18 (not affected: before 6.18; from 6.18.57 up to 6.18.*; from 7.0.9 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.18 before 7.0.9; 7.1

## References

- <https://git.kernel.org/stable/c/96889fcdb0988108a19a29b0467717a503651a73>
- <https://git.kernel.org/stable/c/494ffd1712a588e590e6b1e9f876a8c8b24a9180> (patch)
- <https://git.kernel.org/stable/c/3d9593ad1a58c5acc3e5fa2a48222bb7632e6812> (patch)

## Sources

- CVE List: [CVE-2026-46210](https://www.cve.org/CVERecord?id=CVE-2026-46210), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-46210](https://nvd.nist.gov/vuln/detail/CVE-2026-46210), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2026-46210 · Whole record: https://cve.day/CVE-2026-46210.json · Rebuilt by cve.day 2026-11-25T22:59:22.874Z
