CVE-2022-49441: tty: fix deadlock caused by calling printk() under tty_port->lock

Published Feb 26, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

tty: fix deadlock caused by calling printk() under ttyport->lock

ptywrite() invokes kmalloc() which may invoke a normal printk() to print failure message. This can cause a deadlock in the scenario reported by syz-bot below:

CPU0 CPU1 CPU2 ---- ---- ---- lock(consoleowner); lock(&portlockkey); lock(&port->lock); lock(&portlockkey); lock(&port->lock); lock(consoleowner);

As commit dbdda842fe96 ("printk: Add console owner and waiter logic to load balance console writes") said, such deadlock can be prevented by using printkdeferred() in kmalloc() (which is invoked in the section guarded by the port->lock). But there are too many printk() on the kmalloc() path, and kmalloc() can be called from anywhere, so changing printk() to printkdeferred() is too complicated and inelegant.

Therefore, this patch chooses to specify GFPNOWARN to kmalloc(), so that printk() will not be called, and this deadlock problem can be avoided.

Syzbot reported the following lockdep error:

====================================================== WARNING: possible circular locking dependency detected 5.4.143-00237-g08ccc19a-dirty #10 Not tainted ------------------------------------------------------ syz-executor.4/29420 is trying to acquire lock: ffffffff8aedb2a0 (consoleowner){....}-{0:0}, at: consoletrylockspinning kernel/printk/printk.c:1752 [inline] ffffffff8aedb2a0 (consoleowner){....}-{0:0}, at: vprintkemit+0x2ca/0x470 kernel/printk/printk.c:2023

but task is already holding lock: ffff8880119c9158 (&port->lock){-.-.}-{2:2}, at: ptywrite+0xf4/0x1f0 drivers/tty/pty.c:120

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-> #2 (&port->lock){-.-.}-{2:2}: rawspinlockirqsave include/linux/spinlockapismp.h:110 [inline] rawspinlockirqsave+0x35/0x50 kernel/locking/spinlock.c:159 ttyportttyget drivers/tty/ttyport.c:288 [inline] <-- lock(&port->lock); ttyportdefaultwakeup+0x1d/0xb0 drivers/tty/ttyport.c:47 serial8250txchars+0x530/0xa80 drivers/tty/serial/8250/8250port.c:1767 serial8250handleirq.part.0+0x31f/0x3d0 drivers/tty/serial/8250/8250port.c:1854 serial8250handleirq drivers/tty/serial/8250/8250port.c:1827 [inline] <-- lock(&portlockkey); serial8250defaulthandleirq+0xb2/0x220 drivers/tty/serial/8250/8250port.c:1870 serial8250interrupt+0xfd/0x200 drivers/tty/serial/8250/8250core.c:126 handleirqeventpercpu+0x109/0xa50 kernel/irq/handle.c:156 [...]

-> #1 (&portlockkey){-.-.}-{2:2}: rawspinlockirqsave include/linux/spinlockapismp.h:110 [inline] rawspinlockirqsave+0x35/0x50 kernel/locking/spinlock.c:159 serial8250consolewrite+0x184/0xa40 drivers/tty/serial/8250/8250port.c:3198 <-- lock(&portlockkey); callconsoledrivers kernel/printk/printk.c:1819 [inline] consoleunlock+0x8cb/0xd00 kernel/printk/printk.c:2504 vprintkemit+0x1b5/0x470 kernel/printk/printk.c:2024 <-- lock(consoleowner); vprintkfunc+0x8d/0x250 kernel/printk/printksafe.c:394 printk+0xba/0xed kernel/printk/printk.c:2084 registerconsole+0x8b3/0xc10 kernel/printk/printk.c:2829 univ8250consoleinit+0x3a/0x46 drivers/tty/serial/8250/8250core.c:681 consoleinit+0x49d/0x6d3 kernel/printk/printk.c:2915 startkernel+0x5e9/0x879 init/main.c:713 secondarystartup64+0xa4/0xb0 arch/x86/kernel/head64.S:241

