{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-40966","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-07-12T12:17:45.602Z","datePublished":"2024-07-12T12:32:06.122Z","dateUpdated":"2026-01-05T10:36:55.587Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-01-05T10:36:55.587Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/tty_ldisc.c","drivers/tty/vt/vt.c","include/linux/tty_driver.h"],"versions":[{"version":"e1eaea46bb4020b38a141b84f88565d4603f8dd0","lessThan":"3c6332f3bb1578b5b10ac2561247b1d6272ae937","status":"affected","versionType":"git"},{"version":"e1eaea46bb4020b38a141b84f88565d4603f8dd0","lessThan":"287b569a5b914903ba7c438a3c0dbc3410ebb409","status":"affected","versionType":"git"},{"version":"e1eaea46bb4020b38a141b84f88565d4603f8dd0","lessThan":"5920ac19964f9e20181f63b410d9200ddbf8dc86","status":"affected","versionType":"git"},{"version":"e1eaea46bb4020b38a141b84f88565d4603f8dd0","lessThan":"6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/tty_ldisc.c","drivers/tty/vt/vt.c","include/linux/tty_driver.h"],"versions":[{"version":"2.6.35","status":"affected"},{"version":"0","lessThan":"2.6.35","status":"unaffected","versionType":"semver"},{"version":"6.1.96","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.36","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.9.7","lessThanOrEqual":"6.9.*","status":"unaffected","versionType":"semver"},{"version":"6.10","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"6.1.96"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"6.6.36"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"6.9.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"6.10"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/3c6332f3bb1578b5b10ac2561247b1d6272ae937"},{"url":"https://git.kernel.org/stable/c/287b569a5b914903ba7c438a3c0dbc3410ebb409"},{"url":"https://git.kernel.org/stable/c/5920ac19964f9e20181f63b410d9200ddbf8dc86"},{"url":"https://git.kernel.org/stable/c/6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b"}],"title":"tty: add the option to have a tty reject a new ldisc","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/3c6332f3bb1578b5b10ac2561247b1d6272ae937","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/287b569a5b914903ba7c438a3c0dbc3410ebb409","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/5920ac19964f9e20181f63b410d9200ddbf8dc86","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2025-11-03T21:58:30.295Z"}},{"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-40966","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T17:03:10.358016Z"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-09-11T17:34:23.131Z"}}]}}