CVE-2021-47340 json
jfs: fix GPF in diFree
published 2024-05-21 2 y ago modified 2026-06-17 4 mo ago also EUVD-2021-34345
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 17%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- Linux Linux 4.4.276, 4.9.276, 4.14.240, 4.19.198, 5.4.133, 5.10.51, 5.12.18, 5.13.3, 5.14
- linux Debian 14, Debian 13, Debian 12 5.14.6-1
debian advisories DEBIAN-CVE-2021-47340
- linux Ubuntu 18.04 LTS 4.15.0-156.163
- linux Ubuntu 20.04 LTS 5.4.0-84.94
- linux-aws Ubuntu 18.04 LTS 4.15.0-1111.118
- linux-aws Ubuntu 20.04 LTS 5.4.0-1056.59
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1052.56
- linux-kvm Ubuntu 18.04 LTS 4.15.0-1099.101
- linux-kvm Ubuntu 20.04 LTS 5.4.0-1046.48
- linux-azure Ubuntu 20.04 LTS 5.4.0-1058.60
ubuntu advisories UBUNTU-CVE-2021-47340
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-64kb SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS, Enterprise Storage 7.1 5.3.18-150300.59.164.1
- kernel-syms SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.164.1
- kernel-source SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.164.1
- kernel-default SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +5 more 5.3.18-150300.59.164.1
- kernel-preempt SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.164.1
- kernel-obs-build SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE High Performance Computing 15 SP3-LTSS +1 more 5.3.18-150300.59.164.1
- kernel-default-base SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Micro 5.2 +3 more 5.3.18-150300.59.164.1.150300.18.96.1
- kernel-rt SLE Micro 5.2, SLE Micro 5.1 5.3.18-150300.172.1
suse advisories SUSE-SU-2024:2185-1SUSE-SU-2024:2010-1
- git.kernel.org/stable/c/7bde24bde490f3139eee147efc6d60d6040fe975 commit
- git.kernel.org/stable/c/745c9a59422c63f661f4374ed5181740db4130a1 commit
- git.kernel.org/stable/c/49def1b0644892e3b113673c13d650c3060b43bc commit
- git.kernel.org/stable/c/aff8d95b69051d0cf4acc3d91f22299fdbb9dfb3 commit
- git.kernel.org/stable/c/a21e5cb1a64c904f1f0ef7b2d386fc7d2b1d2ce2 commit
- git.kernel.org/stable/c/8018936950360f1c503bb385e158cfc5e4945d18 commit
- git.kernel.org/stable/c/3bb27e27240289b47d3466f647a55c567adbdc3a commit
- git.kernel.org/stable/c/42f102ea1943ecb10a0756bf75424de5d1d5beed commit
- git.kernel.org/stable/c/9d574f985fe33efd6911f4d752de6f485a1ea732 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-47340 updated cvss 5.5
kernel: jfs: fix GPF in diFree
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: workaround, no fix planned “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.26% chance of exploitation in the next 30 days, higher than 17% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
-
git.kernel.org
/stable/c/7bde24bde490f3139eee147efc6d60d6040fe975
patch
-
git.kernel.org
/stable/c/745c9a59422c63f661f4374ed5181740db4130a1
patch
-
git.kernel.org
/stable/c/49def1b0644892e3b113673c13d650c3060b43bc
patch
-
git.kernel.org
/stable/c/aff8d95b69051d0cf4acc3d91f22299fdbb9dfb3
patch
-
git.kernel.org
/stable/c/a21e5cb1a64c904f1f0ef7b2d386fc7d2b1d2ce2
patch
-
git.kernel.org
/stable/c/8018936950360f1c503bb385e158cfc5e4945d18
patch
-
git.kernel.org
/stable/c/3bb27e27240289b47d3466f647a55c567adbdc3a
patch
-
git.kernel.org
/stable/c/42f102ea1943ecb10a0756bf75424de5d1d5beed
patch
-
git.kernel.org
/stable/c/9d574f985fe33efd6911f4d752de6f485a1ea732
patch
Sources
- CVE List CVE-2021-47340
- NVD CVE-2021-47340
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.