CVE-2021-47340

jfs: fix GPF in diFree

State
Published
Severity
Not scored
Published
May 21, 2024
Updated
May 11, 2026
Reserved
May 21, 2024

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 62aff86fdf18657d9eca7878654415f94f16d027 to before 7bde24bde490f3139eee147efc6d60d6040fe975Affected
  • 62aff86fdf18657d9eca7878654415f94f16d027 to before 745c9a59422c63f661f4374ed5181740db4130a1Affected
  • 62aff86fdf18657d9eca7878654415f94f16d027 to before 49def1b0644892e3b113673c13d650c3060b43bcAffected
  • 62aff86fdf18657d9eca7878654415f94f16d027 to before aff8d95b69051d0cf4acc3d91f22299fdbb9dfb3Affected
  • 62aff86fdf18657d9eca7878654415f94f16d027 to before a21e5cb1a64c904f1f0ef7b2d386fc7d2b1d2ce2Affected
  • 62aff86fdf18657d9eca7878654415f94f16d027 to before 8018936950360f1c503bb385e158cfc5e4945d18Affected
  • 62aff86fdf18657d9eca7878654415f94f16d027 to before 3bb27e27240289b47d3466f647a55c567adbdc3aAffected
  • 62aff86fdf18657d9eca7878654415f94f16d027 to before 42f102ea1943ecb10a0756bf75424de5d1d5beedAffected
  • 62aff86fdf18657d9eca7878654415f94f16d027 to before 9d574f985fe33efd6911f4d752de6f485a1ea732Affected
LinuxLinux
  • 2.6.36Affected
  • before 2.6.36Not affected
  • 4.4.276 through 4.4.*Not affected
  • 4.9.276 through 4.9.*Not affected
  • 4.14.240 through 4.14.*Not affected
  • 4.19.198 through 4.19.*Not affected
  • 5.4.133 through 5.4.*Not affected
  • 5.10.51 through 5.10.*Not affected
  • 5.12.18 through 5.12.*Not affected
  • 5.13.3 through 5.13.*Not affected
  • 5.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.