CVE-2022-50436
ext4: don't set up encryption key during jbd2 transaction
Check your servers for CVE-2022-50436
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-50436 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
ext4: don't set up encryption key during jbd2 transaction
Commit a80f7fcf1867 ("ext4: fixup ext4_fc_track_* functions' signature") extended the scope of the transaction in ext4_unlink() too far, making it include the call to ext4_find_entry(). However, ext4_find_entry() can deadlock when called from within a transaction because it may need to set up the directory's encryption key.
Fix this by restoring the transaction to its original scope.
Exploitation
EPSS 0.11%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 1.28% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from a80f7fcf18672ae4971a6b713b58c0d389aa99fe, before 23ad034760dd38e12b0e0e1b28b9629f330810a1 affected from a80f7fcf18672ae4971a6b713b58c0d389aa99fe, before 6220ec405571ded17efedc56587190b542adf246 affected from a80f7fcf18672ae4971a6b713b58c0d389aa99fe, before 206dd3acfb9bca54a25b228c7c7c2257eedde09b affected from a80f7fcf18672ae4971a6b713b58c0d389aa99fe, before 1ba993208bcfd691e241483420a2a761d3f15750 affected from a80f7fcf18672ae4971a6b713b58c0d389aa99fe, before 4c0d5778385cb3618ff26a561ce41de2b7d9de70
Other versions: unaffected
|
| Linux |
affected 5.10 unaffected before 5.10 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-50436 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50436
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-50436
trivy image --scanners vuln IMAGE | grep CVE-2022-50436
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
- https://git.kernel.org/stable/c/23ad034760dd38e12b0e0e1b28b9629f330810a1 git.kernel.org
- https://git.kernel.org/stable/c/6220ec405571ded17efedc56587190b542adf246 git.kernel.org
- https://git.kernel.org/stable/c/206dd3acfb9bca54a25b228c7c7c2257eedde09b git.kernel.org
- https://git.kernel.org/stable/c/1ba993208bcfd691e241483420a2a761d3f15750 git.kernel.org
- https://git.kernel.org/stable/c/4c0d5778385cb3618ff26a561ce41de2b7d9de70 git.kernel.org
Source: the record CVE-2022-50436 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.
Vulnpocalypse