Menu

Star on GitHub · 3.2k

CVE-2025-38140

5.5 · MEDIUM

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 device…

Published Jul 3, 2025EPSS 0.16%

Overview

CVE-2025-38140 is a medium-severity vulnerability. 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, patches, and mitigation guidance. 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.

Frequently asked questions

What is CVE-2025-38140?

CVE-2025-38140 is a medium-severity vulnerability. 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, patches, and mitigation guidance. 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 is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38140 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2025

View all