Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-39741

MEDIUM 5.5EPSS 5%

drm/xe/migrate: don't overflow max copy size

Mitigation

  • Upgrade Linux to 4126cb327a2e3273c81fcef1c594c5b7b645c44c or later.

Who should check

  • Anyone running Linux >= 270172f64b114451876c1b68912653e72ab99f38, < 7257cc6644d540130a46a61531a07a0517cace89; >= 270172f64b114451876c1b68912653e72ab99f38, < 4126cb327a2e3273c81fcef1c594c5b7b645c44c
  • Anyone running Linux 6.16

Vulnerability facts

Affected
Linux >= 270172f64b114451876c1b68912653e72ab99f38, < 7257cc6644d540130a46a61531a07a0517cace89; >= 270172f64b114451876c1b68912653e72ab99f38, < 4126cb327a2e3273c81fcef1c594c5b7b645c44c; Linux 6.16
Fixed in
Linux 7257cc6644d540130a46a61531a07a0517cace89, Linux 4126cb327a2e3273c81fcef1c594c5b7b645c44c
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.19% chance of exploitation in 30 days (percentile 5, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: drm/xe/migrate: don't overflow max copy size With non-page aligned copy, we need to use 4 byte aligned pitch, however the size itself might still be close to our maximum of ~8M, and so the dimensions of the copy can easily exceed the S16_MAX limit of the copy command leading to the following assert: xe 0000:03:00.0: [drm] Assertion `size / pitch <= ((s16)(((u16)~0U) >> 1))` failed! platform: BATTLEMAGE subplatform: 1 graphics: Xe2_HPG 20.01 step A0 media: Xe2_HPM 13.01 step A1 tile: 0 VRAM 10.0 GiB GT: 0 type 1 WARNING: CPU: 23 PID: 10605 at drivers/gpu/drm/xe/xe_migrate.c:673 emit_copy+0x4b5/0x4e0 [xe] To fix this account for the pitch when calculating the number of current bytes to copy. (cherry picked from commit 8c2d61e0e916e077fda7e7b8e67f25ffe0f361fc)

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 270172f64b114451876c1b68912653e72ab99f38, < 7257cc6644d540130a46a61531a07a0517cace89; >= 270172f64b114451876c1b68912653e72ab99f38, < 4126cb327a2e3273c81fcef1c594c5b7b645c44c—cvelist
Linux6.16—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2025-39741.md
Affected: Linux >= 270172f64b114451876c1b68912653e72ab99f38, < 7257cc6644d540130a46a61531a07a0517cace89; >= 270172f64b114451876c1b68912653e72ab99f38, < 4126cb327a2e3273c81fcef1c594c5b7b645c44c; Linux 6.16
Fixed in: Linux 7257cc6644d540130a46a61531a07a0517cace89, Linux 4126cb327a2e3273c81fcef1c594c5b7b645c44c

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.

References

FAQ

Is CVE-2025-39741 being exploited?

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

How serious is CVE-2025-39741?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-39741?

Linux >= 270172f64b114451876c1b68912653e72ab99f38, < 7257cc6644d540130a46a61531a07a0517cace89; >= 270172f64b114451876c1b68912653e72ab99f38, < 4126cb327a2e3273c81fcef1c594c5b7b645c44c; Linux 6.16.

Is there a fix for CVE-2025-39741?

Yes. Fixed in Linux 7257cc6644d540130a46a61531a07a0517cace89, Linux 4126cb327a2e3273c81fcef1c594c5b7b645c44c. Upgrade Linux to 4126cb327a2e3273c81fcef1c594c5b7b645c44c or later.

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

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.

Sponsors