Vulnerability · Published May 21, 2024 · Assigned by Linux
CVE-2021-47383tty: Fix out-of-bound vmalloc access in imageblit
High 7.8
In plain English
A high-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 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In the Linux kernel, the following vulnerability has been resolved: tty: Fix out-of-bound vmalloc access in imageblit This issue happens when a userspace program does an ioctl FBIOPUT_VSCREENINFO passing the fb_var_screeninfo struct containing only the fields xres, yres, and bits_per_pixel with values. If this struct is the same as the previous ioctl, the vc_resize() detects it and doesn't call the resize_screen(), leaving the fb_var_screeninfo incomplete. And this leads to the updatescrollmode() calculates a wrong value to fbcon_display->vrows, which makes the real_y() return a wrong value of y, and that value, eventually, causes the imageblit to access an out-of-bound address value. To solve this issue I made the resize_screen() be called even if the screen does not need any resizing, so it will "fix and fill" the fb_var_screeninfo independently.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | bpftool | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | bpftool | 7.3.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-devel-matched | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-debug-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-devel-matched | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-64k-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-abi-stablelists | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-abi-stablelists | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-core | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-cross-headers | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-cross-headers | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-debug | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-debug | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-debug-core | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-debug-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-debug-devel | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-debug-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug-devel-matched | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-debug-modules | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-debug-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-debug-modules-extra | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-debug-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-debug-uki-virt | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-devel | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-devel-matched | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-doc | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-doc | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-headers | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-headers | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-modules | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-modules-extra | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-rt | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:9 | kernel-rt | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-rt-core | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:9 | kernel-rt-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-rt-debug | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:9 | kernel-rt-debug | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-rt-debug-core | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:9 | kernel-rt-debug-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-rt-debug-devel | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:9 | kernel-rt-debug-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-rt-debug-kvm | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:8 | kernel-rt-debug-modules | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:9 | kernel-rt-debug-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-debug-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:9 | kernel-rt-debug-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-rt-devel | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:9 | kernel-rt-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-rt-kvm | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:8 | kernel-rt-modules | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:9 | kernel-rt-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-rt-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-rt-modules-extra | 4.18.0-553.22.1.rt7.363.el8_10 | ALSA-2024:7001 |
| AlmaLinux:9 | kernel-rt-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-tools | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-tools | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-tools-libs | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-tools-libs | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-tools-libs-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-uki-virt | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-zfcpdump | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-zfcpdump | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-zfcpdump-core | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-zfcpdump-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-zfcpdump-devel | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-zfcpdump-devel | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-zfcpdump-devel-matched | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-zfcpdump-modules | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-zfcpdump-modules | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | kernel-zfcpdump-modules-core | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | kernel-zfcpdump-modules-extra | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | kernel-zfcpdump-modules-extra | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | libperf | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | perf | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | perf | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:8 | python3-perf | 4.18.0-553.22.1.el8_10 | ALSA-2024:7000 |
| AlmaLinux:9 | python3-perf | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | rtla | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| AlmaLinux:9 | rv | 5.14.0-427.42.1.el9_4 | ALSA-2024:8617 |
| Debian:12 | linux | 5.14.12-1 | DEBIAN-CVE-2021-47383 |
| Debian:13 | linux | 5.14.12-1 | DEBIAN-CVE-2021-47383 |
| Debian:14 | linux | 5.14.12-1 | DEBIAN-CVE-2021-47383 |
| Rocky Linux:8 | kernel | 0:4.18.0-553.22.1.el8_10 | RLSA-2024:7000 |
| Rocky Linux:9 | kernel | 0:5.14.0-427.42.1.el9_4 | RLSA-2024:8617 |
| Rocky Linux:8 | kernel-rt | 0:4.18.0-553.22.1.rt7.363.el8_10 | RLSA-2024:7001 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2021-47383 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2021-47383 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – before 7e71fcedfda6f7de18f850a6b36e78d78b04476f1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – before 70aed03b1d5a5df974f456cdc8eedb213c94bb8b1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – before 067c694d06040db6f0c65281bb358452ca6d85b91da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – before 8a6a240f52e14356386030d8958ae8b1761d23251da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – before 883f7897a25e3ce14a7f274ca4c73f49ac84002a1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – before d570c48dd37dbe8fc6875d4461d01a9554ae25601da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – before 699d926585daa6ec44be556cdc1ab89e5d54557b1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 – before 3b0c406124719b625b1aba431659f5cdc24a982c |
| Linux | Linux | 2.6.12 |
References
- https://git.kernel.org/stable/c/7e71fcedfda6f7de18f850a6b36e78d78b04476f
- https://git.kernel.org/stable/c/70aed03b1d5a5df974f456cdc8eedb213c94bb8b
- https://git.kernel.org/stable/c/067c694d06040db6f0c65281bb358452ca6d85b9
- https://git.kernel.org/stable/c/8a6a240f52e14356386030d8958ae8b1761d2325
- https://git.kernel.org/stable/c/883f7897a25e3ce14a7f274ca4c73f49ac84002a
- https://git.kernel.org/stable/c/d570c48dd37dbe8fc6875d4461d01a9554ae2560
- https://git.kernel.org/stable/c/699d926585daa6ec44be556cdc1ab89e5d54557b
- https://git.kernel.org/stable/c/3b0c406124719b625b1aba431659f5cdc24a982c