CVE-2022-50286

ext4: fix delayed allocation bug in ext4_clu_mapped for bigalloc + inline

7.8 high EPSS 0.18%

Published 15 Sep 2025 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2022-50286

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50286 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.35% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from d40e09f701cf7a44e595a558b067b2b4f67fbf87, before f83391339d8493b9ff24167516aaa5a5e88d8f81
affected from 0b02f4c0d6d9e2c611dfbdd4317193e9dca740e6, before 6f4200ec76a0d31200c308ec5a71c68df5417004
affected from 0b02f4c0d6d9e2c611dfbdd4317193e9dca740e6, before 9404839e0c9db5a517ea83c0ca3388b39d105fdf
affected from 0b02f4c0d6d9e2c611dfbdd4317193e9dca740e6, before d440d6427a5e3a877c1c259b8d2b216ddb65e185
affected from 0b02f4c0d6d9e2c611dfbdd4317193e9dca740e6, before c0c8edbc8abbe8f16d80a1d794d1ba2c12b6f193
affected from 0b02f4c0d6d9e2c611dfbdd4317193e9dca740e6, before 81b915181c630ee1cffa052e52874fe4e1ba91ac
affected from 0b02f4c0d6d9e2c611dfbdd4317193e9dca740e6, before 131294c35ed6f777bd4e79d42af13b5c41bf2775
affected from 4.19.270, before 4.19.271
Other versions: unaffected
Linux
affected 4.20
unaffected before 4.20
unaffected from 4.19.271 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.87 up to and including 5.15.*
unaffected from 6.0.18 up to and including 6.0.*
unaffected from 6.1.4 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50286 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50286

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50286
trivy image --scanners vuln IMAGE | grep CVE-2022-50286

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50286 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.