CVE-2022-50286

High

Description

In the Linux kernel, the following vulnerability has been resolved: ext4: fix delayed allocation bug in ext4_clu_mapped for bigalloc + inline When converting files with inline data to extents, delayed allocations made on a file system created with both the bigalloc and inline options can result in invalid extent status cache content, incorrect reserved cluster counts, kernel memory leaks, and potential kernel panics. With bigalloc, the code that determines whether a block must be delayed allocated searches the extent tree to see if that block maps to a previously allocated cluster. If not, the block is delayed allocated, and otherwise, it isn't. However, if the inline option is also used, and if the file containing the block is marked as able to store data inline, there isn't a valid extent tree associated with the file. The current code in ext4_clu_mapped() calls ext4_find_extent() to search the non-existent tree for a previously allocated cluster anyway, which typically finds nothing, as desired. However, a side effect of the search can be to cache invalid content from the non-existent tree (garbage) in the extent status tree, including bogus entries in the pending reservation tree. To fix this, avoid searching the extent tree when allocating blocks for bigalloc + inline files that are being converted from inline to extent mapped.

SeverityHigh
CVSS7.8
Exploit probability—
ProductLinux Kernel
PublishedSep 15, 2025
First seenSep 15, 2025

How to fix

Update
  • linux linux_kernel5.4.229, 5.10.163, 5.15.87, 6.0.18, 6.1.4 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernelv < 5.4.229, 5.5 ≤ v < 5.10.163, 5.11 ≤ v < 5.15.87, 5.16 ≤ v < 6.0.18, 6.1 ≤ v < 6.1.45.4.229, 5.10.163, 5.15.87, 6.0.18, 6.1.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.