HomeDefectsLIN1024-9985
Fixed

LIN1024-9985 : Security Advisory - linux - CVE-2025-38073

Created: Jun 19, 2025    Updated: Mar 3, 2026
Resolved Date: Dec 4, 2025
Found In Version: 10.24.33.1
Fix Version: 10.24.33.14
Severity: Standard
Applicable for: Wind River Linux LTS 24
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:[EOL][EOL]block: fix race between set_blocksize and read paths[EOL][EOL]With the new large sector size support, it's now the case that[EOL]set_blocksize can change i_blksize and the folio order in a manner that[EOL]conflicts with a concurrent reader and causes a kernel crash.[EOL][EOL]Specifically, let's say that udev-worker calls libblkid to detect the[EOL]labels on a block device.  The read call can create an order-0 folio to[EOL]read the first 4096 bytes from the disk.  But then udev is preempted.[EOL][EOL]Next, someone tries to mount an 8k-sectorsize filesystem from the same[EOL]block device.  The filesystem calls set_blksize, which sets i_blksize to[EOL]8192 and the minimum folio order to 1.[EOL][EOL]Now udev resumes, still holding the order-0 folio it allocated.  It then[EOL]tries to schedule a read bio and do_mpage_readahead tries to create[EOL]bufferheads for the folio.  Unfortunately, blocks_per_folio == 0 because[EOL]the page size is 4096 but the blocksize is 8192 so no bufferheads are[EOL]attached and the bh walk never sets bdev.  We then submit the bio with a[EOL]NULL block device and crash.[EOL][EOL]Therefore, truncate the page cache after flushing but before updating[EOL]i_blksize.  However, that's not enough -- we also need to lock out file[EOL]IO and page faults during the update.  Take both the i_rwsem and the[EOL]invalidate_lock in exclusive mode for invalidations, and in shared mode[EOL]for read/write operations.[EOL][EOL]I don't know if this is the correct fix, but xfs/259 found it.

CVEs