# CVE-2025-38226: media: vivid: Change the siize of the composing

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-07-04T13:37:40.977Z
- **Modified:** 2026-08-05T12:00:29.016Z

## Who should check

- Anyone running Linux \>= 54f259906039dbfe46c550011409fa16f72370f6, \< 57597d8db5bbda618ba2145b7e8a7e6f01b6a27e; \>= f9d19f3a044ca651b0be52a4bf951ffe74259b9f, \< 635cea4f44c1ddae208666772c164eab5a6bce39; \>= ab54081a2843aefb837812fac5488cc8f1696142, \< 89b5ab822bf69867c3951dd0eb34b0314c38966b; \>= 2f558c5208b0f70c8140e08ce09fcc84da48e789, \< 5d89aa42534723400fefd46e26e053b9c382b4ee; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< f6b1b0f8ba0b61d8b511df5649d57235f230c135; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< 00da1c767a6567e56f23dda586847586868ac064; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< c56398885716d97ee9bcadb2bc9663a8c1757a34; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< f83ac8d30c43fd902af7c84c480f216157b60ef0; 8c0ee15d9a102c732d0745566d254040085d5663; 5edc3604151919da8da0fb092b71d7dce07d848a; …
- Anyone running Linux 6.2

## Description

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

media: vivid: Change the siize of the composing

syzkaller found a bug:

BUG: KASAN: vmalloc-out-of-bounds in tpg\_fill\_plane\_pattern drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2608 \[inline\]
BUG: KASAN: vmalloc-out-of-bounds in tpg\_fill\_plane\_buffer+0x1a9c/0x5af0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2705
Write of size 1440 at addr ffffc9000d0ffda0 by task vivid-000-vid-c/5304

CPU: 0 UID: 0 PID: 5304 Comm: vivid-000-vid-c Not tainted 6.14.0-rc2-syzkaller-00039-g09fbf3d50205 \#0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014

Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
 dump\_stack\_lvl+0x241/0x360 lib/dump\_stack.c:120
 print\_address\_description mm/kasan/report.c:378 \[inline\]
 print\_report+0x169/0x550 mm/kasan/report.c:489
 kasan\_report+0x143/0x180 mm/kasan/report.c:602
 kasan\_check\_range+0x282/0x290 mm/kasan/generic.c:189
 \_\_asan\_memcpy+0x40/0x70 mm/kasan/shadow.c:106
 tpg\_fill\_plane\_pattern drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2608 \[inline\]
 tpg\_fill\_plane\_buffer+0x1a9c/0x5af0 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2705
 vivid\_fillbuff drivers/media/test-drivers/vivid/vivid-kthread-cap.c:470 \[inline\]
 vivid\_thread\_vid\_cap\_tick+0xf8e/0x60d0 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:629
 vivid\_thread\_vid\_cap+0x8aa/0xf30 drivers/media/test-drivers/vivid/vivid-kthread-cap.c:767
 kthread+0x7a9/0x920 kernel/kthread.c:464
 ret\_from\_fork+0x4b/0x80 arch/x86/kernel/process.c:148
 ret\_from\_fork\_asm+0x1a/0x30 arch/x86/entry/entry\_64.S:244
 \</TASK\>

The composition size cannot be larger than the size of fmt\_cap\_rect.
So execute v4l2\_rect\_map\_inside() even if has\_compose\_cap == 0.

## Affected and fixed versions

