CVE-2024-40966

MEDIUM

Linux Kernel - Denial of Service via Virtual Terminal Line Discipline Change

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: tty: add the option to have a tty reject a new ldisc ... and use it to limit the virtual terminals to just N_TTY. They are kind of special, and in particular, the "con_write()" routine violates the "writes cannot sleep" rule that some ldiscs rely on. This avoids the BUG: sleeping function called from invalid context at kernel/printk/printk.c:2659 when N_GSM has been attached to a virtual console, and gsmld_write() calls con_write() while holding a spinlock, and con_write() then tries to get the console lock.

Scores

CVSS v3 5.5
EPSS 0.0029
EPSS Percentile 21.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

Status published
Products (14)
linux/Kernel 2.6.35 - 6.1.96linux
linux/Kernel 6.2.0 - 6.6.36linux
linux/Kernel 6.7.0 - 6.9.7linux
Linux/Linux < 2.6.35
Linux/Linux 2.6.35
Linux/Linux 6.1.96 - 6.1.*
Linux/Linux 6.10
Linux/Linux 6.6.36 - 6.6.*
Linux/Linux 6.9.7 - 6.9.*
Linux/Linux e1eaea46bb4020b38a141b84f88565d4603f8dd0 - 287b569a5b914903ba7c438a3c0dbc3410ebb409
... and 4 more
Published Jul 12, 2024
Tracked Since Feb 18, 2026