5.5

CVE-2024-40966: tty: add the option to have a tty reject a new ldisc

Modified
AliasesUBUNTU-CVE-2024-40966DEBIAN-CVE-2024-40966
Published 12-07-2024Last modified 11-05-2026

Vulnerability summary

CVE-2024-40966 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 21.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.29%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 21 · Related 18

Timeline

  1. 12-07-2024
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.29%

Chance of exploitation in the next 30 days

Percentile

21%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.29% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu129 products
  • linuxAll versions (No fix recorded) | < 6.8.0-44.44
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 6.8.0-1015.16
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 3c6332f3bb1578b5b10ac2561247b1d6272ae937 | ≥ e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 287b569a5b914903ba7c438a3c0dbc3410ebb409 | ≥ e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 5920ac19964f9e20181f63b410d9200ddbf8dc86 | ≥ e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b | 2.6.35
  • linux_kernel< 6.1.96 | ≥ 6.2, < 6.6.36 | ≥ 6.7, < 6.9.7
Debian1 product
  • linux< 6.1.99-1 | < 6.9.7-1

3 vendors · 132 products

References

16 links
Show all 16 references