-> #0 (consoleowner){....}-{0:0}: [...] lockacquire+0x127/0x340 kernel/locking/lockdep.c:4734 consoletrylockspinning kernel/printk/printk.c:1773 ---truncated---

Affected Software

178 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=3.18.118<3.19
Linux Linux kernel>=4.4.146<4.5
Linux Linux kernel>=4.9.117<4.9.318
Linux Linux kernel>=4.14.60<4.14.283
Linux Linux kernel>=4.17.12<4.19.247
Linux Linux kernel>=4.20<5.4.198
Linux Linux kernel>=5.5<5.10.121
Linux Linux kernel>=5.11<5.15.46
Linux Linux kernel>=5.16<5.17.14
Linux Linux kernel>=5.18<5.18.3
ubuntu/linux-aws<4.4.0-1117.123
4.4.0-1117.123
ubuntu/linux-azure<4.15.0-1150.165~14.04.1
4.15.0-1150.165~14.04.1
ubuntu/linux-lts-xenial<4.4.0-239.273~14.04.1
4.4.0-239.273~14.04.1
ubuntu/linux<4.4.0-239.273
4.4.0-239.273
ubuntu/linux-aws<4.4.0-1155.170
4.4.0-1155.170
ubuntu/linux-aws-hwe<4.15.0-1140.151~16.04.1
4.15.0-1140.151~16.04.1
ubuntu/linux-azure<4.15.0-1150.165~16.04.1
4.15.0-1150.165~16.04.1
ubuntu/linux-gcp<4.15.0-1135.151~16.04.2
4.15.0-1135.151~16.04.2
ubuntu/linux-hwe<4.15.0-192.203~16.04.1
4.15.0-192.203~16.04.1
ubuntu/linux-kvm<4.4.0-1118.128
4.4.0-1118.128
ubuntu/linux-oracle<4.15.0-1105.116~16.04.1
4.15.0-1105.116~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1088.95
4.4.0-1088.95
ubuntu/linux-fips*
ubuntu/linux<4.15.0-192.203
4.15.0-192.203
ubuntu/linux-aws<4.15.0-1140.151
4.15.0-1140.151
ubuntu/linux-aws-5.4<5.4.0-1085.92~18.04.1
5.4.0-1085.92~18.04.1
ubuntu/linux-azure-4.15<4.15.0-1150.165
4.15.0-1150.165
ubuntu/linux-azure-5.4<5.4.0-1091.96~18.04.1
5.4.0-1091.96~18.04.1
ubuntu/linux-gcp-4.15<4.15.0-1135.151
4.15.0-1135.151
ubuntu/linux-gcp-5.4<5.4.0-1089.97~18.04.1
5.4.0-1089.97~18.04.1
ubuntu/linux-hwe-5.4<5.4.0-126.142~18.04.1
5.4.0-126.142~18.04.1
ubuntu/linux-ibm-5.4<5.4.0-1033.37~18.04.1
5.4.0-1033.37~18.04.1
ubuntu/linux-kvm<4.15.0-1126.131
4.15.0-1126.131
ubuntu/linux-oracle<4.15.0-1105.116
4.15.0-1105.116
ubuntu/linux-oracle-5.4<5.4.0-1083.91~18.04.1
5.4.0-1083.91~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1070.80~18.04.1
5.4.0-1070.80~18.04.1
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-azure*
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-5.3*
ubuntu/linux-gke-4.15*
ubuntu/linux-gke-5.4*
ubuntu/linux-gkeop-5.4*
ubuntu/linux-hwe*
ubuntu/linux-hwe-edge*
ubuntu/linux-oem*
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-aws-fips<4.15.0-2079.84
4.15.0-2079.84
ubuntu/linux-azure-fips<4.15.0-2060.66
4.15.0-2060.66
ubuntu/linux-fips<4.15.0-1097.108
4.15.0-1097.108
ubuntu/linux-gcp-fips<4.15.0-2044.49
4.15.0-2044.49
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-126.142
5.4.0-126.142
ubuntu/linux-aws<5.4.0-1085.92
5.4.0-1085.92
ubuntu/linux-aws-5.15<5.15.0-1019.23~20.04.1
5.15.0-1019.23~20.04.1
ubuntu/linux-azure<5.4.0-1091.96
5.4.0-1091.96
ubuntu/linux-azure-5.15<5.15.0-1019.24~20.04.1
5.15.0-1019.24~20.04.1
ubuntu/linux-bluefield<5.4.0-1046.51
5.4.0-1046.51
ubuntu/linux-gcp<5.4.0-1089.97
5.4.0-1089.97
ubuntu/linux-gcp-5.15<5.15.0-1017.23~20.04.2
5.15.0-1017.23~20.04.2
ubuntu/linux-hwe-5.15<5.15.0-48.54~20.04.1
5.15.0-48.54~20.04.1
ubuntu/linux-ibm<5.4.0-1033.37
5.4.0-1033.37
ubuntu/linux-intel-iotg-5.15<5.15.0-1015.20~20.04.2
5.15.0-1015.20~20.04.2
ubuntu/linux-iot<5.4.0-1004.6
5.4.0-1004.6
ubuntu/linux-kvm<5.4.0-1075.80
5.4.0-1075.80
ubuntu/linux-lowlatency-hwe-5.15<5.15.0-48.54~20.04.1
5.15.0-48.54~20.04.1
ubuntu/linux-oracle<5.4.0-1083.91
5.4.0-1083.91
ubuntu/linux-oracle-5.15<5.15.0-1017.22~20.04.1
5.15.0-1017.22~20.04.1
ubuntu/linux-raspi<5.4.0-1070.80
5.4.0-1070.80
ubuntu/linux-riscv-5.15<5.15.0-1018.21~20.04.1
5.15.0-1018.21~20.04.1
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.13*
ubuntu/linux-aws-5.8*
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.13*
ubuntu/linux-azure-5.8*
ubuntu/linux-azure-fde*
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.13*
ubuntu/linux-gcp-5.8*
ubuntu/linux-gke*
ubuntu/linux-gke-5.15*
ubuntu/linux-gkeop*
ubuntu/linux-gkeop-5.15*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.13*
ubuntu/linux-hwe-5.8*
ubuntu/linux-intel-5.13*
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.13*
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.8*
ubuntu/linux-aws-fips<5.4.0-1085.92+fips1
5.4.0-1085.92+fips1
ubuntu/linux-azure-fips<5.4.0-1091.96+fips1
5.4.0-1091.96+fips1
ubuntu/linux-fips<5.4.0-1061.69
5.4.0-1061.69
ubuntu/linux-gcp-fips<5.4.0-1089.97+fips1
5.4.0-1089.97+fips1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.15.0-47.51
5.15.0-47.51
ubuntu/linux-allwinner-5.19*
ubuntu/linux-aws<5.15.0-1019.23
5.15.0-1019.23
ubuntu/linux-aws-5.19*
ubuntu/linux-aws-6.2*
ubuntu/linux-aws-6.5*
ubuntu/linux-azure<5.15.0-1019.24
5.15.0-1019.24
ubuntu/linux-azure-5.19*
ubuntu/linux-azure-6.2*
ubuntu/linux-azure-6.5*
ubuntu/linux-azure-fde-5.19*
ubuntu/linux-azure-fde-6.2*
ubuntu/linux-gcp<5.15.0-1017.23
5.15.0-1017.23
ubuntu/linux-gcp-5.19*
ubuntu/linux-gcp-6.2*
ubuntu/linux-gcp-6.5*
ubuntu/linux-gke<5.15.0-1015.18
5.15.0-1015.18
ubuntu/linux-gkeop<5.15.0-1002.4
5.15.0-1002.4
ubuntu/linux-hwe-5.19*
ubuntu/linux-hwe-6.2*
ubuntu/linux-hwe-6.5*
ubuntu/linux-ibm<5.15.0-1013.15
5.15.0-1013.15
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-intel-iotg<5.15.0-1015.20
5.15.0-1015.20
ubuntu/linux-kvm<5.15.0-1017.21
5.15.0-1017.21
ubuntu/linux-lowlatency<5.15.0-47.53
5.15.0-47.53
ubuntu/linux-lowlatency-hwe-5.19*
ubuntu/linux-lowlatency-hwe-6.2*
ubuntu/linux-lowlatency-hwe-6.5*
ubuntu/linux-nvidia<5.15.0-1007.7
5.15.0-1007.7
ubuntu/linux-nvidia-6.2*
ubuntu/linux-nvidia-6.5*
ubuntu/linux-oem-5.17*
ubuntu/linux-oem-6.0*
ubuntu/linux-oem-6.1*
ubuntu/linux-oem-6.5*
ubuntu/linux-oracle<5.15.0-1017.22
5.15.0-1017.22
ubuntu/linux-oracle-6.5*
ubuntu/linux-raspi<5.15.0-1014.16
5.15.0-1014.16
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.19*
ubuntu/linux-riscv-6.5*
ubuntu/linux-starfive-5.19*
ubuntu/linux-starfive-6.2*
ubuntu/linux-starfive-6.5*
ubuntu/linux-realtime<5.15.0-1020.20
5.15.0-1020.20
ubuntu/linux-raspi-realtime*
linux/kernel>=3.18.118<3.19
3.19
linux/kernel>=4.4.146<4.5
4.5
linux/kernel>=4.9.117<4.9.318
4.9.318
linux/kernel>=4.14.60<4.14.283
4.14.283
linux/kernel>=4.17.12<4.18
4.18
linux/kernel>=4.18.0<4.19.247
4.19.247
linux/kernel>=4.20.0<5.4.198
5.4.198
linux/kernel>=5.5.0<5.10.121
5.10.121
linux/kernel>=5.11.0<5.15.46
5.15.46
linux/kernel>=5.16.0<5.17.14
5.17.14
linux/kernel>=5.18.0<5.18.3
5.18.3
debian/linux<5.18.5-1
5.18.5-1
debian/linux<5.18.5-1
5.18.5-1
debian/linux<5.18.5-1
5.18.5-1
debian/linux
5.10.127-15.18.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1117.123
  2. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1150.165~14.04.1
  3. Upgrade

    Upgrade ubuntu/linux-lts-xenial to a version that resolves this vulnerability.

    Fixed in 4.4.0-239.273~14.04.1
  4. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.4.0-239.273
  5. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1155.170
  6. Upgrade

    Upgrade ubuntu/linux-aws-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-1140.151~16.04.1
  7. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1150.165~16.04.1
  8. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 4.15.0-1135.151~16.04.2
  9. Upgrade

    Upgrade ubuntu/linux-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-192.203~16.04.1
  10. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.4.0-1118.128
  11. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1105.116~16.04.1
  12. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.4.0-1088.95
  13. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.15.0-192.203
  14. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.15.0-1140.151
  15. Upgrade

    Upgrade ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1085.92~18.04.1
  16. Upgrade

    Upgrade ubuntu/linux-azure-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1150.165
  17. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1091.96~18.04.1
  18. Upgrade

    Upgrade ubuntu/linux-gcp-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1135.151
  19. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1089.97~18.04.1
  20. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-126.142~18.04.1
  21. Upgrade

    Upgrade ubuntu/linux-ibm-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1033.37~18.04.1
  22. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.15.0-1126.131
  23. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1105.116
  24. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1083.91~18.04.1
  25. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1070.80~18.04.1
  26. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2079.84
  27. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2060.66
  28. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-1097.108
  29. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2044.49
  30. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.4.0-126.142
  31. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1085.92
  32. Upgrade

    Upgrade ubuntu/linux-aws-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1019.23~20.04.1
  33. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1091.96
  34. Upgrade

    Upgrade ubuntu/linux-azure-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1019.24~20.04.1
  35. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1046.51
  36. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1089.97
  37. Upgrade

    Upgrade ubuntu/linux-gcp-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.23~20.04.2
  38. Upgrade

    Upgrade ubuntu/linux-hwe-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-48.54~20.04.1
  39. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1033.37
  40. Upgrade

    Upgrade ubuntu/linux-intel-iotg-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1015.20~20.04.2
  41. Upgrade

    Upgrade ubuntu/linux-iot to a version that resolves this vulnerability.

    Fixed in 5.4.0-1004.6
  42. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1075.80
  43. Upgrade

    Upgrade ubuntu/linux-lowlatency-hwe-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-48.54~20.04.1
  44. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1083.91
  45. Upgrade

    Upgrade ubuntu/linux-oracle-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.22~20.04.1
  46. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1070.80
  47. Upgrade

    Upgrade ubuntu/linux-riscv-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1018.21~20.04.1
  48. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1085.92+fips1
  49. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1091.96+fips1
  50. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1061.69
  51. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1089.97+fips1
  52. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.15.0-47.51
  53. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.15.0-1019.23
  54. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.15.0-1019.24
  55. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.23
  56. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.15.0-1015.18
  57. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.15.0-1002.4
  58. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.15.0-1013.15
  59. Upgrade

    Upgrade ubuntu/linux-intel-iotg to a version that resolves this vulnerability.

    Fixed in 5.15.0-1015.20
  60. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.21
  61. Upgrade

    Upgrade ubuntu/linux-lowlatency to a version that resolves this vulnerability.

    Fixed in 5.15.0-47.53
  62. Upgrade

    Upgrade ubuntu/linux-nvidia to a version that resolves this vulnerability.

    Fixed in 5.15.0-1007.7
  63. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.15.0-1017.22
  64. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.15.0-1014.16
  65. Upgrade

    Upgrade ubuntu/linux-realtime to a version that resolves this vulnerability.

    Fixed in 5.15.0-1020.20
  66. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 3.19
  67. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 4.5
  68. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 4.9.318
  69. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 4.14.283
  70. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 4.18
  71. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 4.19.247
  72. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.4.198
  73. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.10.121
  74. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.46
  75. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.17.14
  76. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.18.3
  77. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.18.5-1
  78. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.127-1Fixed in 5.18.5-1
  79. Configuration

    Specify __GFP_NOWARN in the kmalloc() call used by pty_write() to prevent allocation failures from invoking printk() while tty_port->lock is held.

    Linux tty pty_write() kmalloc() __GFP_NOWARN = enabled

