CWE
416 362
Advisory Published
CVE Published
Updated

CVE-2022-1195: Use After Free

First published: Mon Feb 21 2022(Updated: )

A use-after-free vulnerability was found in drivers/net/hamradio in the Linux kernel. In this flaw, a local attacker with a user privilege may lead to a denial of service (DOS) problem, when mkiss or sixpack device is detached, and reclaim resources early. Reference: <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b2f37aead1b82a770c48b5d583f35ec22aabb61e">https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b2f37aead1b82a770c48b5d583f35ec22aabb61e</a> <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=81b1d548d00bcd028303c4f3150fa753b9b8aa71">https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=81b1d548d00bcd028303c4f3150fa753b9b8aa71</a> <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0b9111922b1f399aba6ed1e1b8f2079c3da1aed8">https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0b9111922b1f399aba6ed1e1b8f2079c3da1aed8</a> <a href="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3e0588c291d6ce225f2b891753ca41d45ba42469">https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3e0588c291d6ce225f2b891753ca41d45ba42469</a> ================================================================== [ 26.882075] BUG: KASAN: use-after-free in tty_insert_flip_string_fixed_flag+0xd8/0x1e0 [ 26.882075] Read of size 85 at addr ffff88800690d000 by task trigger/141 [ 26.882075] [ 26.882075] CPU: 3 PID: 141 Comm: trigger Not tainted 5.11.0 #6 [ 26.882075] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 26.882075] Call Trace: [ 26.882075] dump_stack+0x7d/0xa3 [ 26.882075] print_address_description.constprop.0+0x18/0x130 [ 26.882075] ? tty_insert_flip_string_fixed_flag+0xd8/0x1e0 [ 26.882075] ? tty_insert_flip_string_fixed_flag+0xd8/0x1e0 [ 26.882075] kasan_report.cold+0x7f/0x10e [ 26.882075] ? tty_insert_flip_string_fixed_flag+0xd8/0x1e0 [ 26.882075] check_memory_region+0xf9/0x1e0 [ 26.882075] memcpy+0x20/0x60 [ 26.882075] tty_insert_flip_string_fixed_flag+0xd8/0x1e0 [ 26.882075] pty_write+0xfa/0x1b0 [ 26.882075] ? pty_set_termios+0x5d0/0x5d0 [ 26.882075] ax_encaps+0x9c9/0xb60 [ 26.882075] ax_xmit+0x36a/0x37e [ 26.882075] dev_hard_start_xmit+0x160/0x500 [ 26.882075] sch_direct_xmit+0x20b/0xa00 [ 26.882075] ? qdisc_put_unlocked+0x50/0x50 [ 26.882075] ? sysvec_apic_timer_interrupt+0x33/0xd0 [ 26.882075] ? pfifo_fast_dequeue+0x275/0xa30 [ 26.882075] __qdisc_run+0x3a0/0x1390 [ 26.882075] __dev_queue_xmit+0xabb/0x1b10 [ 26.882075] ? netdev_core_pick_tx+0x2a0/0x2a0 [ 26.882075] ? sysvec_apic_timer_interrupt+0x33/0xd0 [ 26.882075] ? memcpy+0x39/0x60 [ 26.882075] ? ax25_addr_build+0x7e/0x2a0 [ 26.882075] ax25_sendmsg+0xb70/0x1090 [ 26.882075] ? selinux_inode_notifysecctx+0x20/0x20 [ 26.882075] ? ax25_device_event+0x210/0x210 [ 26.882075] ? __fget_files+0x15b/0x210 [ 26.882075] ? ax25_device_event+0x210/0x210 [ 26.882075] sock_sendmsg+0xdf/0x110 [ 26.882075] __sys_sendto+0x19e/0x270 [ 26.882075] ? __ia32_sys_getpeername+0xa0/0xa0 [ 26.882075] ? copy_init_fpstate_to_fpregs+0x70/0x70 [ 26.882075] __x64_sys_sendto+0xd8/0x1b0 [ 26.882075] ? exit_to_user_mode_prepare+0x2c/0x120 [ 26.882075] do_syscall_64+0x33/0x40 [ 26.882075] entry_SYSCALL_64_after_hwframe+0x44/0xa9 &lt;..&gt; ==================================================================

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Linux Linux kernel<5.16
Linux Linux kernel=5.16
Debian Debian Linux=10.0
Debian Debian Linux=11.0
redhat/kernel<5.16
5.16
ubuntu/linux<4.15.0-191.202
4.15.0-191.202
ubuntu/linux<5.4.0-122.138
5.4.0-122.138
ubuntu/linux<5.15.0-35.36
5.15.0-35.36
ubuntu/linux<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux<4.4.0-239.273
4.4.0-239.273
ubuntu/linux-aws<4.15.0-1139.150
4.15.0-1139.150
ubuntu/linux-aws<5.4.0-1081.88
5.4.0-1081.88
ubuntu/linux-aws<5.15.0-1009.11
5.15.0-1009.11
ubuntu/linux-aws<4.4.0-1117.123
4.4.0-1117.123
ubuntu/linux-aws<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws<4.4.0-1155.170
4.4.0-1155.170
ubuntu/linux-aws-5.0<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws-5.11<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws-5.13<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws-5.3<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws-5.4<5.4.0-1081.88~18.04.1
5.4.0-1081.88~18.04.1
ubuntu/linux-aws-5.4<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws-5.8<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws-6.5<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws-fips<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws-hwe<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-aws-hwe<4.15.0-1139.150~16.04.1
4.15.0-1139.150~16.04.1
ubuntu/linux-azure<5.4.0-1086.91
5.4.0-1086.91
ubuntu/linux-azure<5.15.0-1008.9
5.15.0-1008.9
ubuntu/linux-azure<4.15.0-1149.164~14.04.1
4.15.0-1149.164~14.04.1
ubuntu/linux-azure<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure<4.15.0-1149.164~16.04.1
4.15.0-1149.164~16.04.1
ubuntu/linux-azure-4.15<4.15.0-1149.164
4.15.0-1149.164
ubuntu/linux-azure-4.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure-5.11<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure-5.13<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure-5.15<5.15.0-1008.9~20.04.1
5.15.0-1008.9~20.04.1
ubuntu/linux-azure-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure-5.3<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure-5.4<5.4.0-1086.91~18.04.1
5.4.0-1086.91~18.04.1
ubuntu/linux-azure-5.4<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure-6.5<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure-edge<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure-fde<5.4.0-1086.91
5.4.0-1086.91
ubuntu/linux-azure-fde<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure-fde-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-azure-fips<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-bluefield<5.4.0-1042.47
5.4.0-1042.47
ubuntu/linux-bluefield<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-dell300x<4.15.0-1051.56
4.15.0-1051.56
ubuntu/linux-dell300x<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-fips<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gcp<5.4.0-1084.92
5.4.0-1084.92
ubuntu/linux-gcp<5.15.0-1006.9
5.15.0-1006.9
ubuntu/linux-gcp<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gcp<4.15.0-1134.150~16.04.2
4.15.0-1134.150~16.04.2
ubuntu/linux-gcp-4.15<4.15.0-1134.150
4.15.0-1134.150
ubuntu/linux-gcp-4.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gcp-5.11<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gcp-5.13<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gcp-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gcp-5.3<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gcp-5.4<5.4.0-1084.92~18.04.1
5.4.0-1084.92~18.04.1
ubuntu/linux-gcp-5.8<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gcp-6.5<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gcp-fips<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gke<5.4.0-1078.84
5.4.0-1078.84
ubuntu/linux-gke<5.15.0-1006.7
5.15.0-1006.7
ubuntu/linux-gke<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gke-4.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gke-5.0<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gke-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gke-5.3<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gke-5.4<5.4.0-1078.84~18.04.1
5.4.0-1078.84~18.04.1
ubuntu/linux-gke-5.4<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gkeop<5.4.0-1049.52
5.4.0-1049.52
ubuntu/linux-gkeop<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gkeop-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-gkeop-5.4<5.4.0-1049.52~18.04.1
5.4.0-1049.52~18.04.1
ubuntu/linux-gkeop-5.4<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-hwe<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-hwe<4.15.0-191.202~16.04.1
4.15.0-191.202~16.04.1
ubuntu/linux-hwe-5.11<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-hwe-5.13<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-hwe-5.15<5.15.0-41.44~20.04.1
5.15.0-41.44~20.04.1
ubuntu/linux-hwe-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-hwe-5.4<5.4.0-122.138~18.04.1
5.4.0-122.138~18.04.1
ubuntu/linux-hwe-5.4<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-hwe-5.8<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-hwe-6.5<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-hwe-edge<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-ibm<5.4.0-1029.33
5.4.0-1029.33
ubuntu/linux-ibm<5.15.0-1005.5
5.15.0-1005.5
ubuntu/linux-ibm<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-ibm-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-ibm-5.4<5.4.0-1029.33~18.04.1
5.4.0-1029.33~18.04.1
ubuntu/linux-ibm-5.4<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-intel<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-intel-5.13<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-intel-iotg<5.15.0-1008.11
5.15.0-1008.11
ubuntu/linux-intel-iotg<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-intel-iotg-5.15<5.15.0-1008.11~20.04.1
5.15.0-1008.11~20.04.1
ubuntu/linux-intel-iotg-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-iot<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-kvm<4.15.0-1125.130
4.15.0-1125.130
ubuntu/linux-kvm<5.4.0-1071.76
5.4.0-1071.76
ubuntu/linux-kvm<5.15.0-1008.8
5.15.0-1008.8
ubuntu/linux-kvm<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-kvm<4.4.0-1118.128
4.4.0-1118.128
ubuntu/linux-laptop<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-lowlatency<5.15.0-35.36
5.15.0-35.36
ubuntu/linux-lowlatency<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-lowlatency-hwe-5.15<5.15.0-42.45~20.04.1
5.15.0-42.45~20.04.1
ubuntu/linux-lowlatency-hwe-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-lowlatency-hwe-5.19<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-lowlatency-hwe-6.5<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-lts-xenial<4.4.0-239.273~14.04.1
4.4.0-239.273~14.04.1
ubuntu/linux-lts-xenial<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-nvidia<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-nvidia-6.5<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oem<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oem-5.10<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oem-5.13<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oem-5.14<5.14.0-1036.40
5.14.0-1036.40
ubuntu/linux-oem-5.17<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oem-5.6<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oem-6.0<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oem-6.1<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oem-6.5<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oem-6.8<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oem-osp1<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oracle<4.15.0-1104.115
4.15.0-1104.115
ubuntu/linux-oracle<5.4.0-1079.87
5.4.0-1079.87
ubuntu/linux-oracle<5.15.0-1007.9
5.15.0-1007.9
ubuntu/linux-oracle<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oracle<4.15.0-1104.115~16.04.1
4.15.0-1104.115~16.04.1
ubuntu/linux-oracle-5.0<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oracle-5.11<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oracle-5.13<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oracle-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oracle-5.3<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-oracle-5.4<5.4.0-1079.87~18.04.1
5.4.0-1079.87~18.04.1
ubuntu/linux-oracle-6.5<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-raspi<5.4.0-1066.76
5.4.0-1066.76
ubuntu/linux-raspi<5.15.0-1011.13
5.15.0-1011.13
ubuntu/linux-raspi<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-raspi-5.4<5.4.0-1066.76~18.04.1
5.4.0-1066.76~18.04.1
ubuntu/linux-raspi-5.4<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-raspi2<4.15.0-1117.125
4.15.0-1117.125
ubuntu/linux-raspi2<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-raspi2-5.3<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-riscv<5.15.0-1012.13
5.15.0-1012.13
ubuntu/linux-riscv<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-riscv-5.11<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-riscv-5.15<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-riscv-5.8<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-riscv-6.5<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-snapdragon<4.15.0-1135.145
4.15.0-1135.145
ubuntu/linux-snapdragon<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-starfive<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-starfive-6.5<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
ubuntu/linux-xilinx-zynqmp<5.16~<5.4.192<5.15.35
5.16~
5.4.192
5.15.35
debian/linux
5.10.218-1
5.10.221-1
6.1.94-1
6.1.99-1
6.9.8-1
6.9.9-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203