{"id":"CVE-2024-40966","published":"2024-07-12T12:32:06Z","modified":"2026-05-11T20:23:17Z","title":"tty: add the option to have a tty reject a new ldisc","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntty: add the option to have a tty reject a new ldisc\n\n... and use it to limit the virtual terminals to just N_TTY.  They are\nkind of special, and in particular, the \"con_write()\" routine violates\nthe \"writes cannot sleep\" rule that some ldiscs rely on.\n\nThis avoids the\n\n   BUG: sleeping function called from invalid context at kernel/printk/printk.c:2659\n\nwhen N_GSM has been attached to a virtual console, and gsmld_write()\ncalls con_write() while holding a spinlock, and con_write() then tries\nto get the console lock.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00288,"percentile":0.2187,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/3c6332f3bb1578b5b10ac2561247b1d6272ae937","tags":[]},{"url":"https://git.kernel.org/stable/c/287b569a5b914903ba7c438a3c0dbc3410ebb409","tags":[]},{"url":"https://git.kernel.org/stable/c/5920ac19964f9e20181f63b410d9200ddbf8dc86","tags":[]},{"url":"https://git.kernel.org/stable/c/6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]}],"priority":{"score":4.4,"factors":[{"name":"EPSS percentile","points":4.37}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 3c6332f3bb1578b5b10ac2561247b1d6272ae937",">= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 287b569a5b914903ba7c438a3c0dbc3410ebb409",">= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 5920ac19964f9e20181f63b410d9200ddbf8dc86",">= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b"]},{"vendor":"Linux","product":"Linux","versions":["2.6.35"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:03:10.358016Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-38763","exploited":false,"provenance":"source"}}