CVE-2021-47340

jfs: fix GPF in diFree

No CVSS score yet EPSS 0.26%

Published 21 May 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-47340

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-2021-47340 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:

jfs: fix GPF in diFree

Avoid passing inode with JFS_SBI(inode->i_sb)->ipimap == NULL to diFree()[1]. GFP will appear:

struct inode *ipimap = JFS_SBI(ip->i_sb)->ipimap; struct inomap *imap = JFS_IP(ipimap)->i_imap;

JFS_IP() will return invalid pointer when ipimap == NULL

Call Trace: diFree+0x13d/0x2dc0 fs/jfs/jfs_imap.c:853 [1] jfs_evict_inode+0x2c9/0x370 fs/jfs/inode.c:154 evict+0x2ed/0x750 fs/inode.c:578 iput_final fs/inode.c:1654 [inline] iput.part.0+0x3fe/0x820 fs/inode.c:1680 iput+0x58/0x70 fs/inode.c:1670

Exploitation

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

The assessment of CISA (SSVC, 23 May 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 62aff86fdf18657d9eca7878654415f94f16d027, before 7bde24bde490f3139eee147efc6d60d6040fe975
affected from 62aff86fdf18657d9eca7878654415f94f16d027, before 745c9a59422c63f661f4374ed5181740db4130a1
affected from 62aff86fdf18657d9eca7878654415f94f16d027, before 49def1b0644892e3b113673c13d650c3060b43bc
affected from 62aff86fdf18657d9eca7878654415f94f16d027, before aff8d95b69051d0cf4acc3d91f22299fdbb9dfb3
affected from 62aff86fdf18657d9eca7878654415f94f16d027, before a21e5cb1a64c904f1f0ef7b2d386fc7d2b1d2ce2
affected from 62aff86fdf18657d9eca7878654415f94f16d027, before 8018936950360f1c503bb385e158cfc5e4945d18
affected from 62aff86fdf18657d9eca7878654415f94f16d027, before 3bb27e27240289b47d3466f647a55c567adbdc3a
affected from 62aff86fdf18657d9eca7878654415f94f16d027, before 42f102ea1943ecb10a0756bf75424de5d1d5beed
affected from 62aff86fdf18657d9eca7878654415f94f16d027, before 9d574f985fe33efd6911f4d752de6f485a1ea732
Other versions: unaffected
Linux
affected 2.6.36
unaffected before 2.6.36
unaffected from 4.4.276 up to and including 4.4.*
unaffected from 4.9.276 up to and including 4.9.*
unaffected from 4.14.240 up to and including 4.14.*
unaffected from 4.19.198 up to and including 4.19.*
unaffected from 5.4.133 up to and including 5.4.*
unaffected from 5.10.51 up to and including 5.10.*
unaffected from 5.12.18 up to and including 5.12.*
unaffected from 5.13.3 up to and including 5.13.*
unaffected 5.14 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-2021-47340 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47340

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-2021-47340
trivy image --scanners vuln IMAGE | grep CVE-2021-47340

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-2021-47340 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.