CVE-2024-40966
tty: add the option to have a tty reject a new ldisc
Reported by linux · Published July 12, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra | Amazon Linux | 6.1.96-102.177.amzn2023 |
| python3-perf | Amazon Linux | 6.1.96-102.177.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.96-102.177.amzn2023 |
| bpftool | Amazon Linux | 6.1.96-102.177.amzn2023 |
| kernel-livepatch-6.1.96-102.177 | Amazon Linux | 1.0-0.amzn2023 |
| kernel | Amazon Linux | 6.1.96-102.177.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.96-102.177.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.96-102.177.amzn2023 |
| linux_kernel | linux | 6.9.7, 6.6.36, 6.1.96 |
| Linux | Linux | 6bd23e0c2bb6c65d4f5754d1456bc9a4427fc59b, 5920ac19964f9e20181f63b410d9200ddbf8dc86, 3c6332f3bb1578b5b10ac2561247b1d6272ae937, 287b569a5b914903ba7c438a3c0dbc3410ebb409 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | e1eaea46bb4020b38a141b84f88565d4603f8dd0, e1eaea46bb4020b38a141b84f88565d4603f8dd0, e1eaea46bb4020b38a141b84f88565d4603f8dd0 |
| Linux | Linux | 2.6.35, 0, 6.1.96 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-livepatch-6.1.96-102.177 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| Linux | Linux | *, *, * |
| linux | linux_kernel | 2.6.35, 2.6.35, 2.6.35 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf | 0 |
Timeline
- Jul 12, 2024 CVE Published
- Jul 13, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (17 in total, the first dated here)
- Jan 7, 2026 Security Advisory (346 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (176 in total, the first dated here)
- Jun 17, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-40966
vulnetix vdb fixes CVE-2024-40966
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-40966/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart