{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-38141","published":"2025-07-03T09:15:28.740000Z","last_modified":"2026-07-30T06:22:54.850000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-416"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.10","version_end_excluding":"6.12.34"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.13","version_end_excluding":"6.15.3"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2025-38141/","html_en":"/en/cve/CVE-2025-38141/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-38141","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-38141"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm: fix dm_blk_report_zones\n\nIf dm_get_live_table() returned NULL, dm_put_live_table() was never\ncalled. Also, it is possible that md->zone_revalidate_map will change\nwhile calling this function. Only read it once, so that we are always\nusing the same value. Otherwise we might miss a call to\ndm_put_live_table().\n\nFinally, while md->zone_revalidate_map is set and a process is calling\nblk_revalidate_disk_zones() to set up the zone append emulation\nresources, it is possible that another process, perhaps triggered by\nblkdev_report_zones_ioctl(), will call dm_blk_report_zones(). If\nblk_revalidate_disk_zones() fails, these resources can be freed while\nthe other process is still using them, causing a use-after-free error.\n\nblk_revalidate_disk_zones() will only ever be called when initially\nsetting up the zone append emulation resources, such as when setting up\na zoned dm-crypt table for the first time. Further table swaps will not\nset md->zone_revalidate_map or call blk_revalidate_disk_zones().\nHowever it must be called using the new table (referenced by\nmd->zone_revalidate_map) and the new queue limits while the DM device is\nsuspended. dm_blk_report_zones() needs some way to distinguish between a\ncall from blk_revalidate_disk_zones(), which must be allowed to use\nmd->zone_revalidate_map to access this not yet activated table, and all\nother calls to dm_blk_report_zones(), which should not be allowed while\nthe device is suspended and cannot use md->zone_revalidate_map, since\nthe zone resources might be freed by the process currently calling\nblk_revalidate_disk_zones().\n\nSolve this by tracking the process that sets md->zone_revalidate_map in\ndm_revalidate_zones() and only allowing that process to make use of it\nin dm_blk_report_zones().","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/37f53a2c60d03743e0eacf7a0c01c279776fef4e","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/d19bc1b4dd5f322980b1f05f79b2ea4f0db10920","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/f9c1bdf24615303d48a2d0fd629c88f3189563aa","tags":["Patch"]}]},"bulletins":[{"source":"redhat","id":"RHSA-2026:6193","url":"https://access.redhat.com/errata/RHSA-2026:6193","published":"2026-03-31T10:12:17+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: kernel security update"}},{"source":"redhat","id":"RHSA-2026:4012","url":"https://access.redhat.com/errata/RHSA-2026:4012","published":"2026-03-10T10:08:37+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: kernel security update"}},{"source":"redhat","id":"RHSA-2026:4011","url":"https://access.redhat.com/errata/RHSA-2026:4011","published":"2026-03-09T10:08:24+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: kernel security update"}}]}