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-38140

5.5 · MEDIUM
Published Jul 3, 2025 linux EPSS 0.14% (4th pctl)

Overview

CVE-2025-38140 is a medium-severity vulnerability affecting linux linux_kernel. It was published on July 3, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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:

dm: limit swapping tables for devices with zone write plugs

dm_revalidate_zones() only allowed new or previously unzoned devices to

call blk_revalidate_disk_zones(). If the device was already zoned,

disk->nr_zones would always equal md->nr_zones, so dm_revalidate_zones()

returned without doing any work. This would make the zoned settings for

the device not match the new table. If the device had zone write plug

resources, it could run into errors like bdev_zone_is_seq() reading

invalid memory because disk->conv_zones_bitmap was the wrong size.

If the device doesn't have any zone write plug resources, calling

blk_revalidate_disk_zones() will always correctly update device. If

blk_revalidate_disk_zones() fails, it can still overwrite or clear the

current disk->nr_zones value. In this case, DM must restore the previous

value of disk->nr_zones, so that the zoned settings will continue to

match the previous value that it

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 >= 5.14, < 6.15.3 Affected

Frequently Asked Questions

What is CVE-2025-38140?

CVE-2025-38140 is a medium-severity vulnerability affecting linux linux_kernel. It was published on July 3, 2025 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2025-38140?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-38140?

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-38140?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-38140 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.