# CVE-2026-46240: media: iris: Fix use-after-free in iris_release_internal_buffers()

- 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.17%, higher than 4% of CVEs (2026-11-30)
- Published: 2026-05-28T09:41:08.376Z
- Modified: 2026-08-05T12:30:40.467Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

media: iris: Fix use-after-free in iris_release_internal_buffers()

The recent change in commit 1dabf00ee206 ("media: iris: gen1: Destroy
internal buffers after FW releases") introduced a regression where
session_release_buf() may free the buffer. The caller,
iris_release_internal_buffers(), continued to access `buffer` after the
call, leading to a potential use-after-free.

Fix this by setting BUF_ATTR_PENDING_RELEASE before calling
session_release_buf(), and reverting the flag if the call fails. This
ensures no dereference occurs after potential freeing.

(As written by CVE List.)

## Affected

- Linux Linux: from 7cde76db8883ec8a3d1456068079ecadbfb15ca5 before dd24998a4a4016fb9921916024399bd80f0d45c6; from 1dabf00ee206eceb0f08a1fe5d1ce635f9064338 before 18c64439f249859b6140f7bf8bcf95c8ed841f28; from 1dabf00ee206eceb0f08a1fe5d1ce635f9064338 before f27cfdcfc916bb59297825805f4c3499f89f9e76; d4457f23ac0130240053a34be663f0fade3bb371; from 6.18.16 before 6.18.32; from 6.19.6 before 6.20; 7.0 (not affected: before 7.0; from 6.18.32 up to 6.18.*; from 7.0.9 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.18.16 before 6.18.32; from 6.19.6 before 7.0.9; 7.1

## References

- <https://git.kernel.org/stable/c/dd24998a4a4016fb9921916024399bd80f0d45c6> (patch)
- <https://git.kernel.org/stable/c/18c64439f249859b6140f7bf8bcf95c8ed841f28> (patch)
- <https://git.kernel.org/stable/c/f27cfdcfc916bb59297825805f4c3499f89f9e76> (patch)

## Sources

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

---

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