CVE-2024-40966

Medium

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.

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedJul 12, 2024
First seenJul 12, 2024

How to fix

Update
  • linux linux_kernel6.1.96, 6.6.36, 6.9.7 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernelv < 6.1.96, 6.2 ≤ v < 6.6.36, 6.7 ≤ v < 6.9.76.1.96, 6.6.36, 6.9.7

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.