- Linux: \>= 54f259906039dbfe46c550011409fa16f72370f6, \< 57597d8db5bbda618ba2145b7e8a7e6f01b6a27e; \>= f9d19f3a044ca651b0be52a4bf951ffe74259b9f, \< 635cea4f44c1ddae208666772c164eab5a6bce39; \>= ab54081a2843aefb837812fac5488cc8f1696142, \< 89b5ab822bf69867c3951dd0eb34b0314c38966b; \>= 2f558c5208b0f70c8140e08ce09fcc84da48e789, \< 5d89aa42534723400fefd46e26e053b9c382b4ee; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< f6b1b0f8ba0b61d8b511df5649d57235f230c135; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< 00da1c767a6567e56f23dda586847586868ac064; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< c56398885716d97ee9bcadb2bc9663a8c1757a34; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< f83ac8d30c43fd902af7c84c480f216157b60ef0; 8c0ee15d9a102c732d0745566d254040085d5663; 5edc3604151919da8da0fb092b71d7dce07d848a; … (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38226. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38226.md
Affected: Linux >= 54f259906039dbfe46c550011409fa16f72370f6, < 57597d8db5bbda618ba2145b7e8a7e6f01b6a27e; >= f9d19f3a044ca651b0be52a4bf951ffe74259b9f, < 635cea4f44c1ddae208666772c164eab5a6bce39; >= ab54081a2843aefb837812fac5488cc8f1696142, < 89b5ab822bf69867c3951dd0eb34b0314c38966b; >= 2f558c5208b0f70c8140e08…
Fixed in: Linux 57597d8db5bbda618ba2145b7e8a7e6f01b6a27e, Linux 635cea4f44c1ddae208666772c164eab5a6bce39, Linux 89b5ab822bf69867c3951dd0eb34b0314c38966b, Linux 5d89aa42534723400fefd46e26e053b9c382b4ee, Linux 00da1c767a6567e56f23dda586847586868ac064

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38226 being exploited?

There is no confirmed exploitation: CVE-2025-38226 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38226?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38226?

Linux \>= 54f259906039dbfe46c550011409fa16f72370f6, \< 57597d8db5bbda618ba2145b7e8a7e6f01b6a27e; \>= f9d19f3a044ca651b0be52a4bf951ffe74259b9f, \< 635cea4f44c1ddae208666772c164eab5a6bce39; \>= ab54081a2843aefb837812fac5488cc8f1696142, \< 89b5ab822bf69867c3951dd0eb34b0314c38966b; \>= 2f558c5208b0f70c8140e08ce09fcc84da48e789, \< 5d89aa42534723400fefd46e26e053b9c382b4ee; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< f6b1b0f8ba0b61d8b511df5649d57235f230c135; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< 00da1c767a6567e56f23dda586847586868ac064; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< c56398885716d97ee9bcadb2bc9663a8c1757a34; \>= 94a7ad9283464b75b12516c5512541d467cefcf8, \< f83ac8d30c43fd902af7c84c480f216157b60ef0; 8c0ee15d9a102c732d0745566d254040085d5663; 5edc3604151919da8da0fb092b71d7dce07d848a; …; Linux 6.2.

### Is there a fix for CVE-2025-38226?

Yes. Fixed in Linux 57597d8db5bbda618ba2145b7e8a7e6f01b6a27e, Linux 635cea4f44c1ddae208666772c164eab5a6bce39, Linux 89b5ab822bf69867c3951dd0eb34b0314c38966b, Linux 5d89aa42534723400fefd46e26e053b9c382b4ee, Linux 00da1c767a6567e56f23dda586847586868ac064. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38226?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/57597d8db5bbda618ba2145b7e8a7e6f01b6a27e>
- patch: <https://git.kernel.org/stable/c/635cea4f44c1ddae208666772c164eab5a6bce39>
- patch: <https://git.kernel.org/stable/c/89b5ab822bf69867c3951dd0eb34b0314c38966b>
- patch: <https://git.kernel.org/stable/c/5d89aa42534723400fefd46e26e053b9c382b4ee>
- patch: <https://git.kernel.org/stable/c/f6b1b0f8ba0b61d8b511df5649d57235f230c135>
- patch: <https://git.kernel.org/stable/c/00da1c767a6567e56f23dda586847586868ac064>
- patch: <https://git.kernel.org/stable/c/c56398885716d97ee9bcadb2bc9663a8c1757a34>
- patch: <https://git.kernel.org/stable/c/f83ac8d30c43fd902af7c84c480f216157b60ef0>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38226>

HTML: <https://flawdb.com/CVE-2025-38226> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38226>
