Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2025-38221

7.1 · HIGH
Published Jul 4, 2025 linux CWE-125 EPSS 0.14% (4th pctl)

Overview

CVE-2025-38221 is a high-severity vulnerability affecting linux linux_kernel. It was published on July 4, 2025 and has a CVSS 3.1 base score of 7.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

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

ext4: fix out of bounds punch offset

Punching a hole with a start offset that exceeds max_end is not

permitted and will result in a negative length in the

truncate_inode_partial_folio() function while truncating the page cache,

potentially leading to undesirable consequences.

A simple reproducer:

truncate -s 9895604649994 /mnt/foo

xfs_io -c "pwrite 8796093022208 4096" /mnt/foo

xfs_io -c "fpunch 8796093022213 25769803777" /mnt/foo

kernel BUG at include/linux/highmem.h:275!

Oops: invalid opcode: 0000 [#1] SMP PTI

CPU: 3 UID: 0 PID: 710 Comm: xfs_io Not tainted 6.15.0-rc3

Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-2.fc40 04/01/2014

RIP: 0010:zero_user_segments.constprop.0+0xd7/0x110

RSP: 0018:ffffc90001cf3b38 EFLAGS: 00010287

RAX: 0000000000000005 RBX: ffffea0001485e40 RCX: 0000000000001000

RDX: 000000000040b000 RSI: 0000000000000005 RDI: 000000000040b000

RBP: 000000000

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 6.15, < 6.15.4 Affected

Frequently Asked Questions

What is CVE-2025-38221?

CVE-2025-38221 is a high-severity vulnerability affecting linux linux_kernel. It was published on July 4, 2025 and has a CVSS 3.1 base score of 7.1 (HIGH).

How severe is CVE-2025-38221?

This vulnerability has a CVSS 3.1 base score of 7.1, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-38221?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-38221?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-38221 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.