HomeDefectsLIN1025-2331
Fixed

LIN1025-2331 : Security Advisory - linux - CVE-2025-38141

Created: Jul 3, 2025    Updated: Sep 1, 2025
Resolved Date: Jul 10, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]dm: fix dm_blk_report_zones[EOL][EOL]If dm_get_live_table() returned NULL, dm_put_live_table() was never[EOL]called. Also, it is possible that md->zone_revalidate_map will change[EOL]while calling this function. Only read it once, so that we are always[EOL]using the same value. Otherwise we might miss a call to[EOL]dm_put_live_table().[EOL][EOL]Finally, while md->zone_revalidate_map is set and a process is calling[EOL]blk_revalidate_disk_zones() to set up the zone append emulation[EOL]resources, it is possible that another process, perhaps triggered by[EOL]blkdev_report_zones_ioctl(), will call dm_blk_report_zones(). If[EOL]blk_revalidate_disk_zones() fails, these resources can be freed while[EOL]the other process is still using them, causing a use-after-free error.[EOL][EOL]blk_revalidate_disk_zones() will only ever be called when initially[EOL]setting up the zone append emulation resources, such as when setting up[EOL]a zoned dm-crypt table for the first time. Further table swaps will not[EOL]set md->zone_revalidate_map or call blk_revalidate_disk_zones().[EOL]However it must be called using the new table (referenced by[EOL]md->zone_revalidate_map) and the new queue limits while the DM device is[EOL]suspended. dm_blk_report_zones() needs some way to distinguish between a[EOL]call from blk_revalidate_disk_zones(), which must be allowed to use[EOL]md->zone_revalidate_map to access this not yet activated table, and all[EOL]other calls to dm_blk_report_zones(), which should not be allowed while[EOL]the device is suspended and cannot use md->zone_revalidate_map, since[EOL]the zone resources might be freed by the process currently calling[EOL]blk_revalidate_disk_zones().[EOL][EOL]Solve this by tracking the process that sets md->zone_revalidate_map in[EOL]dm_revalidate_zones() and only allowing that process to make use of it[EOL]in dm_blk_report_zones().

CREATE(Triage):(User=lchen-cn) [CVE-2025-38141 (https://nvd.nist.gov/vuln/detail/CVE-2025-38141)