CVE-2021-47340

jfs: fix GPF in diFree

MEDIUM
5.5
CVSS Score
Published: May 21, 2024 at 02:35 PM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.4.2762.6.36 ≤ v < 4.14.2402.6.36 ≤ v < 4.19.1982.6.36 ≤ v < 4.4.2762.6.36 ≤ v < 4.9.2762.6.36 ≤ v < 5.10.512.6.36 ≤ v < 5.12.182.6.36 ≤ v < 5.13.32.6.36 ≤ v < 5.142.6.36 ≤ v < 5.4.1334.10 ≤ v < 4.14.2404.15 ≤ v < 4.19.1984.20 ≤ v < 5.4.1334.5 ≤ v < 4.9.2765.11 ≤ v < 5.12.185.13 ≤ v < 5.13.35.5 ≤ v < 5.10.512.6.3662aff86fdf18657d9eca7878654415f94f16d027
Vendor states this is fixed in 3bb27e27240289b47d3466f647a55c567adbdc3a (fixed)
Vendor states this is fixed in 42f102ea1943ecb10a0756bf75424de5d1d5beed (fixed)
Vendor states this is fixed in 49def1b0644892e3b113673c13d650c3060b43bc (fixed)
Vendor states this is fixed in 745c9a59422c63f661f4374ed5181740db4130a1 (fixed)
Vendor states this is fixed in 7bde24bde490f3139eee147efc6d60d6040fe975 (fixed)
Vendor states this is fixed in 8018936950360f1c503bb385e158cfc5e4945d18 (fixed)
Vendor states this is fixed in 9d574f985fe33efd6911f4d752de6f485a1ea732 (fixed)
Vendor states this is fixed in a21e5cb1a64c904f1f0ef7b2d386fc7d2b1d2ce2 (fixed)
Vendor states this is fixed in aff8d95b69051d0cf4acc3d91f22299fdbb9dfb3 (fixed)
Vendor states this is fixed in 2.6.36 (unaffected)
Vendor states this is fixed in 4.14.240 (unaffected)
Vendor states this is fixed in 4.19.198 (unaffected)
Vendor states this is fixed in 4.4.276 (unaffected)
Vendor states this is fixed in 4.9.276 (unaffected)
Vendor states this is fixed in 5.10.51 (unaffected)
Vendor states this is fixed in 5.12.18 (unaffected)
Vendor states this is fixed in 5.13.3 (unaffected)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.4.133 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3bb27e27240289b47d3466f647a55c567adbdc3a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/42f102ea1943ecb10a0756bf75424de5d1d5beed
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/49def1b0644892e3b113673c13d650c3060b43bc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/745c9a59422c63f661f4374ed5181740db4130a1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7bde24bde490f3139eee147efc6d60d6040fe975
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8018936950360f1c503bb385e158cfc5e4945d18
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9d574f985fe33efd6911f4d752de6f485a1ea732
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a21e5cb1a64c904f1f0ef7b2d386fc7d2b1d2ce2

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card