CVE-2024-40966
tty: add the option to have a tty reject a new ldisc
Mitigation
- Upgrade Linux to 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b or later.
Who should check
- Anyone running Linux >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 3c6332f3bb1578b5b10ac2561247b1d6272ae937; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 287b569a5b914903ba7c438a3c0dbc3410ebb409; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 5920ac19964f9e20181f63b410d9200ddbf8dc86; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b
- Anyone running Linux 2.6.35
Vulnerability facts
- Affected
- Linux >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 3c6332f3bb1578b5b10ac2561247b1d6272ae937; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 287b569a5b914903ba7c438a3c0dbc3410ebb409; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 5920ac19964f9e20181f63b410d9200ddbf8dc86; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b; Linux 2.6.35
- Fixed in
- Linux 3c6332f3bb1578b5b10ac2561247b1d6272ae937, Linux 287b569a5b914903ba7c438a3c0dbc3410ebb409, Linux 5920ac19964f9e20181f63b410d9200ddbf8dc86, Linux 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 3c6332f3bb1578b5b10ac2561247b1d6272ae937; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 287b569a5b914903ba7c438a3c0dbc3410ebb409; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 5920ac19964f9e20181f63b410d9200ddbf8dc86; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b | — | cvelist |
| Linux | 2.6.35 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-40966. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-40966.md Affected: Linux >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 3c6332f3bb1578b5b10ac2561247b1d6272ae937; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 287b569a5b914903ba7c438a3c0dbc3410ebb409; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 5920ac19964f9e20181f63b410d9200ddbf8dc86; >= e1eaea46bb4020b38a141b8… Fixed in: Linux 3c6332f3bb1578b5b10ac2561247b1d6272ae937, Linux 287b569a5b914903ba7c438a3c0dbc3410ebb409, Linux 5920ac19964f9e20181f63b410d9200ddbf8dc86, Linux 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2024-40966 being exploited?
There is no confirmed exploitation: CVE-2024-40966 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-40966?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-40966?
Linux >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 3c6332f3bb1578b5b10ac2561247b1d6272ae937; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 287b569a5b914903ba7c438a3c0dbc3410ebb409; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 5920ac19964f9e20181f63b410d9200ddbf8dc86; >= e1eaea46bb4020b38a141b84f88565d4603f8dd0, < 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b; Linux 2.6.35.
Is there a fix for CVE-2024-40966?
Yes. Fixed in Linux 3c6332f3bb1578b5b10ac2561247b1d6272ae937, Linux 287b569a5b914903ba7c438a3c0dbc3410ebb409, Linux 5920ac19964f9e20181f63b410d9200ddbf8dc86, Linux 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b. Upgrade Linux to 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b or later.
How do I check if I'm affected by CVE-2024-40966?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.