CVE & CISA-KEV Catalog

CVE-2025-38140

MEDIUM
5.5
CVSS v3
NVD

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 fell back to. If the device already has zone write plug resources, blk_revalidate_disk_zones() will not correctly update them, if it is called for arbitrary zoned device changes. Since there is not much need for this ability, the easiest solution is to disallow any table reloads that change the zoned settings, for devices that already have zone plug resources. Specifically, if a device already has zone plug resources allocated, it can only switch to another zoned table that also emulates zone append. Also, it cannot change the device size or the zone size. A device can switch to an error target.

How to fix

Remediation Available
linuxDebian
Fixed in:6.16.3-1CVE-2025-38140
linux-aws-6.14Ubuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7769-3
linux-gcp-6.14Ubuntu
Fixed in:6.14.0-1016.17~24.04.1USN-7769-1
linux-hwe-6.14Ubuntu
Fixed in:6.14.0-32.32~24.04.1USN-7769-3
linux-image-6.14.0-1012-oemUbuntu
Fixed in:6.14.0-1012.12USN-7771-1
linux-image-6.14.0-1012-realtimeUbuntu
Fixed in:6.14.0-1012.12~24.04.1USN-7769-2
linux-image-6.14.0-1013-awsUbuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7769-3
linux-image-6.14.0-1013-aws-64kUbuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7769-3
linux-image-6.14.0-1013-oracleUbuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7789-1
linux-image-6.14.0-1013-oracle-64kUbuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7789-1
linux-image-6.14.0-1016-gcpUbuntu
Fixed in:6.14.0-1016.17~24.04.1USN-7769-1
linux-image-6.14.0-1016-gcp-64kUbuntu
Fixed in:6.14.0-1016.17~24.04.1USN-7769-1
linux-image-6.14.0-32-genericUbuntu
Fixed in:6.14.0-32.32~24.04.1USN-7769-3
linux-image-6.14.0-32-generic-64kUbuntu
Fixed in:6.14.0-32.32~24.04.1USN-7769-3
linux-image-awsUbuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7769-3
linux-image-aws-6.14Ubuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7769-3
linux-image-aws-64kUbuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7769-3
linux-image-aws-64k-6.14Ubuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7769-3
linux-image-gcpUbuntu
Fixed in:6.14.0-1016.17~24.04.1USN-7769-1
linux-image-gcp-6.14Ubuntu
Fixed in:6.14.0-1016.17~24.04.1USN-7769-1
linux-image-gcp-64kUbuntu
Fixed in:6.14.0-1016.17~24.04.1USN-7769-1
linux-image-gcp-64k-6.14Ubuntu
Fixed in:6.14.0-1016.17~24.04.1USN-7769-1
linux-image-generic-6.14Ubuntu
Fixed in:6.14.0-32.32~24.04.1USN-7769-3
linux-image-generic-64k-6.14Ubuntu
Fixed in:6.14.0-32.32~24.04.1USN-7769-3
linux-image-generic-64k-hwe-24.04Ubuntu
Fixed in:6.14.0-32.32~24.04.1USN-7769-3
linux-image-generic-hwe-24.04Ubuntu
Fixed in:6.14.0-32.32~24.04.1USN-7769-3
linux-image-oem-24.04Ubuntu
Fixed in:6.14.0-1012.12USN-7771-1
linux-image-oem-24.04aUbuntu
Fixed in:6.14.0-1012.12USN-7771-1
linux-image-oem-24.04bUbuntu
Fixed in:6.14.0-1012.12USN-7771-1
linux-image-oem-24.04cUbuntu
Fixed in:6.14.0-1012.12USN-7771-1
linux-image-oem-6.14Ubuntu
Fixed in:6.14.0-1012.12USN-7771-1
linux-image-oracleUbuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7789-1
linux-image-oracle-6.14Ubuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7789-1
linux-image-oracle-64kUbuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7789-1
linux-image-oracle-64k-6.14Ubuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7789-1
linux-image-realtime-6.14Ubuntu
Fixed in:6.14.0-1012.12~24.04.1USN-7769-2
linux-image-realtime-hwe-24.04Ubuntu
Fixed in:6.14.0-1012.12~24.04.1USN-7769-2
linux-image-virtual-6.14Ubuntu
Fixed in:6.14.0-32.32~24.04.1USN-7769-3
linux-image-virtual-hwe-24.04Ubuntu
Fixed in:6.14.0-32.32~24.04.1USN-7769-3
linux-oem-6.14Ubuntu
Fixed in:6.14.0-1012.12USN-7771-1
linux-oracle-6.14Ubuntu
Fixed in:6.14.0-1013.13~24.04.1USN-7789-1
linux-realtime-6.14Ubuntu
Fixed in:6.14.0-1012.12~24.04.1USN-7769-2

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.14%probability of exploitation in 30 days
3rdpercentile

Low risk: more likely to be exploited than 3% of all known CVEs.

References

Embed a live status badge for CVE-2025-38140
CVE-2025-38140 severity badge

Markdown

[![CVE-2025-38140](https://tridentstack.com/cve/badge/CVE-2025-38140.svg)](https://tridentstack.com/cve/CVE-2025-38140)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-38140"><img src="https://tridentstack.com/cve/badge/CVE-2025-38140.svg" alt="CVE-2025-38140"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-20.