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

Affected SoftwareAffected VersionHow to fix
redhat/kernel<5.16
5.16
Linux Kernel<5.16
Linux Kernel=5.16
Debian Linux=10.0
Debian Linux=11.0
debian/linux
5.10.223-1
5.10.234-1
6.1.129-1
6.1.133-1
6.12.21-1
6.12.22-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.

Frequently Asked Questions

  • What is the severity of CVE-2022-1195?

    CVE-2022-1195 is categorized as a denial of service vulnerability affecting the Linux kernel.

  • How do I fix CVE-2022-1195?

    To mitigate CVE-2022-1195, update your Linux kernel to version 5.16 or the patched versions specified by your distribution.

  • Which Linux systems are affected by CVE-2022-1195?

    CVE-2022-1195 affects Linux kernel versions below 5.16 and certain Debian and Red Hat Linux distributions.

  • What type of attack can exploit CVE-2022-1195?

    CVE-2022-1195 can be exploited by a local attacker to cause denial of service through a use-after-free condition.

  • Is CVE-2022-1195 a remote or local vulnerability?

    CVE-2022-1195 is a local vulnerability that requires user privileges to exploit.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203