Vulnerability · Published May 21, 2024 · Assigned by Linux
CVE-2021-47340jfs: fix GPF in diFree
Medium 5.5
In plain English
A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 5.14.6-1 | DEBIAN-CVE-2021-47340 |
| Debian:13 | linux | 5.14.6-1 | DEBIAN-CVE-2021-47340 |
| Debian:14 | linux | 5.14.6-1 | DEBIAN-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2021-47340 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2021-47340 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 62aff86fdf18657d9eca7878654415f94f16d027 – before 7bde24bde490f3139eee147efc6d60d6040fe97562aff86fdf18657d9eca7878654415f94f16d027 – before 745c9a59422c63f661f4374ed5181740db4130a162aff86fdf18657d9eca7878654415f94f16d027 – before 49def1b0644892e3b113673c13d650c3060b43bc62aff86fdf18657d9eca7878654415f94f16d027 – before aff8d95b69051d0cf4acc3d91f22299fdbb9dfb362aff86fdf18657d9eca7878654415f94f16d027 – before a21e5cb1a64c904f1f0ef7b2d386fc7d2b1d2ce262aff86fdf18657d9eca7878654415f94f16d027 – before 8018936950360f1c503bb385e158cfc5e4945d1862aff86fdf18657d9eca7878654415f94f16d027 – before 3bb27e27240289b47d3466f647a55c567adbdc3a62aff86fdf18657d9eca7878654415f94f16d027 – before 42f102ea1943ecb10a0756bf75424de5d1d5beed |
| Linux | Linux | 2.6.36 |
References
- https://git.kernel.org/stable/c/7bde24bde490f3139eee147efc6d60d6040fe975
- https://git.kernel.org/stable/c/745c9a59422c63f661f4374ed5181740db4130a1
- https://git.kernel.org/stable/c/49def1b0644892e3b113673c13d650c3060b43bc
- https://git.kernel.org/stable/c/aff8d95b69051d0cf4acc3d91f22299fdbb9dfb3
- https://git.kernel.org/stable/c/a21e5cb1a64c904f1f0ef7b2d386fc7d2b1d2ce2
- https://git.kernel.org/stable/c/8018936950360f1c503bb385e158cfc5e4945d18
- https://git.kernel.org/stable/c/3bb27e27240289b47d3466f647a55c567adbdc3a
- https://git.kernel.org/stable/c/42f102ea1943ecb10a0756bf75424de5d1d5beed
- https://git.kernel.org/stable/c/9d574f985fe33efd6911f4d752de6f485a1ea732