CVE-2025-38226
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-38226 is an out-of-bounds write vulnerability in the Linux kernel's media subsystem, specifically within the vivid (Virtual Video Test Driver) component. The flaw was discovered via syzkaller fuzzing and disclosed on July 4, 2025, affecting multiple Linux kernel stable branches including versions from 4.9.337 through 6.15.3 (with specific affected ranges across long-term support branches). The bug resides in the tpg_fill_plane_buffer function in drivers/media/common/v4l2-tpg/v4l2-tpg-core.c, where the composing rectangle size can exceed the bounds of the fmt_cap_rect buffer. It carries a CVSS v3.1 base score of 7.8 (High) (Red Hat CVE, Feedly).

Technical details

The root cause is classified as CWE-787 (Out-of-bounds Write). During video capture operations in the vivid test driver, the tpg_fill_plane_buffer function performs a memory copy (__asan_memcpy) of 1440 bytes into a vmalloc-allocated buffer at an address that exceeds the allocated region's bounds. This occurs because the composing rectangle dimensions are not validated against the fmt_cap_rect limits before the write. The fix involves calling v4l2_rect_map_inside() to constrain the composing size within the fmt_cap_rect boundaries, preventing the out-of-bounds access. Exploitation requires local access with low privileges (e.g., a user with access to the video device interface) (Red Hat CVE, Kernel Patches).

Impact

Successful exploitation of this vulnerability could result in kernel memory corruption, leading to system instability, kernel panic (denial of service), or potentially arbitrary code execution in kernel context. Given the high confidentiality, integrity, and availability impact ratings, a local attacker with low privileges could leverage this flaw to escalate privileges or crash the system. The affected component is a test/virtual driver (vivid), which limits exposure on production systems where the module is not loaded (Red Hat CVE, Feedly).

Exploitability

There is no public proof-of-concept exploit code known at this time, and no evidence of in-the-wild exploitation has been reported. The vulnerability was identified through automated fuzzing by syzkaller. The EPSS score is 0.024% (very low probability of exploitation in the near term). The CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is constrained to local access with low privileges, further limiting the practical attack surface (Red Hat CVE, Feedly).

Mitigation and workarounds

The Linux kernel maintainers have released patches across multiple stable branches. Fixed versions include: 4.19.x (before 4.20), 5.4.296+, 5.10.239+, 5.15.186+, 6.1.142+, 6.6.95+, 6.12.35+, and 6.15.4+. Administrators should update to the latest patched kernel version for their distribution. As a workaround, if the vivid kernel module is not required, it can be blacklisted or unloaded (modprobe -r vivid or adding blacklist vivid to /etc/modprobe.d/). Ubuntu has issued security notices USN-7774-1, USN-7774-2, USN-7774-5, USN-7775-3, USN-7834-1, and USN-7856-1 addressing this issue (Ubuntu USN-7774-1, Red Hat CVE, Kernel Patches).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74732NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-firmware
NoYesAug 22, 2026
CVE-2026-74730NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 22, 2026
CVE-2026-74726NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules
NoYesAug 22, 2026
CVE-2026-74719NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-partner
NoYesAug 22, 2026
CVE-2026-74717NONEN/A
  • Linux Kernel logoLinux Kernel
  • rtla
NoYesAug 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management