Event History

Feb 26, 2025
CVE Published
via MITRE·02:12 AM
Data Sourced
via MITRE·02:12 AM
Description
Data Sourced
via OSV·02:12 AM
DescriptionSeverityAffected Software
Event
via OSV·07:01 AM
Data Sourced
via NVD·07:01 AM
Description
Mar 17, 2025
Data Sourced
via NVD·04:53 PM
RemedySeverityWeaknessAffected Software
Oct 1, 2025
Updated
via NVD·08:16 PM
SeverityWeaknessAffected Software
Nov 11, 2026
Updated
via OSV·09:37 AM
Affected Software
Nov 12, 2026
Updated
via OSV·05:23 PM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-49441?

The severity of CVE-2022-49441 is considered high due to the potential for deadlock situations in the Linux kernel.

2

How do I fix CVE-2022-49441?

To fix CVE-2022-49441, update the Linux kernel to a version that is not affected by this vulnerability.

3

What does CVE-2022-49441 affect?

CVE-2022-49441 affects multiple versions of the Linux kernel ranging from 3.18 to 5.18.

4

What is the impact of CVE-2022-49441?

The impact of CVE-2022-49441 is that it can lead to system deadlocks due to a flaw in the tty subsystem of the Linux kernel.

5

Is CVE-2022-49441 exploitable remotely?

CVE-2022-49441 is not typically exploitable remotely, as it requires local access to trigger the deadlock condition.

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